Skip to main content

instant_snapshot_groups

Creates, updates, deletes, gets or lists an instant_snapshot_groups resource.

Overview

Nameinstant_snapshot_groups
TypeResource
Idgoogle.compute.instant_snapshot_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uint64)Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestringIdentifier. Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. (pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)
creationTimestampstringOutput only. [Output Only] Creation timestamp inRFC3339 text format.
descriptionstringOptional. An optional description of this resource. Provide this property when you create the resource.
kindstringOutput only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup resources. (default: compute#instantSnapshotGroup)
regionstringOutput only. [Output Only] URL of the region where the instant snapshot group resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
resourceStatusobject (id: InstantSnapshotGroupResourceStatus)
selfLinkstringOutput only. [Output Only] Server-defined URL for the resource.
selfLinkWithIdstringOutput only. [Output Only] Server-defined URL for this resource's resource id.
sourceConsistencyGroupstring
statusstringOutput only. [Output Only] (CREATING, DELETING, FAILED, INVALID, READY, UNKNOWN)
zonestringOutput only. [Output Only] URL of the zone where the instant snapshot group resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, zone, instantSnapshotGroupreturns the specified InstantSnapshotGroup resource in the specified zone.
listselectproject, zoneorderBy, maxResults, pageToken, filter, returnPartialSuccessretrieves the list of InstantSnapshotGroup resources contained within
the specified zone.
insertinsertproject, zonesourceConsistencyGroup, requestIdinserts a Zonal InstantSnapshotGroup resource
deletedeleteproject, zone, instantSnapshotGrouprequestIddeletes a Zonal InstantSnapshotGroup resource

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
instantSnapshotGroupstring
projectstring
zonestring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean
sourceConsistencyGroupstring

SELECT examples

returns the specified InstantSnapshotGroup resource in the specified zone.

SELECT
id,
name,
creationTimestamp,
description,
kind,
region,
resourceStatus,
selfLink,
selfLinkWithId,
sourceConsistencyGroup,
status,
zone
FROM google.compute.instant_snapshot_groups
WHERE project = '{{ project }}' -- required
AND zone = '{{ zone }}' -- required
AND instantSnapshotGroup = '{{ instantSnapshotGroup }}' -- required
;

INSERT examples

inserts a Zonal InstantSnapshotGroup resource

INSERT INTO google.compute.instant_snapshot_groups (
data__sourceConsistencyGroup,
data__description,
data__name,
project,
zone,
sourceConsistencyGroup,
requestId
)
SELECT
'{{ sourceConsistencyGroup }}',
'{{ description }}',
'{{ name }}',
'{{ project }}',
'{{ zone }}',
'{{ sourceConsistencyGroup }}',
'{{ 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
;

DELETE examples

deletes a Zonal InstantSnapshotGroup resource

DELETE FROM google.compute.instant_snapshot_groups
WHERE project = '{{ project }}' --required
AND zone = '{{ zone }}' --required
AND instantSnapshotGroup = '{{ instantSnapshotGroup }}' --required
AND requestId = '{{ requestId }}'
;