snapshot_settings
Creates, updates, deletes, gets or lists a snapshot_settings
resource.
Overview
Name | snapshot_settings |
Type | Resource |
Id | google.compute.snapshot_settings |
Fields
The following fields are returned by SELECT
queries:
- get
Successful response
Name | Datatype | Description |
---|---|---|
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 | Get snapshot settings. | |
patch | update | project | requestId , updateMask | Patch 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 | |
requestId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
Get snapshot settings.
SELECT
storageLocation
FROM google.compute.snapshot_settings
WHERE project = '{{ project }}' -- required;
UPDATE
examples
- patch
Patch snapshot settings.
UPDATE google.compute.snapshot_settings
SET
data__storageLocation = '{{ storageLocation }}'
WHERE
project = '{{ project }}' --required
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone;