Skip to main content

instance_group_manager_resize_requests

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

Overview

Nameinstance_group_manager_resize_requests
TypeResource
Idgoogle.compute.instance_group_manager_resize_requests

Fields

NameDatatypeDescription
idstring[Output Only] A unique identifier for this resource type. The server generates this identifier.
namestringThe name of this resize request. The name must be 1-63 characters long, and comply with RFC1035.
descriptionstringAn optional description of this resource.
creationTimestampstring[Output Only] The creation timestamp for this resize request in RFC3339 text format.
kindstring[Output Only] The resource type, which is always compute#instanceGroupManagerResizeRequest for resize requests.
requestedRunDurationobjectA Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years.
resizeByintegerThe number of instances to be created by this resize request. The group's target size will be increased by this number. This field cannot be used together with 'instances'.
selfLinkstring[Output Only] The URL for this resize request. The server defines this URL.
selfLinkWithIdstring[Output Only] Server-defined URL for this resource with the resource id.
statestring[Output only] Current state of the request.
statusobject
zonestring[Output Only] The URL of a zone where the resize request is located. Populated only for zonal resize requests.

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstanceGroupManager, project, resizeRequest, zoneReturns all of the details about the specified resize request.
listSELECTinstanceGroupManager, project, zoneRetrieves a list of resize requests that are contained in the managed instance group.
insertINSERTinstanceGroupManager, project, zoneCreates a new resize request that starts provisioning VMs immediately or queues VM creation.
deleteDELETEinstanceGroupManager, project, resizeRequest, zoneDeletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.
cancelEXECinstanceGroupManager, project, resizeRequest, zoneCancels the specified resize request and removes it from the queue. Cancelled resize request does no longer wait for the resources to be provisioned. Cancel is only possible for requests that are accepted in the queue.

SELECT examples

Retrieves a list of resize requests that are contained in the managed instance group.

SELECT
id,
name,
description,
creationTimestamp,
kind,
requestedRunDuration,
resizeBy,
selfLink,
selfLinkWithId,
state,
status,
zone
FROM google.compute.instance_group_manager_resize_requests
WHERE instanceGroupManager = '{{ instanceGroupManager }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';

INSERT example

Use the following StackQL query and manifest file to create a new instance_group_manager_resize_requests resource.

/*+ create */
INSERT INTO google.compute.instance_group_manager_resize_requests (
instanceGroupManager,
project,
zone,
name,
description,
zone,
resizeBy,
requestedRunDuration,
state,
status
)
SELECT
'{{ instanceGroupManager }}',
'{{ project }}',
'{{ zone }}',
'{{ name }}',
'{{ description }}',
'{{ zone }}',
'{{ resizeBy }}',
'{{ requestedRunDuration }}',
'{{ state }}',
'{{ status }}'
;

DELETE example

Deletes the specified instance_group_manager_resize_requests resource.

/*+ delete */
DELETE FROM google.compute.instance_group_manager_resize_requests
WHERE instanceGroupManager = '{{ instanceGroupManager }}'
AND project = '{{ project }}'
AND resizeRequest = '{{ resizeRequest }}'
AND zone = '{{ zone }}';