---
title: "POST /projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize"
method: POST
path: "/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize"
tags: ["instanceGroupManagers"]
---

# POST /projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize

`POST /projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize`

Resizes the managed instance group. If you increase the size, the group
creates new instances using the current instance template. If you decrease
the size, the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group
has not yet added or deleted any instances. You must separately
verify the status of the creating or deleting
actions with thelistmanagedinstances
method.

When resizing down, the instance group arbitrarily chooses the order in
which VMs are deleted. The group takes into account some VM attributes when
making the selection including:

+ The status of the VM instance.
+ The health of the VM instance.
+ The instance template version the VM is based on.
+ For regional managed instance groups, the location of the VM instance.

This list is subject to change.

If the group is part of a backend
service that has enabled
connection draining, it can take up to 60 seconds after the connection
draining duration has elapsed before the VM instance is removed or deleted.

## Path parameters

- `project` string, required
- `zone` string, required
- `instanceGroupManager` string, required

## Query parameters

- `size` integer, required
- `requestId` string

## 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)
