REST Resource: regionInstanceGroupManagers

Resource: InstanceGroupManager

Represents a Managed Instance Group resource.

An instance group is a collection of VM instances that you can manage as a single entity. For more information, read Instance groups.

For zonal Managed Instance Group, use the

instanceGroupManagers

resource.

For regional Managed Instance Group, use the

regionInstanceGroupManagers

resource.

JSON representation
{
  "kind": string,
  "id": string,
  "creationTimestamp": string,
  "name": string,
  "description": string,
  "zone": string,
  "region": string,
  "distributionPolicy": {
    object (DistributionPolicy)
  },
  "instanceTemplate": string,
  "versions": [
    {
      object (Version)
    }
  ],
  "allInstancesConfig": {
    object (AllInstancesConfig)
  },
  "instanceGroup": string,
  "targetPools": [
    string
  ],
  "baseInstanceName": string,
  "fingerprint": string,
  "currentActions": {
    object (ActionsSummary)
  },
  "status": {
    object (Status)
  },
  "targetSize": integer,
  "targetSizePolicy": {
    object (TargetSizePolicy)
  },
  "instanceFlexibilityPolicy": {
    object (InstanceFlexibilityPolicy)
  },
  "targetStoppedSize": integer,
  "targetSuspendedSize": integer,
  "listManagedInstancesResults": enum (ListManagedInstancesResults),
  "standbyPolicy": {
    object (StandbyPolicy)
  },
  "selfLink": string,
  "autoHealingPolicies": [
    {
      object (AutoHealingPolicy)
    }
  ],
  "updatePolicy": {
    object (UpdatePolicy)
  },
  "namedPorts": [
    {
      object (NamedPort)
    }
  ],
  "serviceAccount": string,
  "failoverAction": enum (FailoverAction),
  "statefulPolicy": {
    object (StatefulPolicy)
  },
  "instanceLifecyclePolicy": {
    object (InstanceLifecyclePolicy)
  },
  "params": {
    object (InstanceGroupManagerParams)
  },
  "satisfiesPzi": boolean,
  "satisfiesPzs": boolean,
  "resourcePolicies": {
    object (ResourcePolicies)
  },
  "multiMig": string
}
Fields
kind

string

[Output Only] The resource type, which is always

compute#instanceGroupManager

for managed instance groups.

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 managed instance group in RFC3339 text format.

name

string

The name of the managed instance group. 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 managed instance group is located (for zonal resources).

region

string

[Output Only] The URL of the region where the managed instance group resides (for regional resources).

distributionPolicy

object (DistributionPolicy)

Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.

instanceTemplate

string

The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run

recreateInstances

, run

applyUpdatesToInstances

, or set the group's

updatePolicy.type

to

PROACTIVE

.

versions[]

object (Version)

Specifies the instance templates used by this managed instance group to create instances.

Each version is defined by an

instanceTemplate

and a

name

. Every version can appear at most once per instance group. This field overrides the top-level

instanceTemplate

field. Read more about the relationships between these fields. Exactly one

version

must leave the

targetSize

field unset. That version will be applied to all remaining instances. For more information, read about canary updates.

allInstancesConfig

object (AllInstancesConfig)

Specifies configuration that overrides the instance template configuration for the group.

instanceGroup

string

[Output Only] The URL of the Instance Group resource.

targetPools[]

string

The URLs for all TargetPool resources to which instances in the

instanceGroup

field are added. The target pools automatically apply to all of the instances in the managed instance group.

baseInstanceName

string

The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. The maximum character length is 58 and the name must comply with RFC1035 format.

When a VM is created in the group, the MIG appends a hyphen and a random four-character string to the base instance name. If you want the MIG to assign sequential numbers instead of a random string, then end the base instance name with a hyphen followed by one or more hash symbols. The hash symbols indicate the number of digits. For example, a base instance name of "vm-###" results in "vm-001" as a VM name. @pattern [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\[[0-9]{1,10}\])?))

fingerprint

string (bytes format)

Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager, otherwise the request will fail with error

412 conditionNotMet

.

To see the latest fingerprint, make a

get()

request to retrieve an InstanceGroupManager.

A base64-encoded string.

currentActions

object (ActionsSummary)

[Output Only] The list of instance actions and the number of instances in this managed instance group that are scheduled for each of those actions.

status

object (Status)

[Output Only] The status of this managed instance group.

targetSize

integer

The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number.

targetSizePolicy

object (TargetSizePolicy)

The policy that specifies how the MIG creates its VMs to achieve the target size.

instanceFlexibilityPolicy

object (InstanceFlexibilityPolicy)

Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance flexibility configuration on MIG overrides instance template configuration.

targetStoppedSize

integer

The target number of stopped instances for this managed instance group. This number changes when you:

targetSuspendedSize

integer

The target number of suspended instances for this managed instance group. This number changes when you:

listManagedInstancesResults

enum (ListManagedInstancesResults)

Pagination behavior of the

listManagedInstances

API method for this managed instance group.

standbyPolicy

object (StandbyPolicy)

Standby policy for stopped and suspended instances.

autoHealingPolicies[]

object (AutoHealingPolicy)

