secrets_version
Creates, updates, deletes, gets or lists a secrets_version
resource.
Overview
Name | secrets_version |
Type | Resource |
Id | google.secretmanager.secrets_version |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
add_version | INSERT | projectsId, secretsId | Creates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.secretmanager.secrets_version (
projectsId,
secretsId,
payload
)
SELECT
'{{ projectsId }}',
'{{ secretsId }}',
'{{ payload }}'
;
- name: your_resource_model_name
props:
- name: payload
value:
- name: data
value: string
- name: dataCrc32c
value: string