published on Friday, Nov 6, 2026 by kong
published on Friday, Nov 6, 2026 by kong
IdentityPrincipalBasicAuth Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myIdentityprincipalbasicauth = new konnect.IdentityPrincipalBasicAuth("my_identityprincipalbasicauth", {
directoryId: "30f305d5-c16b-49e7-9c7c-7b672f7e6b73",
managedBy: {
key: "value",
},
principalId: "dba80c6a-eafd-4513-95c6-b1e4e2c2095f",
username: "...my_username...",
});
import pulumi
import pulumi_konnect as konnect
my_identityprincipalbasicauth = konnect.IdentityPrincipalBasicAuth("my_identityprincipalbasicauth",
directory_id="30f305d5-c16b-49e7-9c7c-7b672f7e6b73",
managed_by={
"key": "value",
},
principal_id="dba80c6a-eafd-4513-95c6-b1e4e2c2095f",
username="...my_username...")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := konnect.NewIdentityPrincipalBasicAuth(ctx, "my_identityprincipalbasicauth", &konnect.IdentityPrincipalBasicAuthArgs{
DirectoryId: pulumi.String("30f305d5-c16b-49e7-9c7c-7b672f7e6b73"),
ManagedBy: pulumi.StringMap{
"key": pulumi.String("value"),
},
PrincipalId: pulumi.String("dba80c6a-eafd-4513-95c6-b1e4e2c2095f"),
Username: pulumi.String("...my_username..."),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;
return await Deployment.RunAsync(() =>
{
var myIdentityprincipalbasicauth = new Konnect.IdentityPrincipalBasicAuth("my_identityprincipalbasicauth", new()
{
DirectoryId = "30f305d5-c16b-49e7-9c7c-7b672f7e6b73",
ManagedBy =
{
{ "key", "value" },
},
PrincipalId = "dba80c6a-eafd-4513-95c6-b1e4e2c2095f",
Username = "...my_username...",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.IdentityPrincipalBasicAuth;
import com.pulumi.konnect.IdentityPrincipalBasicAuthArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myIdentityprincipalbasicauth = new IdentityPrincipalBasicAuth("myIdentityprincipalbasicauth", IdentityPrincipalBasicAuthArgs.builder()
.directoryId("30f305d5-c16b-49e7-9c7c-7b672f7e6b73")
.managedBy(Map.of("key", "value"))
.principalId("dba80c6a-eafd-4513-95c6-b1e4e2c2095f")
.username("...my_username...")
.build());
}
}
resources:
myIdentityprincipalbasicauth:
type: konnect:IdentityPrincipalBasicAuth
name: my_identityprincipalbasicauth
properties:
directoryId: 30f305d5-c16b-49e7-9c7c-7b672f7e6b73
managedBy:
key: value
principalId: dba80c6a-eafd-4513-95c6-b1e4e2c2095f
username: '...my_username...'
Example coming soon!
Create IdentityPrincipalBasicAuth Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityPrincipalBasicAuth(name: string, args: IdentityPrincipalBasicAuthArgs, opts?: CustomResourceOptions);@overload
def IdentityPrincipalBasicAuth(resource_name: str,
args: IdentityPrincipalBasicAuthArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityPrincipalBasicAuth(resource_name: str,
opts: Optional[ResourceOptions] = None,
directory_id: Optional[str] = None,
principal_id: Optional[str] = None,
username: Optional[str] = None,
managed_by: Optional[Mapping[str, str]] = None)func NewIdentityPrincipalBasicAuth(ctx *Context, name string, args IdentityPrincipalBasicAuthArgs, opts ...ResourceOption) (*IdentityPrincipalBasicAuth, error)public IdentityPrincipalBasicAuth(string name, IdentityPrincipalBasicAuthArgs args, CustomResourceOptions? opts = null)
public IdentityPrincipalBasicAuth(String name, IdentityPrincipalBasicAuthArgs args)
public IdentityPrincipalBasicAuth(String name, IdentityPrincipalBasicAuthArgs args, CustomResourceOptions options)
type: konnect:IdentityPrincipalBasicAuth
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "konnect_identity_principal_basic_auth" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args IdentityPrincipalBasicAuthArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IdentityPrincipalBasicAuthArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IdentityPrincipalBasicAuthArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityPrincipalBasicAuthArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityPrincipalBasicAuthArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var identityPrincipalBasicAuthResource = new Konnect.IdentityPrincipalBasicAuth("identityPrincipalBasicAuthResource", new()
{
DirectoryId = "string",
PrincipalId = "string",
Username = "string",
ManagedBy =
{
{ "string", "string" },
},
});
example, err := konnect.NewIdentityPrincipalBasicAuth(ctx, "identityPrincipalBasicAuthResource", &konnect.IdentityPrincipalBasicAuthArgs{
DirectoryId: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
Username: pulumi.String("string"),
ManagedBy: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "konnect_identity_principal_basic_auth" "identityPrincipalBasicAuthResource" {
lifecycle {
create_before_destroy = true
}
directory_id = "string"
principal_id = "string"
username = "string"
managed_by = {
"string" = "string"
}
}
var identityPrincipalBasicAuthResource = new IdentityPrincipalBasicAuth("identityPrincipalBasicAuthResource", IdentityPrincipalBasicAuthArgs.builder()
.directoryId("string")
.principalId("string")
.username("string")
.managedBy(Map.of("string", "string"))
.build());
identity_principal_basic_auth_resource = konnect.IdentityPrincipalBasicAuth("identityPrincipalBasicAuthResource",
directory_id="string",
principal_id="string",
username="string",
managed_by={
"string": "string",
})
const identityPrincipalBasicAuthResource = new konnect.IdentityPrincipalBasicAuth("identityPrincipalBasicAuthResource", {
directoryId: "string",
principalId: "string",
username: "string",
managedBy: {
string: "string",
},
});
type: konnect:IdentityPrincipalBasicAuth
properties:
directoryId: string
managedBy:
string: string
principalId: string
username: string
IdentityPrincipalBasicAuth Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IdentityPrincipalBasicAuth resource accepts the following input properties:
- Directory
Id string - ID of the directory
- Principal
Id string - Unique identifier of the principal (UUID format)
- Username string
- The username for basic authentication.
- Managed
By Dictionary<string, string>
- Directory
Id string - ID of the directory
- Principal
Id string - Unique identifier of the principal (UUID format)
- Username string
- The username for basic authentication.
- Managed
By map[string]string
- directory_
id string - ID of the directory
- principal_
id string - Unique identifier of the principal (UUID format)
- username string
- The username for basic authentication.
- managed_
by map(string)
- directory
Id String - ID of the directory
- principal
Id String - Unique identifier of the principal (UUID format)
- username String
- The username for basic authentication.
- managed
By Map<String,String>
- directory
Id string - ID of the directory
- principal
Id string - Unique identifier of the principal (UUID format)
- username string
- The username for basic authentication.
- managed
By {[key: string]: string}
- directory_
id str - ID of the directory
- principal_
id str - Unique identifier of the principal (UUID format)
- username str
- The username for basic authentication.
- managed_
by Mapping[str, str]
- directory
Id String - ID of the directory
- principal
Id String - Unique identifier of the principal (UUID format)
- username String
- The username for basic authentication.
- managed
By Map<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityPrincipalBasicAuth resource produces the following output properties:
- created_
at string - An ISO-8601 timestamp representation of entity creation date.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - An ISO-8601 timestamp representation of entity update date.
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - An ISO-8601 timestamp representation of entity update date.
Look up Existing IdentityPrincipalBasicAuth Resource
Get an existing IdentityPrincipalBasicAuth resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IdentityPrincipalBasicAuthState, opts?: CustomResourceOptions): IdentityPrincipalBasicAuth@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
directory_id: Optional[str] = None,
managed_by: Optional[Mapping[str, str]] = None,
principal_id: Optional[str] = None,
updated_at: Optional[str] = None,
username: Optional[str] = None) -> IdentityPrincipalBasicAuthfunc GetIdentityPrincipalBasicAuth(ctx *Context, name string, id IDInput, state *IdentityPrincipalBasicAuthState, opts ...ResourceOption) (*IdentityPrincipalBasicAuth, error)public static IdentityPrincipalBasicAuth Get(string name, Input<string> id, IdentityPrincipalBasicAuthState? state, CustomResourceOptions? opts = null)public static IdentityPrincipalBasicAuth get(String name, Output<String> id, IdentityPrincipalBasicAuthState state, CustomResourceOptions options)resources: _: type: konnect:IdentityPrincipalBasicAuth get: id: ${id}import {
to = konnect_identity_principal_basic_auth.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Directory
Id string - ID of the directory
- Managed
By Dictionary<string, string> - Principal
Id string - Unique identifier of the principal (UUID format)
- Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Username string
- The username for basic authentication.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Directory
Id string - ID of the directory
- Managed
By map[string]string - Principal
Id string - Unique identifier of the principal (UUID format)
- Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Username string
- The username for basic authentication.
- created_
at string - An ISO-8601 timestamp representation of entity creation date.
- directory_
id string - ID of the directory
- managed_
by map(string) - principal_
id string - Unique identifier of the principal (UUID format)
- updated_
at string - An ISO-8601 timestamp representation of entity update date.
- username string
- The username for basic authentication.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- directory
Id String - ID of the directory
- managed
By Map<String,String> - principal
Id String - Unique identifier of the principal (UUID format)
- updated
At String - An ISO-8601 timestamp representation of entity update date.
- username String
- The username for basic authentication.
- created
At string - An ISO-8601 timestamp representation of entity creation date.
- directory
Id string - ID of the directory
- managed
By {[key: string]: string} - principal
Id string - Unique identifier of the principal (UUID format)
- updated
At string - An ISO-8601 timestamp representation of entity update date.
- username string
- The username for basic authentication.
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- directory_
id str - ID of the directory
- managed_
by Mapping[str, str] - principal_
id str - Unique identifier of the principal (UUID format)
- updated_
at str - An ISO-8601 timestamp representation of entity update date.
- username str
- The username for basic authentication.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- directory
Id String - ID of the directory
- managed
By Map<String> - principal
Id String - Unique identifier of the principal (UUID format)
- updated
At String - An ISO-8601 timestamp representation of entity update date.
- username String
- The username for basic authentication.
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = konnect_identity_principal_basic_auth.my_konnect_identity_principal_basic_auth
id = jsonencode({
directory_id = "..."
id = "..."
principal_id = "..."
})
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/identityPrincipalBasicAuth:IdentityPrincipalBasicAuth my_konnect_identity_principal_basic_auth '{"directory_id": "...", "id": "...", "principal_id": "..."}'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- konnect kong/terraform-provider-konnect
- License
- Notes
- This Pulumi package is based on the
konnectTerraform Provider.
published on Friday, Nov 6, 2026 by kong