region_snapshot_settings
Creates, updates, deletes, gets or lists a region_snapshot_settings resource.
Overview
| Name | region_snapshot_settings |
| Type | Resource |
| Id | google.compute.region_snapshot_settings |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
accessLocation | object | (Regional snapshots use only)Policy of which location is allowed to access snapshot. (id: SnapshotSettingsAccessLocation) |
storageLocation | object | Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out. (id: SnapshotSettingsStorageLocationSettings) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | project, region | Get region snapshot settings. | |
patch | update | project, region | requestId, updateMask | Patch region snapshot settings. |
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 | |
requestId | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- get
Get region snapshot settings.
SELECT
accessLocation,
storageLocation
FROM google.compute.region_snapshot_settings
WHERE project = '{{ project }}' -- required
AND region = '{{ region }}' -- required
;
UPDATE examples
- patch
Patch region snapshot settings.
UPDATE google.compute.region_snapshot_settings
SET
data__storageLocation = '{{ storageLocation }}',
data__accessLocation = '{{ accessLocation }}'
WHERE
project = '{{ project }}' --required
AND region = '{{ region }}' --required
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
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;