region_snapshots_kms_key
Creates, updates, deletes, gets or lists a region_snapshots_kms_key resource.
Overview
| Name | region_snapshots_kms_key |
| Type | Resource |
| Id | google.compute.region_snapshots_kms_key |
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 |
|---|---|---|---|---|
update_kms_key | update | project, region, snapshot | requestId | Rotates the customer-managed encryption key to the latest version for the specified snapshot. |
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 |
|---|---|---|
project | string | |
region | string | |
snapshot | string | |
requestId | string |
UPDATE examples
- update_kms_key
Rotates the customer-managed
encryption key to the latest version for the specified snapshot.
UPDATE google.compute.region_snapshots_kms_key
SET
data__kmsKeyName = '{{ kmsKeyName }}'
WHERE
project = '{{ project }}' --required
AND region = '{{ region }}' --required
AND snapshot = '{{ snapshot }}' --required
AND requestId = '{{ requestId}}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
getVersionOperationMetadata,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone;