instance_group_manager_resize_requests
Creates, updates, deletes, gets or lists a instance_group_manager_resize_requests
resource.
Overview
Name | instance_group_manager_resize_requests |
Type | Resource |
Id | google.compute.instance_group_manager_resize_requests |
Fields
Name | Datatype | Description |
---|---|---|
id | string | [Output Only] A unique identifier for this resource type. The server generates this identifier. |
name | string | The name of this resize request. The name must be 1-63 characters long, and comply with RFC1035. |
description | string | An optional description of this resource. |
creationTimestamp | string | [Output Only] The creation timestamp for this resize request in RFC3339 text format. |
kind | string | [Output Only] The resource type, which is always compute#instanceGroupManagerResizeRequest for resize requests. |
requestedRunDuration | object | A 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. |
resizeBy | integer | The 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'. |
selfLink | string | [Output Only] The URL for this resize request. The server defines this URL. |
selfLinkWithId | string | [Output Only] Server-defined URL for this resource with the resource id. |
state | string | [Output only] Current state of the request. |
status | object | |
zone | string | [Output Only] The URL of a zone where the resize request is located. Populated only for zonal resize requests. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | instanceGroupManager, project, resizeRequest, zone | Returns all of the details about the specified resize request. |
list | SELECT | instanceGroupManager, project, zone | Retrieves a list of resize requests that are contained in the managed instance group. |
insert | INSERT | instanceGroupManager, project, zone | Creates a new resize request that starts provisioning VMs immediately or queues VM creation. |
delete | DELETE | instanceGroupManager, project, resizeRequest, zone | Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously. |
cancel | EXEC | instanceGroupManager, project, resizeRequest, zone | Cancels 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: kind
value: string
- name: id
value: string
- name: creationTimestamp
value: string
- name: name
value: string
- name: description
value: string
- name: zone
value: string
- name: resizeBy
value: integer
- name: requestedRunDuration
value:
- name: seconds
value: string
- name: nanos
value: integer
- name: state
value: string
- name: status
value:
- name: error
value:
- name: errors
value:
- - name: code
value: string
- name: location
value: string
- name: message
value: string
- name: errorDetails
value:
- - name: errorInfo
value:
- name: reason
value: string
- name: domain
value: string
- name: metadatas
value: object
- name: quotaInfo
value:
- name: metricName
value: string
- name: limitName
value: string
- name: dimensions
value: object
- name: limit
value: number
- name: futureLimit
value: number
- name: rolloutStatus
value: string
- name: help
value:
- name: links
value:
- - name: description
value: string
- name: url
value: string
- name: localizedMessage
value:
- name: locale
value: string
- name: message
value: string
- name: lastAttempt
value:
- name: error
value:
- name: errors
value:
- - name: code
value: string
- name: location
value: string
- name: message
value: string
- name: errorDetails
value:
- []
- name: selfLink
value: string
- name: selfLinkWithId
value: string
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 }}';