InstanceGroupManagerResizeRequest

InstanceGroupManagerResizeRequest represents a request to create a number of VMs: either immediately or by queuing the request for the specified time. This resize request is nested under InstanceGroupManager and the VMs created by this request are added to the owning InstanceGroupManager.

JSON representation
{
  "kind": string,
  "id": string,
  "creationTimestamp": string,
  "name": string,
  "description": string,
  "zone": string,
  "resizeBy": integer,
  "requestedRunDuration": {
    object (Duration)
  },
  "state": enum (State),
  "status": {
    object (Status)
  },
  "selfLink": string,
  "selfLinkWithId": string
}
Fields
kind

string

[Output Only] The resource type, which is always

compute#instanceGroupManagerResizeRequest

for resize requests.

id

string (uint64 format)

[Output Only] A unique identifier for this resource type. The server generates this identifier.

creationTimestamp

string

[Output Only] The creation timestamp for this resize request in RFC3339 text format.

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.

zone

string

[Output Only] The URL of a zone where the resize request is located. Populated only for zonal resize requests.

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'.

requestedRunDuration

object (Duration)

Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.

state

enum (State)

[Output only] Current state of the request.

status

object (Status)

[Output only] Status of the request.

State

Enums
STATE_UNSPECIFIED Default value. This value should never be returned.
CREATING Resize request is being created and may still fail creation.
ACCEPTED The request was created successfully and was accepted for provisioning when the capacity becomes available.
FAILED The request failed before or during provisioning. If the request fails during provisioning, any VMs that were created during provisioning are rolled back and removed from the MIG.
SUCCEEDED The request succeeded.
CANCELLED The request is cancelled.

Status

JSON representation
{
  "error": {
    "errors": [
      {
        "code": string,
        "location": string,
        "message": string,
        "errorDetails": [
          {
            "errorInfo": {
              object (ErrorInfo)
            },
            "quotaInfo": {
              object (QuotaExceededInfo)
            },
            "help": {
              object (Help)
            },
            "localizedMessage": {
              object (LocalizedMessage)
            }
          }
        ]
      }
    ]
  },
  "lastAttempt": {
    object (LastAttempt)
  }
}
Fields
error

object

[Output only] Fatal errors encountered during the queueing or provisioning phases of the ResizeRequest that caused the transition to the FAILED state. Contrary to the lastAttempt errors, this field is final and errors are never removed from here, as the ResizeRequest is not going to retry.

error.errors[]

object

[Output Only] The array of errors encountered while processing this operation.

error.errors[].code

string

[Output Only] The error type identifier for this error.

error.errors[].location

string

[Output Only] Indicates the field in the request that caused the error. This property is optional.

error.errors[].message

string

[Output Only] An optional, human-readable error message.

error.errors[].errorDetails[]

object

[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.

error.errors[].errorDetails[].errorInfo

object (ErrorInfo)

error.errors[].errorDetails[].quotaInfo

object (QuotaExceededInfo)

error.errors[].errorDetails[].help

object (Help)

error.errors[].errorDetails[].localizedMessage

object (LocalizedMessage)

lastAttempt

object (LastAttempt)

[Output only] Information about the last attempt to fulfill the request. The value is temporary since the ResizeRequest can retry, as long as it's still active and the last attempt value can either be cleared or replaced with a different error. Since ResizeRequest retries infrequently, the value may be stale and no longer show an active problem. The value is cleared when ResizeRequest transitions to the final state (becomes inactive). If the final state is FAILED the error describing it will be storred in the "error" field only.

LastAttempt

JSON representation
{
  "error": {
    "errors": [
      {
        "code": string,
        "location": string,
        "message": string,
        "errorDetails": [
          {
            "errorInfo": {
              object (ErrorInfo)
            },
            "quotaInfo": {
              object (QuotaExceededInfo)
            },
            "help": {
              object (Help)
            },
            "localizedMessage": {
              object (LocalizedMessage)
            }
          }
        ]
      }
    ]
  }
}
Fields
error

object

Errors that prevented the ResizeRequest to be fulfilled.

error.errors[]

object

[Output Only] The array of errors encountered while processing this operation.

error.errors[].code

string

[Output Only] The error type identifier for this error.

error.errors[].location

string

[Output Only] Indicates the field in the request that caused the error. This property is optional.

error.errors[].message

string

[Output Only] An optional, human-readable error message.

error.errors[].errorDetails[]

object

[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.

error.errors[].errorDetails[].errorInfo

object (ErrorInfo)

error.errors[].errorDetails[].quotaInfo

object (QuotaExceededInfo)

error.errors[].errorDetails[].help

object (Help)

error.errors[].errorDetails[].localizedMessage

object (LocalizedMessage)