Skip to main content

snapshot_settings

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

Overview

Namesnapshot_settings
TypeResource
Idgoogle.compute.snapshot_settings

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
storageLocationobjectPolicy 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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectGet snapshot settings.
patchupdateprojectrequestId, updateMaskPatch 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.

NameDatatypeDescription
projectstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Get snapshot settings.

SELECT
storageLocation
FROM google.compute.snapshot_settings
WHERE project = '{{ project }}' -- required;

UPDATE examples

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;