Skip to main content

region_snapshots_kms_key

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

Overview

Nameregion_snapshots_kms_key
TypeResource
Idgoogle.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:

NameAccessible byRequired ParamsOptional ParamsDescription
update_kms_keyupdateproject, region, snapshotrequestIdRotates 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.

NameDatatypeDescription
projectstring
regionstring
snapshotstring
requestIdstring

UPDATE examples

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;