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

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

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

Modifies the target pools to which all new instances in this group are
assigned. Existing instances in the group are not affected.

## Path parameters

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

## Query parameters

- `requestId` string

## Request body

- RegionInstanceGroupManagersSetTargetPoolsRequest
  - `targetPools` string[] — The URL of all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.
  - `fingerprint` string, byte — Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional.

## Response `200`

Successful response

---

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