StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg
sdm.getManagedSecret
Explore with Pulumi AI
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.
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- 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.
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- 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.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- 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.
- secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- {[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_ strid - An ID of a Secret Engine linked with the Managed Secret.
- 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.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- 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
- Expires
At 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.
- Last
Rotated stringAt - Timestamp of when secret was last rotated
- Managed
Secrets List<PiersKarsenbarg. Sdm. Outputs. Get Managed Secret Managed Secret> - A list where each element has the following attributes:
- Secret
Store stringPath - Path in a secret store.
- Id string
- Unique identifier of the Managed Secret.
- Name string
- Unique human-readable name of the Managed Secret.
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- 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
- Expires
At 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.
- Last
Rotated stringAt - Timestamp of when secret was last rotated
- Managed
Secrets []GetManaged Secret Managed Secret - A list where each element has the following attributes:
- Secret
Store stringPath - Path in a secret store.
- Id string
- Unique identifier of the Managed Secret.
- Name string
- Unique human-readable name of the Managed Secret.
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- 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
- expires
At 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.
- last
Rotated StringAt - Timestamp of when secret was last rotated
- managed
Secrets List<GetManaged Secret Managed Secret> - A list where each element has the following attributes:
- secret
Store StringPath - Path in a secret store.
- id String
- Unique identifier of the Managed Secret.
- name String
- Unique human-readable name of the Managed Secret.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- 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
- expires
At 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.
- last
Rotated stringAt - Timestamp of when secret was last rotated
- managed
Secrets GetManaged Secret Managed Secret[] - A list where each element has the following attributes:
- secret
Store stringPath - Path in a secret store.
- id string
- Unique identifier of the Managed Secret.
- name string
- Unique human-readable name of the Managed Secret.
- secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- {[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_ strat - Timestamp of when secret was last rotated
- managed_
secrets Sequence[GetManaged Secret Managed Secret] - A list where each element has the following attributes:
- secret_
store_ strpath - 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_ strid - An ID of a Secret Engine linked with the Managed Secret.
- 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
- expires
At 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.
- last
Rotated StringAt - Timestamp of when secret was last rotated
- managed
Secrets List<Property Map> - A list where each element has the following attributes:
- secret
Store StringPath - Path in a secret store.
- id String
- Unique identifier of the Managed Secret.
- name String
- Unique human-readable name of the Managed Secret.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- 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
- Expires
At string - Timestamp of when secret is going to be rotated
- Last
Rotated stringAt - Timestamp of when secret was last rotated
- Secret
Store stringPath - Path in a secret store.
- Id string
- Unique identifier of the Managed Secret.
- Name string
- Unique human-readable name of the Managed Secret.
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- 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
- Expires
At string - Timestamp of when secret is going to be rotated
- Last
Rotated stringAt - Timestamp of when secret was last rotated
- Secret
Store stringPath - Path in a secret store.
- Id string
- Unique identifier of the Managed Secret.
- Name string
- Unique human-readable name of the Managed Secret.
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- 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
- expires
At String - Timestamp of when secret is going to be rotated
- last
Rotated StringAt - Timestamp of when secret was last rotated
- secret
Store StringPath - Path in a secret store.
- id String
- Unique identifier of the Managed Secret.
- name String
- Unique human-readable name of the Managed Secret.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- 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
- expires
At string - Timestamp of when secret is going to be rotated
- last
Rotated stringAt - Timestamp of when secret was last rotated
- secret
Store stringPath - Path in a secret store.
- id string
- Unique identifier of the Managed Secret.
- name string
- Unique human-readable name of the Managed Secret.
- secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- {[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_ strat - Timestamp of when secret was last rotated
- secret_
store_ strpath - 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_ strid - An ID of a Secret Engine linked with the Managed Secret.
- 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
- expires
At String - Timestamp of when secret is going to be rotated
- last
Rotated StringAt - Timestamp of when secret was last rotated
- secret
Store StringPath - Path in a secret store.
- id String
- Unique identifier of the Managed Secret.
- name String
- Unique human-readable name of the Managed Secret.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- 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.