1. Packages
  2. StrongDM
  3. API Docs
  4. getManagedSecret
StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg

sdm.getManagedSecret

Explore with Pulumi AI

sdm logo
StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg

    ManagedSecret contains details about managed secret

    Using getManagedSecret

    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 getManagedSecret(args: GetManagedSecretArgs, opts?: InvokeOptions): Promise<GetManagedSecretResult>
    function getManagedSecretOutput(args: GetManagedSecretOutputArgs, opts?: InvokeOptions): Output<GetManagedSecretResult>
    def get_managed_secret(id: Optional[str] = None,
                           name: Optional[str] = None,
                           secret_engine_id: Optional[str] = None,
                           tags: Optional[Mapping[str, str]] = None,
                           value: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetManagedSecretResult
    def get_managed_secret_output(id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           secret_engine_id: Optional[pulumi.Input[str]] = None,
                           tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                           value: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetManagedSecretResult]
    func LookupManagedSecret(ctx *Context, args *LookupManagedSecretArgs, opts ...InvokeOption) (*LookupManagedSecretResult, error)
    func LookupManagedSecretOutput(ctx *Context, args *LookupManagedSecretOutputArgs, opts ...InvokeOption) LookupManagedSecretResultOutput

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

    public static class GetManagedSecret 
    {
        public static Task<GetManagedSecretResult> InvokeAsync(GetManagedSecretArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedSecretResult> Invoke(GetManagedSecretInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedSecretResult> getManagedSecret(GetManagedSecretArgs args, InvokeOptions options)
    public static Output<GetManagedSecretResult> getManagedSecret(GetManagedSecretArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sdm:index/getManagedSecret:getManagedSecret
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Unique identifier of the Managed Secret.
    Name string
    Unique human-readable name of the Managed Secret.
    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    Tags Dictionary<string, string>
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    Id string
    Unique identifier of the Managed Secret.
    Name string
    Unique human-readable name of the Managed Secret.
    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    Tags map[string]string
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    id String
    Unique identifier of the Managed Secret.
    name String
    Unique human-readable name of the Managed Secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    tags Map<String,String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.
    id string
    Unique identifier of the Managed Secret.
    name string
    Unique human-readable name of the Managed Secret.
    secretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    tags {[key: string]: string}
    Tags is a map of key, value pairs.
    value string
    Sensitive value of the secret.
    id str
    Unique identifier of the Managed Secret.
    name str
    Unique human-readable name of the Managed Secret.
    secret_engine_id str
    An ID of a Secret Engine linked with the Managed Secret.
    tags Mapping[str, str]
    Tags is a map of key, value pairs.
    value str
    Sensitive value of the secret.
    id String
    Unique identifier of the Managed Secret.
    name String
    Unique human-readable name of the Managed Secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    tags Map<String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.

    getManagedSecret Result

    The following output properties are available:

    Config string
    public part of the secret value
    ExpiresAt string
    Timestamp of when secret is going to be rotated
    Ids List<string>
    a list of strings of ids of data sources that match the given arguments.
    LastRotatedAt string
    Timestamp of when secret was last rotated
    ManagedSecrets List<PiersKarsenbarg.Sdm.Outputs.GetManagedSecretManagedSecret>
    A list where each element has the following attributes:
    SecretStorePath string
    Path in a secret store.
    Id string
    Unique identifier of the Managed Secret.
    Name string
    Unique human-readable name of the Managed Secret.
    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    Tags Dictionary<string, string>
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    Config string
    public part of the secret value
    ExpiresAt string
    Timestamp of when secret is going to be rotated
    Ids []string
    a list of strings of ids of data sources that match the given arguments.
    LastRotatedAt string
    Timestamp of when secret was last rotated
    ManagedSecrets []GetManagedSecretManagedSecret
    A list where each element has the following attributes:
    SecretStorePath string
    Path in a secret store.
    Id string
    Unique identifier of the Managed Secret.
    Name string
    Unique human-readable name of the Managed Secret.
    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    Tags map[string]string
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    config String
    public part of the secret value
    expiresAt String
    Timestamp of when secret is going to be rotated
    ids List<String>
    a list of strings of ids of data sources that match the given arguments.
    lastRotatedAt String
    Timestamp of when secret was last rotated
    managedSecrets List<GetManagedSecretManagedSecret>
    A list where each element has the following attributes:
    secretStorePath String
    Path in a secret store.
    id String
    Unique identifier of the Managed Secret.
    name String
    Unique human-readable name of the Managed Secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    tags Map<String,String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.
    config string
    public part of the secret value
    expiresAt string
    Timestamp of when secret is going to be rotated
    ids string[]
    a list of strings of ids of data sources that match the given arguments.
    lastRotatedAt string
    Timestamp of when secret was last rotated
    managedSecrets GetManagedSecretManagedSecret[]
    A list where each element has the following attributes:
    secretStorePath string
    Path in a secret store.
    id string
    Unique identifier of the Managed Secret.
    name string
    Unique human-readable name of the Managed Secret.
    secretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    tags {[key: string]: string}
    Tags is a map of key, value pairs.
    value string
    Sensitive value of the secret.
    config str
    public part of the secret value
    expires_at str
    Timestamp of when secret is going to be rotated
    ids Sequence[str]
    a list of strings of ids of data sources that match the given arguments.
    last_rotated_at str
    Timestamp of when secret was last rotated
    managed_secrets Sequence[GetManagedSecretManagedSecret]
    A list where each element has the following attributes:
    secret_store_path str
    Path in a secret store.
    id str
    Unique identifier of the Managed Secret.
    name str
    Unique human-readable name of the Managed Secret.
    secret_engine_id str
    An ID of a Secret Engine linked with the Managed Secret.
    tags Mapping[str, str]
    Tags is a map of key, value pairs.
    value str
    Sensitive value of the secret.
    config String
    public part of the secret value
    expiresAt String
    Timestamp of when secret is going to be rotated
    ids List<String>
    a list of strings of ids of data sources that match the given arguments.
    lastRotatedAt String
    Timestamp of when secret was last rotated
    managedSecrets List<Property Map>
    A list where each element has the following attributes:
    secretStorePath String
    Path in a secret store.
    id String
    Unique identifier of the Managed Secret.
    name String
    Unique human-readable name of the Managed Secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    tags Map<String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.

    Supporting Types

    GetManagedSecretManagedSecret

    Config string
    public part of the secret value
    ExpiresAt string
    Timestamp of when secret is going to be rotated
    LastRotatedAt string
    Timestamp of when secret was last rotated
    SecretStorePath string
    Path in a secret store.
    Id string
    Unique identifier of the Managed Secret.
    Name string
    Unique human-readable name of the Managed Secret.
    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    Tags Dictionary<string, string>
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    Config string
    public part of the secret value
    ExpiresAt string
    Timestamp of when secret is going to be rotated
    LastRotatedAt string
    Timestamp of when secret was last rotated
    SecretStorePath string
    Path in a secret store.
    Id string
    Unique identifier of the Managed Secret.
    Name string
    Unique human-readable name of the Managed Secret.
    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    Tags map[string]string
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    config String
    public part of the secret value
    expiresAt String
    Timestamp of when secret is going to be rotated
    lastRotatedAt String
    Timestamp of when secret was last rotated
    secretStorePath String
    Path in a secret store.
    id String
    Unique identifier of the Managed Secret.
    name String
    Unique human-readable name of the Managed Secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    tags Map<String,String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.
    config string
    public part of the secret value
    expiresAt string
    Timestamp of when secret is going to be rotated
    lastRotatedAt string
    Timestamp of when secret was last rotated
    secretStorePath string
    Path in a secret store.
    id string
    Unique identifier of the Managed Secret.
    name string
    Unique human-readable name of the Managed Secret.
    secretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    tags {[key: string]: string}
    Tags is a map of key, value pairs.
    value string
    Sensitive value of the secret.
    config str
    public part of the secret value
    expires_at str
    Timestamp of when secret is going to be rotated
    last_rotated_at str
    Timestamp of when secret was last rotated
    secret_store_path str
    Path in a secret store.
    id str
    Unique identifier of the Managed Secret.
    name str
    Unique human-readable name of the Managed Secret.
    secret_engine_id str
    An ID of a Secret Engine linked with the Managed Secret.
    tags Mapping[str, str]
    Tags is a map of key, value pairs.
    value str
    Sensitive value of the secret.
    config String
    public part of the secret value
    expiresAt String
    Timestamp of when secret is going to be rotated
    lastRotatedAt String
    Timestamp of when secret was last rotated
    secretStorePath String
    Path in a secret store.
    id String
    Unique identifier of the Managed Secret.
    name String
    Unique human-readable name of the Managed Secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    tags Map<String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.

    Package Details

    Repository
    sdm pierskarsenbarg/pulumi-sdm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sdm Terraform Provider.
    sdm logo
    StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg