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 LookupSecretVersion in the Go SDK.

public static class GetSecretVersion {
    public static Task<GetSecretVersionResult> InvokeAsync(GetSecretVersionArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Secret string

The secret to get the secret version for.

Project string

The project to get the secret version for. If it is not provided, the provider project is used.

Version string

The version of the secret to get. If it is not provided, the latest version is retrieved.

Secret string

The secret to get the secret version for.

Project string

The project to get the secret version for. If it is not provided, the provider project is used.

Version string

The version of the secret to get. If it is not provided, the latest version is retrieved.

secret string

The secret to get the secret version for.

project string

The project to get the secret version for. If it is not provided, the provider project is used.

version string

The version of the secret to get. If it is not provided, the latest version is retrieved.

secret str

The secret to get the secret version for.

project str

The project to get the secret version for. If it is not provided, the provider project is used.

version str

The version of the secret to get. If it is not provided, the latest version is retrieved.

GetSecretVersion Result

The following output properties are available:

CreateTime string

The time at which the Secret was created.

DestroyTime 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
SecretData string

The secret data. No larger than 64KiB.

Version string
CreateTime string

The time at which the Secret was created.

DestroyTime 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
SecretData string

The secret data. No larger than 64KiB.

Version string
createTime string

The time at which the Secret was created.

destroyTime 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
secretData 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-beta Terraform Provider.