1. Registry
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. IdentityPrincipalBasicAuth
Viewing docs for konnect 3.28.0
published on Friday, Nov 6, 2026 by kong
konnect
Viewing docs for konnect 3.28.0
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:

    DirectoryId string
    ID of the directory
    PrincipalId string
    Unique identifier of the principal (UUID format)
    Username string
    The username for basic authentication.
    ManagedBy Dictionary<string, string>
    DirectoryId string
    ID of the directory
    PrincipalId string
    Unique identifier of the principal (UUID format)
    Username string
    The username for basic authentication.
    ManagedBy 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)
    directoryId String
    ID of the directory
    principalId String
    Unique identifier of the principal (UUID format)
    username String
    The username for basic authentication.
    managedBy Map<String,String>
    directoryId string
    ID of the directory
    principalId string
    Unique identifier of the principal (UUID format)
    username string
    The username for basic authentication.
    managedBy {[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]
    directoryId String
    ID of the directory
    principalId String
    Unique identifier of the principal (UUID format)
    username String
    The username for basic authentication.
    managedBy Map<String>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IdentityPrincipalBasicAuth resource produces the following output properties:

    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    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.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt 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.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    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) -> IdentityPrincipalBasicAuth
    func 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.
    The following state arguments are supported:
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    DirectoryId string
    ID of the directory
    ManagedBy Dictionary<string, string>
    PrincipalId string
    Unique identifier of the principal (UUID format)
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    Username string
    The username for basic authentication.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    DirectoryId string
    ID of the directory
    ManagedBy map[string]string
    PrincipalId string
    Unique identifier of the principal (UUID format)
    UpdatedAt 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.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    directoryId String
    ID of the directory
    managedBy Map<String,String>
    principalId String
    Unique identifier of the principal (UUID format)
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    username String
    The username for basic authentication.
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    directoryId string
    ID of the directory
    managedBy {[key: string]: string}
    principalId string
    Unique identifier of the principal (UUID format)
    updatedAt 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.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    directoryId String
    ID of the directory
    managedBy Map<String>
    principalId String
    Unique identifier of the principal (UUID format)
    updatedAt 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 konnect Terraform Provider.
    konnect
    Viewing docs for konnect 3.28.0
    published on Friday, Nov 6, 2026 by kong

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial