Method: regionInstanceGroupManagers.applyUpdatesToInstances

Apply updates to selected instances the managed instance group.

HTTP request

POST https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}/applyUpdatesToInstances

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

region

string

Name of the region scoping this request, should conform to RFC1035.

resourceId

string

The name of the managed instance group, should conform to RFC1035.

Authorization requires the following IAM permission on the specified resource instanceGroupManager:

  • compute.instanceGroupManagers.update

Request body

The request body contains data with the following structure:

JSON representation
{
  "instances": [
    string
  ],
  "minimalAction": enum,
  "mostDisruptiveAllowedAction": enum,
  "allInstances": boolean
}
Fields
instances[]

string

The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

minimalAction

enum

The minimal action that you want to perform on each instance during the update:

  • REPLACE: At minimum, delete the instance and create it again.
  • RESTART: instances.stop the instance and start it again.
  • REFRESH: Do not stop the instance.