---
title: "POST /projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"
method: POST
path: "/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"
tags: ["regionInstanceGroupManagerResizeRequests"]
---

# POST /projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests

`POST /projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests`

Creates a new Resize Request that starts provisioning VMs immediately
or queues VM creation.

## Path parameters

- `project` string, required
- `region` string, required
- `instanceGroupManager` string, required

## Query parameters

- `requestId` string

## Request body

- 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.
  - `instances` PerInstanceConfig[] — The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.
    - `preservedState` PreservedState — Preserved state for a given instance.
      - `disks` object — Preserved disks defined for this instance. This map is keyed with the device names of the disks.
      - `internalIPs` object — Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.
      - `metadata` object — Preserved metadata defined for this instance.
      - `externalIPs` object — Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.
    - `fingerprint` string, byte — Fingerprint of this per-instance config. This field can be used in optimistic locking. It is ignored when inserting a per-instance config. An up-to-date fingerprint must be provided in order to update an existing per-instance configuration or the field needs to be unset.
    - `status` 'APPLYING' | 'DELETING' | 'EFFECTIVE' | 'NONE' | 'UNAPPLIED' | 'UNAPPLIED_DELETION' — The status of applying this per-instance configuration on the corresponding managed instance.
    - `name` string — The name of a per-instance configuration and its corresponding instance. Serves as a merge key during UpdatePerInstanceConfigs operations, that is, if a per-instance configuration with the same name exists then it will be updated, otherwise a new one will be created for the VM instance with the same name. An attempt to create a per-instance configuration for a VM instance that either doesn't exist or is not part of the group will result in an error.
  - `zone` string — Output only. The URL of a zone where the resize request is located. Populated only for zonal resize requests.
  - `selfLink` string — Output only. The URL for this resize request. The server defines this URL.
  - `status` InstanceGroupManagerResizeRequestStatus
    - `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 last_attempt errors, this field is final and errors are never removed from here, as the ResizeRequest is not going to retry.
      - `errors` object[] — [Output Only] The array of errors encountered while processing this operation.
        - `location` string — [Output Only] Indicates the field in the request that caused the error. This property is optional.
        - `message` string — [Output Only] An optional, human-readable error message.
        - `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.
          - `errorInfo` ErrorInfo — Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { "resource": "projects/123", "service": "pubsub.googleapis.com" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { "availableRegions": "us-central1,us-east2" } }
            - `metadatas` object — Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
            - `reason` string — The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
            - `domain` string — The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com".
          - `help` Help — Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.
            - `links` HelpLink[] — URL(s) pointing to additional information on handling the current error.
              - …
          - `localizedMessage` LocalizedMessage — Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
            - `locale` string — The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
            - `message` string — The localized error message in the above locale.
          - `quotaInfo` QuotaExceededInfo — Additional details for quota exceeded error for resource quota.
            - `limitName` string — The name of the quota limit.
            - `limit` number, double — Current effective quota limit. The limit's unit depends on the quota type or metric.
            - `futureLimit` number, double — Future quota limit being rolled out. The limit's unit depends on the quota type or metric.
            - `metricName` string — The Compute Engine quota metric name.
            - `dimensions` object — The map holding related quota dimensions.
            - `rolloutStatus` 'IN_PROGRESS' | 'ROLLOUT_STATUS_UNSPECIFIED' — Rollout status of the future quota limit.
        - `code` string — [Output Only] The error type identifier for this error.
    - `lastAttempt` InstanceGroupManagerResizeRequestStatusLastAttempt
      - `error` object — Output only. Errors that prevented the ResizeRequest to be fulfilled.
        - `errors` object[] — [Output Only] The array of errors encountered while processing this operation.
          - `code` string — [Output Only] The error type identifier for this error.
          - `message` string — [Output Only] An optional, human-readable error message.
          - `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.
            - `errorInfo` ErrorInfo — Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { "resource": "projects/123", "service": "pubsub.googleapis.com" } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { "availableRegions": "us-central1,us-east2" } }
              - …
            - `help` Help — Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn't enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.
              - …
            - `localizedMessage` LocalizedMessage — Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
              - …
            - `quotaInfo` QuotaExceededInfo — Additional details for quota exceeded error for resource quota.
              - …
          - `location` string — [Output Only] Indicates the field in the request that caused the error. This property is optional.
  - `selfLinkWithId` string — Output only. Server-defined URL for this resource with the resource id.
  - `id` string, uint64 — 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 withRFC1035.
  - `kind` string — Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.
  - `description` string — An optional description of this resource.
  - `region` string — Output only. The URL of a region where the resize request is located. Populated only for regional 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` Duration — 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.
    - `nanos` integer — Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive.
    - `seconds` string, int64 — Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
  - `state` 'ACCEPTED' | 'CANCELLED' | 'CREATING' | 'FAILED' | 'STATE_UNSPECIFIED' | 'SUCCEEDED' — Output only. Current state of the request.
  - `creationTimestamp` string — Output only. The creation timestamp for this resize request inRFC3339 text format.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/compute.md) · [All operations](https://skmtc.dev/google/apis/compute/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/compute/revisions/6120ed8969d4/schema)
