1. Packages
  2. Packages
  3. stackit
  4. API Docs
  5. getSecretsmanagerInstance
Viewing docs for stackit v0.0.5
published on Tuesday, Mar 31, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.5
published on Tuesday, Mar 31, 2026 by stackitcloud

    Secrets Manager instance data source schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_secretsmanager_instance" "example" {
      project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getSecretsmanagerInstance

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSecretsmanagerInstance(args: GetSecretsmanagerInstanceArgs, opts?: InvokeOptions): Promise<GetSecretsmanagerInstanceResult>
    function getSecretsmanagerInstanceOutput(args: GetSecretsmanagerInstanceOutputArgs, opts?: InvokeOptions): Output<GetSecretsmanagerInstanceResult>
    def get_secretsmanager_instance(instance_id: Optional[str] = None,
                                    project_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetSecretsmanagerInstanceResult
    def get_secretsmanager_instance_output(instance_id: pulumi.Input[Optional[str]] = None,
                                    project_id: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetSecretsmanagerInstanceResult]
    func LookupSecretsmanagerInstance(ctx *Context, args *LookupSecretsmanagerInstanceArgs, opts ...InvokeOption) (*LookupSecretsmanagerInstanceResult, error)
    func LookupSecretsmanagerInstanceOutput(ctx *Context, args *LookupSecretsmanagerInstanceOutputArgs, opts ...InvokeOption) LookupSecretsmanagerInstanceResultOutput

    > Note: This function is named LookupSecretsmanagerInstance in the Go SDK.

    public static class GetSecretsmanagerInstance 
    {
        public static Task<GetSecretsmanagerInstanceResult> InvokeAsync(GetSecretsmanagerInstanceArgs args, InvokeOptions? opts = null)
        public static Output<GetSecretsmanagerInstanceResult> Invoke(GetSecretsmanagerInstanceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecretsmanagerInstanceResult> getSecretsmanagerInstance(GetSecretsmanagerInstanceArgs args, InvokeOptions options)
    public static Output<GetSecretsmanagerInstanceResult> getSecretsmanagerInstance(GetSecretsmanagerInstanceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getSecretsmanagerInstance:getSecretsmanagerInstance
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    ID of the Secrets Manager instance.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    InstanceId string
    ID of the Secrets Manager instance.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    instanceId String
    ID of the Secrets Manager instance.
    projectId String
    STACKIT project ID to which the instance is associated.
    instanceId string
    ID of the Secrets Manager instance.
    projectId string
    STACKIT project ID to which the instance is associated.
    instance_id str
    ID of the Secrets Manager instance.
    project_id str
    STACKIT project ID to which the instance is associated.
    instanceId String
    ID of the Secrets Manager instance.
    projectId String
    STACKIT project ID to which the instance is associated.

    getSecretsmanagerInstance Result

    The following output properties are available:

    Acls List<string>
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    Id string
    Terraform's internal resource ID. It is structured as "projectId,instanceId".
    InstanceId string
    ID of the Secrets Manager instance.
    KmsKey GetSecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    Name string
    Instance name.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Acls []string
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    Id string
    Terraform's internal resource ID. It is structured as "projectId,instanceId".
    InstanceId string
    ID of the Secrets Manager instance.
    KmsKey GetSecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    Name string
    Instance name.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    id String
    Terraform's internal resource ID. It is structured as "projectId,instanceId".
    instanceId String
    ID of the Secrets Manager instance.
    kmsKey GetSecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    name String
    Instance name.
    projectId String
    STACKIT project ID to which the instance is associated.
    acls string[]
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    id string
    Terraform's internal resource ID. It is structured as "projectId,instanceId".
    instanceId string
    ID of the Secrets Manager instance.
    kmsKey GetSecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    name string
    Instance name.
    projectId string
    STACKIT project ID to which the instance is associated.
    acls Sequence[str]
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    id str
    Terraform's internal resource ID. It is structured as "projectId,instanceId".
    instance_id str
    ID of the Secrets Manager instance.
    kms_key GetSecretsmanagerInstanceKmsKey
    The STACKIT-KMS key for secret encryption and decryption.
    name str
    Instance name.
    project_id str
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The access control list for this instance. Each entry is an IP or IP range that is permitted to access, in CIDR notation
    id String
    Terraform's internal resource ID. It is structured as "projectId,instanceId".
    instanceId String
    ID of the Secrets Manager instance.
    kmsKey Property Map
    The STACKIT-KMS key for secret encryption and decryption.
    name String
    Instance name.
    projectId String
    STACKIT project ID to which the instance is associated.

    Supporting Types

    GetSecretsmanagerInstanceKmsKey

    KeyId string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    KeyRingId string
    UUID of the keyring where the key is located within the STACKTI-KMS.
    KeyVersion int
    Version of the key within the STACKIT-KMS to use for the encryption.
    ServiceAccountEmail string
    Service-Account linked to the Key within the STACKIT-KMS.
    KeyId string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    KeyRingId string
    UUID of the keyring where the key is located within the STACKTI-KMS.
    KeyVersion int
    Version of the key within the STACKIT-KMS to use for the encryption.
    ServiceAccountEmail string
    Service-Account linked to the Key within the STACKIT-KMS.
    keyId String
    UUID of the key within the STACKIT-KMS to use for the encryption.
    keyRingId String
    UUID of the keyring where the key is located within the STACKTI-KMS.
    keyVersion Integer
    Version of the key within the STACKIT-KMS to use for the encryption.
    serviceAccountEmail String
    Service-Account linked to the Key within the STACKIT-KMS.
    keyId string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    keyRingId string
    UUID of the keyring where the key is located within the STACKTI-KMS.
    keyVersion number
    Version of the key within the STACKIT-KMS to use for the encryption.
    serviceAccountEmail string
    Service-Account linked to the Key within the STACKIT-KMS.
    key_id str
    UUID of the key within the STACKIT-KMS to use for the encryption.
    key_ring_id str
    UUID of the keyring where the key is located within the STACKTI-KMS.
    key_version int
    Version of the key within the STACKIT-KMS to use for the encryption.
    service_account_email str
    Service-Account linked to the Key within the STACKIT-KMS.
    keyId String
    UUID of the key within the STACKIT-KMS to use for the encryption.
    keyRingId String
    UUID of the keyring where the key is located within the STACKTI-KMS.
    keyVersion Number
    Version of the key within the STACKIT-KMS to use for the encryption.
    serviceAccountEmail String
    Service-Account linked to the Key within the STACKIT-KMS.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.5
    published on Tuesday, Mar 31, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.