Skip to main content

versions

Overview

Nameversions
TypeResource
Idgoogle.secretmanager.versions

Fields

NameDatatypeDescription
namestringOutput 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.
clientSpecifiedPayloadChecksumbooleanOutput only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion.
createTimestringOutput only. The time at which the SecretVersion was created.
destroyTimestringOutput only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.
etagstringOutput only. Etag of the currently stored SecretVersion.
replicationStatusobjectThe replication status of a SecretVersion.
statestringOutput only. The current state of the SecretVersion.

Methods

NameAccessible byRequired ParamsDescription
getSELECTprojectsId, secretsId, versionsIdGets metadata for a SecretVersion. projects/*/secrets/*/versions/latest is an alias to the most recently created SecretVersion.
listSELECTprojectsId, secretsIdLists SecretVersions. This call does not return secret data.
_listEXECprojectsId, secretsIdLists SecretVersions. This call does not return secret data.
accessEXECprojectsId, secretsId, versionsIdAccesses a SecretVersion. This call returns the secret data. projects/*/secrets/*/versions/latest is an alias to the most recently created SecretVersion.
destroyEXECprojectsId, secretsId, versionsIdDestroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and irrevocably destroys the secret data.
disableEXECprojectsId, secretsId, versionsIdDisables a SecretVersion. Sets the state of the SecretVersion to DISABLED.
enableEXECprojectsId, secretsId, versionsIdEnables a SecretVersion. Sets the state of the SecretVersion to ENABLED.