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

    IdentityVaultProviderCredential Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myIdentityvaultprovidercredential = new konnect.IdentityVaultProviderCredential("my_identityvaultprovidercredential", {
        directoryId: "a0910333-5df8-4d68-aef7-6e231472328b",
        priority: 1,
        providerId: "4dc79705-5348-49ee-8649-386f87194874",
        secret: "...my_secret...",
        selector: "...my_selector...",
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_identityvaultprovidercredential = konnect.IdentityVaultProviderCredential("my_identityvaultprovidercredential",
        directory_id="a0910333-5df8-4d68-aef7-6e231472328b",
        priority=1,
        provider_id="4dc79705-5348-49ee-8649-386f87194874",
        secret="...my_secret...",
        selector="...my_selector...")
    
    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.NewIdentityVaultProviderCredential(ctx, "my_identityvaultprovidercredential", &konnect.IdentityVaultProviderCredentialArgs{
    			DirectoryId: pulumi.String("a0910333-5df8-4d68-aef7-6e231472328b"),
    			Priority:    pulumi.Float64(1),
    			ProviderId:  pulumi.String("4dc79705-5348-49ee-8649-386f87194874"),
    			Secret:      pulumi.String("...my_secret..."),
    			Selector:    pulumi.String("...my_selector..."),
    		})
    		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 myIdentityvaultprovidercredential = new Konnect.IdentityVaultProviderCredential("my_identityvaultprovidercredential", new()
        {
            DirectoryId = "a0910333-5df8-4d68-aef7-6e231472328b",
            Priority = 1,
            ProviderId = "4dc79705-5348-49ee-8649-386f87194874",
            Secret = "...my_secret...",
            Selector = "...my_selector...",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.IdentityVaultProviderCredential;
    import com.pulumi.konnect.IdentityVaultProviderCredentialArgs;
    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 myIdentityvaultprovidercredential = new IdentityVaultProviderCredential("myIdentityvaultprovidercredential", IdentityVaultProviderCredentialArgs.builder()
                .directoryId("a0910333-5df8-4d68-aef7-6e231472328b")
                .priority(1.0)
                .providerId("4dc79705-5348-49ee-8649-386f87194874")
                .secret("...my_secret...")
                .selector("...my_selector...")
                .build());
    
        }
    }
    
    resources:
      myIdentityvaultprovidercredential:
        type: konnect:IdentityVaultProviderCredential
        name: my_identityvaultprovidercredential
        properties:
          directoryId: a0910333-5df8-4d68-aef7-6e231472328b
          priority: 1
          providerId: 4dc79705-5348-49ee-8649-386f87194874
          secret: '...my_secret...'
          selector: '...my_selector...'
    
    Example coming soon!
    

    Create IdentityVaultProviderCredential Resource

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

    Constructor syntax

    new IdentityVaultProviderCredential(name: string, args: IdentityVaultProviderCredentialArgs, opts?: CustomResourceOptions);
    @overload
    def IdentityVaultProviderCredential(resource_name: str,
                                        args: IdentityVaultProviderCredentialArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityVaultProviderCredential(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        directory_id: Optional[str] = None,
                                        provider_id: Optional[str] = None,
                                        priority: Optional[float] = None,
                                        secret: Optional[str] = None,
                                        selector: Optional[str] = None)
    func NewIdentityVaultProviderCredential(ctx *Context, name string, args IdentityVaultProviderCredentialArgs, opts ...ResourceOption) (*IdentityVaultProviderCredential, error)
    public IdentityVaultProviderCredential(string name, IdentityVaultProviderCredentialArgs args, CustomResourceOptions? opts = null)
    public IdentityVaultProviderCredential(String name, IdentityVaultProviderCredentialArgs args)
    public IdentityVaultProviderCredential(String name, IdentityVaultProviderCredentialArgs args, CustomResourceOptions options)
    
    type: konnect:IdentityVaultProviderCredential
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "konnect_identity_vault_provider_credential" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args IdentityVaultProviderCredentialArgs
    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 IdentityVaultProviderCredentialArgs
    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 IdentityVaultProviderCredentialArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityVaultProviderCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityVaultProviderCredentialArgs
    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 identityVaultProviderCredentialResource = new Konnect.IdentityVaultProviderCredential("identityVaultProviderCredentialResource", new()
    {
        DirectoryId = "string",
        ProviderId = "string",
        Priority = 0.0,
        Secret = "string",
        Selector = "string",
    });
    
    example, err := konnect.NewIdentityVaultProviderCredential(ctx, "identityVaultProviderCredentialResource", &konnect.IdentityVaultProviderCredentialArgs{
    	DirectoryId: pulumi.String("string"),
    	ProviderId:  pulumi.String("string"),
    	Priority:    pulumi.Float64(0),
    	Secret:      pulumi.String("string"),
    	Selector:    pulumi.String("string"),
    })
    
    resource "konnect_identity_vault_provider_credential" "identityVaultProviderCredentialResource" {
      lifecycle {
        create_before_destroy = true
      }
      directory_id = "string"
      provider_id  = "string"
      priority     = 0
      secret       = "string"
      selector     = "string"
    }
    
    var identityVaultProviderCredentialResource = new IdentityVaultProviderCredential("identityVaultProviderCredentialResource", IdentityVaultProviderCredentialArgs.builder()
        .directoryId("string")
        .providerId("string")
        .priority(0.0)
        .secret("string")
        .selector("string")
        .build());
    
    identity_vault_provider_credential_resource = konnect.IdentityVaultProviderCredential("identityVaultProviderCredentialResource",
        directory_id="string",
        provider_id="string",
        priority=float(0),
        secret="string",
        selector="string")
    
    const identityVaultProviderCredentialResource = new konnect.IdentityVaultProviderCredential("identityVaultProviderCredentialResource", {
        directoryId: "string",
        providerId: "string",
        priority: 0,
        secret: "string",
        selector: "string",
    });
    
    type: konnect:IdentityVaultProviderCredential
    properties:
        directoryId: string
        priority: 0
        providerId: string
        secret: string
        selector: string
    

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

    DirectoryId string
    ID of the directory
    ProviderId string
    ID of the vault provider
    Priority double
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    Secret string
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    Selector string
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    DirectoryId string
    ID of the directory
    ProviderId string
    ID of the vault provider
    Priority float64
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    Secret string
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    Selector string
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    directory_id string
    ID of the directory
    provider_id string
    ID of the vault provider
    priority number
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    secret string
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector string
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    directoryId String
    ID of the directory
    providerId String
    ID of the vault provider
    priority Double
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    secret String
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector String
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    directoryId string
    ID of the directory
    providerId string
    ID of the vault provider
    priority number
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    secret string
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector string
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    directory_id str
    ID of the directory
    provider_id str
    ID of the vault provider
    priority float
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    secret str
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector str
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    directoryId String
    ID of the directory
    providerId String
    ID of the vault provider
    priority Number
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    secret String
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector String
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.

    Outputs

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

    CreatedAt string
    EnrollmentUrl string
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    "pending" until admin enrollment completes; "active" once the secret exists.
    UpdatedAt string
    CreatedAt string
    EnrollmentUrl string
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    "pending" until admin enrollment completes; "active" once the secret exists.
    UpdatedAt string
    created_at string
    enrollment_url string
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    "pending" until admin enrollment completes; "active" once the secret exists.
    updated_at string
    createdAt String
    enrollmentUrl String
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    "pending" until admin enrollment completes; "active" once the secret exists.
    updatedAt String
    createdAt string
    enrollmentUrl string
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    "pending" until admin enrollment completes; "active" once the secret exists.
    updatedAt string
    created_at str
    enrollment_url str
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    "pending" until admin enrollment completes; "active" once the secret exists.
    updated_at str
    createdAt String
    enrollmentUrl String
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    "pending" until admin enrollment completes; "active" once the secret exists.
    updatedAt String

    Look up Existing IdentityVaultProviderCredential Resource

    Get an existing IdentityVaultProviderCredential 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?: IdentityVaultProviderCredentialState, opts?: CustomResourceOptions): IdentityVaultProviderCredential
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            directory_id: Optional[str] = None,
            enrollment_url: Optional[str] = None,
            priority: Optional[float] = None,
            provider_id: Optional[str] = None,
            secret: Optional[str] = None,
            selector: Optional[str] = None,
            status: Optional[str] = None,
            updated_at: Optional[str] = None) -> IdentityVaultProviderCredential
    func GetIdentityVaultProviderCredential(ctx *Context, name string, id IDInput, state *IdentityVaultProviderCredentialState, opts ...ResourceOption) (*IdentityVaultProviderCredential, error)
    public static IdentityVaultProviderCredential Get(string name, Input<string> id, IdentityVaultProviderCredentialState? state, CustomResourceOptions? opts = null)
    public static IdentityVaultProviderCredential get(String name, Output<String> id, IdentityVaultProviderCredentialState state, CustomResourceOptions options)
    resources:  _:    type: konnect:IdentityVaultProviderCredential    get:      id: ${id}
    import {
      to = konnect_identity_vault_provider_credential.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
    DirectoryId string
    ID of the directory
    EnrollmentUrl string
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    Priority double
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    ProviderId string
    ID of the vault provider
    Secret string
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    Selector string
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    Status string
    "pending" until admin enrollment completes; "active" once the secret exists.
    UpdatedAt string
    CreatedAt string
    DirectoryId string
    ID of the directory
    EnrollmentUrl string
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    Priority float64
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    ProviderId string
    ID of the vault provider
    Secret string
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    Selector string
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    Status string
    "pending" until admin enrollment completes; "active" once the secret exists.
    UpdatedAt string
    created_at string
    directory_id string
    ID of the directory
    enrollment_url string
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    priority number
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    provider_id string
    ID of the vault provider
    secret string
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector string
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    status string
    "pending" until admin enrollment completes; "active" once the secret exists.
    updated_at string
    createdAt String
    directoryId String
    ID of the directory
    enrollmentUrl String
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    priority Double
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    providerId String
    ID of the vault provider
    secret String
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector String
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    status String
    "pending" until admin enrollment completes; "active" once the secret exists.
    updatedAt String
    createdAt string
    directoryId string
    ID of the directory
    enrollmentUrl string
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    priority number
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    providerId string
    ID of the vault provider
    secret string
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector string
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    status string
    "pending" until admin enrollment completes; "active" once the secret exists.
    updatedAt string
    created_at str
    directory_id str
    ID of the directory
    enrollment_url str
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    priority float
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    provider_id str
    ID of the vault provider
    secret str
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector str
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    status str
    "pending" until admin enrollment completes; "active" once the secret exists.
    updated_at str
    createdAt String
    directoryId String
    ID of the directory
    enrollmentUrl String
    URL to complete OAuth consent. Fresh on every get-by-id call; set on create for a shared authorization_code provider. Omitted from list responses.
    priority Number
    Order in which this credential is considered, lowest first. Required with a selector, and must be omitted without one.
    providerId String
    ID of the vault provider
    secret String
    Pre-issued static credential (API key, PAT, etc.). Stored encrypted, never returned in read APIs.
    selector String
    CEL expression deciding which callers this credential applies to. Omit to make it the provider's default, which applies to every caller and is considered after all the others.
    status String
    "pending" until admin enrollment completes; "active" once the secret exists.
    updatedAt String

    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_vault_provider_credential.my_konnect_identity_vault_provider_credential

    id = jsonencode({

    directory_id = "..."
    
    id           = "..."
    
    provider_id  = "..."
    

    })

    }

    The pulumi import command can be used, for example:

    $ pulumi import konnect:index/identityVaultProviderCredential:IdentityVaultProviderCredential my_konnect_identity_vault_provider_credential '{"directory_id": "...", "id": "...", "provider_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