Secret Manager Secret Version

A Secret Manager Secret Version in Google Cloud securely stores a specific version of a secret, such as an API key or password. Each version is immutable once created, allowing safe rotation and rollback of secrets. Applications can access the latest or a specific version as needed, ensuring controlled and auditable secret management.

gcp.secretmanager_secret_version

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
client_specified_payload_checksumcoreboolOutput only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion.
create_timecoretimestampOutput only. The time at which the SecretVersion was created.
customer_managed_encryptioncorejsonOutput only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a regionalized secret.
datadog_display_namecorestring
destroy_timecoretimestampOutput only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.
etagcorestringOutput only. Etag of the currently stored SecretVersion.
labelscorearray<string>
namecorestringOutput only. The resource name of the SecretVersion in the format `projects/*/secrets/*/versions/*`. SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret.
organization_idcorestring
parentcorestring
project_idcorestring
project_numbercorestring
region_idcorestring
replication_statuscorejsonThe replication status of the SecretVersion.
resource_namecorestring
scheduled_destroy_timecoretimestampOptional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, version is moved to disabled state and it is scheduled for destruction Version is destroyed only after the scheduled_destroy_time.
statecorestringOutput only. The current state of the SecretVersion.
tagscorehstore_csv
zone_idcorestring