A secret version resource in the Secret Manager API.
Attributes
Name
Description
name
str
Output 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.
create_time
google.protobuf.timestamp_pb2.Timestamp
Output only. The time at which the
SecretVersion
was created.
destroy_time
google.protobuf.timestamp_pb2.Timestamp
Output only. The time this
SecretVersion
was destroyed. Only present if
state is
DESTROYED.
[[["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-08-28 UTC."],[],[],null,["# Class SecretVersion (2.23.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.23.3 (latest)](/python/docs/reference/secretmanager/latest/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.23.1](/python/docs/reference/secretmanager/2.23.1/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.22.1](/python/docs/reference/secretmanager/2.22.1/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.21.1](/python/docs/reference/secretmanager/2.21.1/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.20.2](/python/docs/reference/secretmanager/2.20.2/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.19.0](/python/docs/reference/secretmanager/2.19.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.18.3](/python/docs/reference/secretmanager/2.18.3/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.17.0](/python/docs/reference/secretmanager/2.17.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.16.3](/python/docs/reference/secretmanager/2.16.3/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.15.1](/python/docs/reference/secretmanager/2.15.1/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.14.0](/python/docs/reference/secretmanager/2.14.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.13.0](/python/docs/reference/secretmanager/2.13.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.12.6](/python/docs/reference/secretmanager/2.12.6/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.11.1](/python/docs/reference/secretmanager/2.11.1/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.10.0](/python/docs/reference/secretmanager/2.10.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.9.2](/python/docs/reference/secretmanager/2.9.2/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.8.0](/python/docs/reference/secretmanager/2.8.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.7.3](/python/docs/reference/secretmanager/2.7.3/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.6.0](/python/docs/reference/secretmanager/2.6.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.5.0](/python/docs/reference/secretmanager/2.5.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.4.0](/python/docs/reference/secretmanager/2.4.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.3.0](/python/docs/reference/secretmanager/2.3.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.2.0](/python/docs/reference/secretmanager/2.2.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.1.0](/python/docs/reference/secretmanager/2.1.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [2.0.0](/python/docs/reference/secretmanager/2.0.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [1.0.2](/python/docs/reference/secretmanager/1.0.2/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [0.2.0](/python/docs/reference/secretmanager/0.2.0/google.cloud.secretmanager_v1beta1.types.SecretVersion)\n- [0.1.1](/python/docs/reference/secretmanager/0.1.1/google.cloud.secretmanager_v1beta1.types.SecretVersion) \n\n SecretVersion(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nA secret version resource in the Secret Manager API.\n\nClasses\n-------\n\n### State\n\n State(value)\n\nThe state of a\nSecretVersion,\nindicating if it can be accessed."]]