The autohealing policy for this managed instance group. You can specify only one value.

updatePolicy

object (UpdatePolicy)

The update policy for this managed instance group.

namedPorts[]

object (NamedPort)

[Output Only] Named ports configured on the Instance Groups complementary to this Instance Group Manager.

serviceAccount

string

The service account to be used as credentials for all operations performed by the managed instance group on instances. The service accounts needs all permissions required to create and delete instances. By default, the service account {projectNumber}@cloudservices.gserviceaccount.com is used.

failoverAction

enum (FailoverAction)

The action to perform in case of zone failure. Only one value is supported,

NO_FAILOVER

. The default is

NO_FAILOVER

.

statefulPolicy

object (StatefulPolicy)

Stateful configuration for this Instanced Group Manager

instanceLifecyclePolicy

object (InstanceLifecyclePolicy)

The repair policy for this managed instance group.

params

object (InstanceGroupManagerParams)

Input only. Additional params passed with the request, but not persisted as part of resource payload.

satisfiesPzi

boolean

[Output Only] Reserved for future use.

satisfiesPzs

boolean

[Output Only] Reserved for future use.

resourcePolicies

object (ResourcePolicies)

Resource policies for this managed instance group.

multiMig

string

URL to the multi-MIG that this Managed Instance Group belongs to.

Methods

abandonInstances

The method compute.beta.RegionInstanceGroupManagersService.AbandonInstances is not available in Trusted Cloud by S3NS.

applyUpdatesToInstances

The method compute.beta.RegionInstanceGroupManagersService.ApplyUpdatesToInstances is not available in Trusted Cloud by S3NS.

createInstances

The method compute.beta.RegionInstanceGroupManagersService.CreateInstances is not available in Trusted Cloud by S3NS.

delete

The method compute.beta.RegionInstanceGroupManagersService.Delete is not available in Trusted Cloud by S3NS.

deleteInstances

The method compute.beta.RegionInstanceGroupManagersService.DeleteInstances is not available in Trusted Cloud by S3NS.

deletePerInstanceConfigs

The method compute.beta.RegionInstanceGroupManagersService.DeletePerInstanceConfigs is not available in Trusted Cloud by S3NS.

get

The method compute.beta.RegionInstanceGroupManagersService.Get is not available in Trusted Cloud by S3NS.

insert

The method compute.beta.RegionInstanceGroupManagersService.Insert is not available in Trusted Cloud by S3NS.

list

The method compute.beta.RegionInstanceGroupManagersService.List is not available in Trusted Cloud by S3NS.

listErrors

The method compute.beta.RegionInstanceGroupManagersService.ListErrors is not available in Trusted Cloud by S3NS.

listManagedInstances

The method compute.beta.RegionInstanceGroupManagersService.ListManagedInstances is not available in Trusted Cloud by S3NS.

listPerInstanceConfigs

The method compute.beta.RegionInstanceGroupManagersService.ListPerInstanceConfigs is not available in Trusted Cloud by S3NS.

patch

The method compute.beta.RegionInstanceGroupManagersService.Patch is not available in Trusted Cloud by S3NS.

patchPerInstanceConfigs

The method compute.beta.RegionInstanceGroupManagersService.PatchPerInstanceConfigs is not available in Trusted Cloud by S3NS.

recreateInstances

The method compute.beta.RegionInstanceGroupManagersService.RecreateInstances is not available in Trusted Cloud by S3NS.

resize

The method compute.beta.RegionInstanceGroupManagersService.Resize is not available in Trusted Cloud by S3NS.

resizeAdvanced

The method compute.beta.RegionInstanceGroupManagersService.ResizeAdvanced is not available in Trusted Cloud by S3NS.

resumeInstances

The method compute.beta.RegionInstanceGroupManagersService.ResumeInstances is not available in Trusted Cloud by S3NS.

setAutoHealingPolicies
(deprecated)

The method compute.beta.RegionInstanceGroupManagersService.SetAutoHealingPolicies is not available in Trusted Cloud by S3NS.

setInstanceTemplate

The method compute.beta.RegionInstanceGroupManagersService.SetInstanceTemplate is not available in Trusted Cloud by S3NS.

setTargetPools

The method compute.beta.RegionInstanceGroupManagersService.SetTargetPools is not available in Trusted Cloud by S3NS.

startInstances

The method compute.beta.RegionInstanceGroupManagersService.StartInstances is not available in Trusted Cloud by S3NS.

stopInstances

The method compute.beta.RegionInstanceGroupManagersService.StopInstances is not available in Trusted Cloud by S3NS.

suspendInstances

The method compute.beta.RegionInstanceGroupManagersService.SuspendInstances is not available in Trusted Cloud by S3NS.

testIamPermissions

The method compute.beta.RegionInstanceGroupManagersService.TestPermissions is not available in Trusted Cloud by S3NS.

update

The method compute.beta.RegionInstanceGroupManagersService.Update is not available in Trusted Cloud by S3NS.

updatePerInstanceConfigs

The method compute.beta.RegionInstanceGroupManagersService.UpdatePerInstanceConfigs is not available in Trusted Cloud by S3NS.