1. Registry
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. IdentityPrincipalBasicAuthPassword
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

    IdentityPrincipalBasicAuthPassword Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myIdentityprincipalbasicauthpassword = new konnect.IdentityPrincipalBasicAuthPassword("my_identityprincipalbasicauthpassword", {
        basicAuthId: "d41f4f7a-b826-449f-833c-9e1c1604b8d3",
        directoryId: "862d4d9d-af24-4ca2-ade8-ff5f18badf4d",
        expiresAt: "2022-11-04T20:10:06.927Z",
        managedBy: {
            key: "value",
        },
        principalId: "ad5fb41f-04bc-44ce-8d4e-a29b3821b635",
        secret: "...my_secret...",
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_identityprincipalbasicauthpassword = konnect.IdentityPrincipalBasicAuthPassword("my_identityprincipalbasicauthpassword",
        basic_auth_id="d41f4f7a-b826-449f-833c-9e1c1604b8d3",
        directory_id="862d4d9d-af24-4ca2-ade8-ff5f18badf4d",
        expires_at="2022-11-04T20:10:06.927Z",
        managed_by={
            "key": "value",
        },
        principal_id="ad5fb41f-04bc-44ce-8d4e-a29b3821b635",
        secret="...my_secret...")
    
    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.NewIdentityPrincipalBasicAuthPassword(ctx, "my_identityprincipalbasicauthpassword", &konnect.IdentityPrincipalBasicAuthPasswordArgs{
    			BasicAuthId: pulumi.String("d41f4f7a-b826-449f-833c-9e1c1604b8d3"),
    			DirectoryId: pulumi.String("862d4d9d-af24-4ca2-ade8-ff5f18badf4d"),
    			ExpiresAt:   pulumi.String("2022-11-04T20:10:06.927Z"),
    			ManagedBy: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    			PrincipalId: pulumi.String("ad5fb41f-04bc-44ce-8d4e-a29b3821b635"),
    			Secret:      pulumi.String("...my_secret..."),
    		})
    		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 myIdentityprincipalbasicauthpassword = new Konnect.IdentityPrincipalBasicAuthPassword("my_identityprincipalbasicauthpassword", new()
        {
            BasicAuthId = "d41f4f7a-b826-449f-833c-9e1c1604b8d3",
            DirectoryId = "862d4d9d-af24-4ca2-ade8-ff5f18badf4d",
            ExpiresAt = "2022-11-04T20:10:06.927Z",
            ManagedBy = 
            {
                { "key", "value" },
            },
            PrincipalId = "ad5fb41f-04bc-44ce-8d4e-a29b3821b635",
            Secret = "...my_secret...",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.IdentityPrincipalBasicAuthPassword;
    import com.pulumi.konnect.IdentityPrincipalBasicAuthPasswordArgs;
    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 myIdentityprincipalbasicauthpassword = new IdentityPrincipalBasicAuthPassword("myIdentityprincipalbasicauthpassword", IdentityPrincipalBasicAuthPasswordArgs.builder()
                .basicAuthId("d41f4f7a-b826-449f-833c-9e1c1604b8d3")
                .directoryId("862d4d9d-af24-4ca2-ade8-ff5f18badf4d")
                .expiresAt("2022-11-04T20:10:06.927Z")
                .managedBy(Map.of("key", "value"))
                .principalId("ad5fb41f-04bc-44ce-8d4e-a29b3821b635")
                .secret("...my_secret...")
                .build());
    
        }
    }
    
    resources:
      myIdentityprincipalbasicauthpassword:
        type: konnect:IdentityPrincipalBasicAuthPassword
        name: my_identityprincipalbasicauthpassword
        properties:
          basicAuthId: d41f4f7a-b826-449f-833c-9e1c1604b8d3
          directoryId: 862d4d9d-af24-4ca2-ade8-ff5f18badf4d
          expiresAt: 2022-11-04T20:10:06.927Z
          managedBy:
            key: value
          principalId: ad5fb41f-04bc-44ce-8d4e-a29b3821b635
          secret: '...my_secret...'
    
    Example coming soon!
    

    Create IdentityPrincipalBasicAuthPassword Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IdentityPrincipalBasicAuthPassword(name: string, args: IdentityPrincipalBasicAuthPasswordArgs, opts?: CustomResourceOptions);
    @overload
    def IdentityPrincipalBasicAuthPassword(resource_name: str,
                                           args: IdentityPrincipalBasicAuthPasswordArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityPrincipalBasicAuthPassword(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           basic_auth_id: Optional[str] = None,
                                           directory_id: Optional[str] = None,
                                           principal_id: Optional[str] = None,
                                           expires_at: Optional[str] = None,
                                           managed_by: Optional[Mapping[str, str]] = None,
                                           secret: Optional[str] = None)
    func NewIdentityPrincipalBasicAuthPassword(ctx *Context, name string, args IdentityPrincipalBasicAuthPasswordArgs, opts ...ResourceOption) (*IdentityPrincipalBasicAuthPassword, error)
    public IdentityPrincipalBasicAuthPassword(string name, IdentityPrincipalBasicAuthPasswordArgs args, CustomResourceOptions? opts = null)
    public IdentityPrincipalBasicAuthPassword(String name, IdentityPrincipalBasicAuthPasswordArgs args)
    public IdentityPrincipalBasicAuthPassword(String name, IdentityPrincipalBasicAuthPasswordArgs args, CustomResourceOptions options)
    
    type: konnect:IdentityPrincipalBasicAuthPassword
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "konnect_identity_principal_basic_auth_password" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args IdentityPrincipalBasicAuthPasswordArgs
    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 IdentityPrincipalBasicAuthPasswordArgs
    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 IdentityPrincipalBasicAuthPasswordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityPrincipalBasicAuthPasswordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityPrincipalBasicAuthPasswordArgs
    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 identityPrincipalBasicAuthPasswordResource = new Konnect.IdentityPrincipalBasicAuthPassword("identityPrincipalBasicAuthPasswordResource", new()
    {
        BasicAuthId = "string",
        DirectoryId = "string",
        PrincipalId = "string",
        ExpiresAt = "string",
        ManagedBy = 
        {
            { "string", "string" },
        },
        Secret = "string",
    });
    
    example, err := konnect.NewIdentityPrincipalBasicAuthPassword(ctx, "identityPrincipalBasicAuthPasswordResource", &konnect.IdentityPrincipalBasicAuthPasswordArgs{
    	BasicAuthId: pulumi.String("string"),
    	DirectoryId: pulumi.String("string"),
    	PrincipalId: pulumi.String("string"),
    	ExpiresAt:   pulumi.String("string"),
    	ManagedBy: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Secret: pulumi.String("string"),
    })
    
    resource "konnect_identity_principal_basic_auth_password" "identityPrincipalBasicAuthPasswordResource" {
      lifecycle {
        create_before_destroy = true
      }
      basic_auth_id = "string"
      directory_id  = "string"
      principal_id  = "string"
      expires_at    = "string"
      managed_by = {
        "string" = "string"
      }
      secret = "string"
    }
    
    var identityPrincipalBasicAuthPasswordResource = new IdentityPrincipalBasicAuthPassword("identityPrincipalBasicAuthPasswordResource", IdentityPrincipalBasicAuthPasswordArgs.builder()
        .basicAuthId("string")
        .directoryId("string")
        .principalId("string")
        .expiresAt("string")
        .managedBy(Map.of("string", "string"))
        .secret("string")
        .build());
    
    identity_principal_basic_auth_password_resource = konnect.IdentityPrincipalBasicAuthPassword("identityPrincipalBasicAuthPasswordResource",
        basic_auth_id="string",
        directory_id="string",
        principal_id="string",
        expires_at="string",
        managed_by={
            "string": "string",
        },
        secret="string")
    
    const identityPrincipalBasicAuthPasswordResource = new konnect.IdentityPrincipalBasicAuthPassword("identityPrincipalBasicAuthPasswordResource", {
        basicAuthId: "string",
        directoryId: "string",
        principalId: "string",
        expiresAt: "string",
        managedBy: {
            string: "string",
        },
        secret: "string",
    });
    
    type: konnect:IdentityPrincipalBasicAuthPassword
    properties:
        basicAuthId: string
        directoryId: string
        expiresAt: string
        managedBy:
            string: string
        principalId: string
        secret: string
    

    IdentityPrincipalBasicAuthPassword 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 IdentityPrincipalBasicAuthPassword resource accepts the following input properties:

    BasicAuthId string
    Unique identifier of the basic auth credential (UUID format)
    DirectoryId string
    ID of the directory
    PrincipalId string
    Unique identifier of the principal (UUID format)
    ExpiresAt string
    An ISO-8601 timestamp representation of entity expiration date.
    ManagedBy Dictionary<string, string>
    Secret string
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    BasicAuthId string
    Unique identifier of the basic auth credential (UUID format)
    DirectoryId string
    ID of the directory
    PrincipalId string
    Unique identifier of the principal (UUID format)
    ExpiresAt string
    An ISO-8601 timestamp representation of entity expiration date.
    ManagedBy map[string]string
    Secret string
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    basic_auth_id string
    Unique identifier of the basic auth credential (UUID format)
    directory_id string
    ID of the directory
    principal_id string
    Unique identifier of the principal (UUID format)
    expires_at string
    An ISO-8601 timestamp representation of entity expiration date.
    managed_by map(string)
    secret string
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    basicAuthId String
    Unique identifier of the basic auth credential (UUID format)
    directoryId String
    ID of the directory
    principalId String
    Unique identifier of the principal (UUID format)
    expiresAt String
    An ISO-8601 timestamp representation of entity expiration date.
    managedBy Map<String,String>
    secret String
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    basicAuthId string
    Unique identifier of the basic auth credential (UUID format)
    directoryId string
    ID of the directory
    principalId string
    Unique identifier of the principal (UUID format)
    expiresAt string
    An ISO-8601 timestamp representation of entity expiration date.
    managedBy {[key: string]: string}
    secret string
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    basic_auth_id str
    Unique identifier of the basic auth credential (UUID format)
    directory_id str
    ID of the directory
    principal_id str
    Unique identifier of the principal (UUID format)
    expires_at str
    An ISO-8601 timestamp representation of entity expiration date.
    managed_by Mapping[str, str]
    secret str
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    basicAuthId String
    Unique identifier of the basic auth credential (UUID format)
    directoryId String
    ID of the directory
    principalId String
    Unique identifier of the principal (UUID format)
    expiresAt String
    An ISO-8601 timestamp representation of entity expiration date.
    managedBy Map<String>
    secret String
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IdentityPrincipalBasicAuthPassword 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 IdentityPrincipalBasicAuthPassword Resource

    Get an existing IdentityPrincipalBasicAuthPassword 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?: IdentityPrincipalBasicAuthPasswordState, opts?: CustomResourceOptions): IdentityPrincipalBasicAuthPassword
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            basic_auth_id: Optional[str] = None,
            created_at: Optional[str] = None,
            directory_id: Optional[str] = None,
            expires_at: Optional[str] = None,
            managed_by: Optional[Mapping[str, str]] = None,
            principal_id: Optional[str] = None,
            secret: Optional[str] = None,
            updated_at: Optional[str] = None) -> IdentityPrincipalBasicAuthPassword
    func GetIdentityPrincipalBasicAuthPassword(ctx *Context, name string, id IDInput, state *IdentityPrincipalBasicAuthPasswordState, opts ...ResourceOption) (*IdentityPrincipalBasicAuthPassword, error)
    public static IdentityPrincipalBasicAuthPassword Get(string name, Input<string> id, IdentityPrincipalBasicAuthPasswordState? state, CustomResourceOptions? opts = null)
    public static IdentityPrincipalBasicAuthPassword get(String name, Output<String> id, IdentityPrincipalBasicAuthPasswordState state, CustomResourceOptions options)
    resources:  _:    type: konnect:IdentityPrincipalBasicAuthPassword    get:      id: ${id}
    import {
      to = konnect_identity_principal_basic_auth_password.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:
    BasicAuthId string
    Unique identifier of the basic auth credential (UUID format)
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    DirectoryId string
    ID of the directory
    ExpiresAt string
    An ISO-8601 timestamp representation of entity expiration date.
    ManagedBy Dictionary<string, string>
    PrincipalId string
    Unique identifier of the principal (UUID format)
    Secret string
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    BasicAuthId string
    Unique identifier of the basic auth credential (UUID format)
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    DirectoryId string
    ID of the directory
    ExpiresAt string
    An ISO-8601 timestamp representation of entity expiration date.
    ManagedBy map[string]string
    PrincipalId string
    Unique identifier of the principal (UUID format)
    Secret string
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    basic_auth_id string
    Unique identifier of the basic auth credential (UUID format)
    created_at string
    An ISO-8601 timestamp representation of entity creation date.
    directory_id string
    ID of the directory
    expires_at string
    An ISO-8601 timestamp representation of entity expiration date.
    managed_by map(string)
    principal_id string
    Unique identifier of the principal (UUID format)
    secret string
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    updated_at string
    An ISO-8601 timestamp representation of entity update date.
    basicAuthId String
    Unique identifier of the basic auth credential (UUID format)
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    directoryId String
    ID of the directory
    expiresAt String
    An ISO-8601 timestamp representation of entity expiration date.
    managedBy Map<String,String>
    principalId String
    Unique identifier of the principal (UUID format)
    secret String
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    basicAuthId string
    Unique identifier of the basic auth credential (UUID format)
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    directoryId string
    ID of the directory
    expiresAt string
    An ISO-8601 timestamp representation of entity expiration date.
    managedBy {[key: string]: string}
    principalId string
    Unique identifier of the principal (UUID format)
    secret string
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    updatedAt string
    An ISO-8601 timestamp representation of entity update date.
    basic_auth_id str
    Unique identifier of the basic auth credential (UUID format)
    created_at str
    An ISO-8601 timestamp representation of entity creation date.
    directory_id str
    ID of the directory
    expires_at str
    An ISO-8601 timestamp representation of entity expiration date.
    managed_by Mapping[str, str]
    principal_id str
    Unique identifier of the principal (UUID format)
    secret str
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    updated_at str
    An ISO-8601 timestamp representation of entity update date.
    basicAuthId String
    Unique identifier of the basic auth credential (UUID format)
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    directoryId String
    ID of the directory
    expiresAt String
    An ISO-8601 timestamp representation of entity expiration date.
    managedBy Map<String>
    principalId String
    Unique identifier of the principal (UUID format)
    secret String
    The password secret value. This is only returned when the password is first created and cannot be retrieved again later.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.

    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_password.my_konnect_identity_principal_basic_auth_password

    id = jsonencode({

    basic_auth_id = "..."
    
    directory_id  = "..."
    
    id            = "..."
    
    principal_id  = "..."
    

    })

    }

    The pulumi import command can be used, for example:

    $ pulumi import konnect:index/identityPrincipalBasicAuthPassword:IdentityPrincipalBasicAuthPassword my_konnect_identity_principal_basic_auth_password '{"basic_auth_id": "...", "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