Skip to main content

secrets_version

Creates, updates, deletes, gets or lists a secrets_version resource.

Overview

Namesecrets_version
TypeResource
Idgoogle.secretmanager.secrets_version

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
add_versioninsertprojectsId, secretsIdCreates a new SecretVersion containing secret data and attaches it to an existing Secret.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectsIdstring
secretsIdstring

INSERT examples

Creates a new SecretVersion containing secret data and attaches it to an existing Secret.

INSERT INTO google.secretmanager.secrets_version (
data__payload,
projectsId,
secretsId
)
SELECT
'{{ payload }}',
'{{ projectsId }}',
'{{ secretsId }}'
RETURNING
name,
clientSpecifiedPayloadChecksum,
createTime,
customerManagedEncryption,
destroyTime,
etag,
replicationStatus,
scheduledDestroyTime,
state
;