Output only. The time at which the SecretVersion was created.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
Optional. 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 scheduledDestroyTime.
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a regionalized secret.
State
The state of a SecretVersion, indicating if it can be accessed.
{// Union field replication_status can be only one of the following:"automatic": {object (AutomaticStatus)},"userManaged": {object (UserManagedStatus)}// End of list of possible types for union field replication_status.}
Fields
Union field replication_status. The replication status of the SecretVersion. replication_status can be only one of the following:
Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used.
CustomerManagedEncryptionStatus
Describes the status of customer-managed encryption.
JSON representation
{"kmsKeyVersionName": string}
Fields
kmsKeyVersionName
string
Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the secret payload, in the following format: projects/*/locations/*/keyRings/*/cryptoKeys/*/versions/*.
UserManagedStatus
The replication status of a SecretVersion using user-managed replication.
Only populated if the parent Secret has a user-managed replication policy.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-14 UTC."],[],[],null,["# REST Resource: projects.locations.secrets.versions\n\n- [Resource: SecretVersion](#SecretVersion)\n - [JSON representation](#SecretVersion.SCHEMA_REPRESENTATION)\n - [State](#SecretVersion.State)\n - [CustomerManagedEncryptionStatus](#SecretVersion.CustomerManagedEncryptionStatus)\n - [JSON representation](#SecretVersion.CustomerManagedEncryptionStatus.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: SecretVersion\n-----------------------\n\nA secret version resource in the Secret Manager API.\n\n### State\n\nThe state of a [SecretVersion](/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions#SecretVersion), indicating if it can be accessed.\n\n### ReplicationStatus\n\nThe replication status of a [SecretVersion](/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions#SecretVersion).\n\n### AutomaticStatus\n\nThe replication status of a [SecretVersion](/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions#SecretVersion) using automatic replication.\n\nOnly populated if the parent [Secret](/secret-manager/docs/reference/rest/v1/projects.locations.secrets#Secret) has an automatic replication policy.\n\n### CustomerManagedEncryptionStatus\n\nDescribes the status of customer-managed encryption.\n\n### UserManagedStatus\n\nThe replication status of a [SecretVersion](/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions#SecretVersion) using user-managed replication.\n\nOnly populated if the parent [Secret](/secret-manager/docs/reference/rest/v1/projects.locations.secrets#Secret) has a user-managed replication policy.\n\n### ReplicaStatus\n\nDescribes the status of a user-managed replica for the [SecretVersion](/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions#SecretVersion)."]]