secrets_version
Creates, updates, deletes, gets or lists a secrets_version
resource.
Overview
Name | secrets_version |
Type | Resource |
Id | google.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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
add_version | insert | projectsId , secretsId | Creates 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.
Name | Datatype | Description |
---|---|---|
projectsId | string | |
secretsId | string |
INSERT
examples
- add_version
- Manifest
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
;
# Description fields are for documentation purposes
- name: secrets_version
props:
- name: projectsId
value: string
description: Required parameter for the secrets_version resource.
- name: secretsId
value: string
description: Required parameter for the secrets_version resource.
- name: payload
value: object
description: >
Required. The secret payload of the SecretVersion.