GetSecretVersion
Get a Secret Manager secret’s version. For more information see the official documentation and API.
Using GetSecretVersion
function getSecretVersion(args: GetSecretVersionArgs, opts?: InvokeOptions): Promise<GetSecretVersionResult>function get_secret_version(project=None, secret=None, version=None, opts=None)func LookupSecretVersion(ctx *Context, args *LookupSecretVersionArgs, opts ...InvokeOption) (*LookupSecretVersionResult, error)Note: This function is named
LookupSecretVersionin the Go SDK.
public static class GetSecretVersion {
public static Task<GetSecretVersionResult> InvokeAsync(GetSecretVersionArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetSecretVersion Result
The following output properties are available:
- Create
Time string The time at which the Secret was created.
- Destroy
Time string The time at which the Secret was destroyed. Only present if state is DESTROYED.
- Enabled bool
True if the current state of the SecretVersion is enabled.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The resource name of the SecretVersion. Format:
projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}- Project string
- Secret string
- Secret
Data string The secret data. No larger than 64KiB.
- Version string
- Create
Time string The time at which the Secret was created.
- Destroy
Time string The time at which the Secret was destroyed. Only present if state is DESTROYED.
- Enabled bool
True if the current state of the SecretVersion is enabled.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The resource name of the SecretVersion. Format:
projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}- Project string
- Secret string
- Secret
Data string The secret data. No larger than 64KiB.
- Version string
- create
Time string The time at which the Secret was created.
- destroy
Time string The time at which the Secret was destroyed. Only present if state is DESTROYED.
- enabled boolean
True if the current state of the SecretVersion is enabled.
- id string
The provider-assigned unique ID for this managed resource.
- name string
The resource name of the SecretVersion. Format:
projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}- project string
- secret string
- secret
Data string The secret data. No larger than 64KiB.
- version string
- create_
time str The time at which the Secret was created.
- destroy_
time str The time at which the Secret was destroyed. Only present if state is DESTROYED.
- enabled bool
True if the current state of the SecretVersion is enabled.
- id str
The provider-assigned unique ID for this managed resource.
- name str
The resource name of the SecretVersion. Format:
projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}- project str
- secret str
- secret_
data str The secret data. No larger than 64KiB.
- version str
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.