Skip to main content

region_instant_snapshot_groups

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

Overview

Nameregion_instant_snapshot_groups
TypeResource
Idgoogle.compute.region_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, region, instantSnapshotGroupreturns the specified InstantSnapshotGroup resource in the specified
region.
listselectproject, regionorderBy, maxResults, pageToken, filter, returnPartialSuccessretrieves the list of InstantSnapshotGroup resources contained within
the specified region.
insertinsertproject, regionrequestId, sourceConsistencyGroupcreates a Regional InstantSnapshotGroup resource
deletedeleteproject, region, instantSnapshotGrouprequestIddeletes a Regional 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
regionstring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean
sourceConsistencyGroupstring

SELECT examples

returns the specified InstantSnapshotGroup resource in the specified
region.

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

INSERT examples

creates a Regional InstantSnapshotGroup resource

INSERT INTO google.compute.region_instant_snapshot_groups (
data__sourceConsistencyGroup,
data__description,
data__name,
project,
region,
requestId,
sourceConsistencyGroup
)
SELECT
'{{ sourceConsistencyGroup }}',
'{{ description }}',
'{{ name }}',
'{{ project }}',
'{{ region }}',
'{{ requestId }}',
'{{ sourceConsistencyGroup }}'
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 Regional InstantSnapshotGroup resource

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