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

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

Methods

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

INSERT example

Use the following StackQL query and manifest file to create a new secrets_version resource.

/*+ create */
INSERT INTO google.secretmanager.secrets_version (
projectsId,
secretsId,
payload
)
SELECT
'{{ projectsId }}',
'{{ secretsId }}',
'{{ payload }}'
;