[SDK reference](../../index.md) / [Models](../index.md) / [Compute](index.md)

# VmGroup

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Compute`  

A VM group (CMP-9): keeps `targetSize` VMs made from an instance template, spread across the cell's hosts, and makes a new one for a memberthat stops working. Every member is an ordinary VM of the project: it counts against the project's VM quota and the organisation's vCPUquota, is metered and billed as one, and can be opened from the VM list. The group's whole size counts against the quota when it is made orresized, before the VMs exist, so a resize the quota cannot hold is refused at once and never half done.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Compute.VmGroup_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `AutoHealing` | `bool?` | `autoHealing` | Whether a member that stops working is deleted and replaced. True when omitted. |
| `AutoscalerDetail` | `string?` | `autoscalerDetail` | What the autoscaler last said, in words, when the group is autoscaled. |
| `AutoscalerValue` | `double?` | `autoscalerValue` | The reading the autoscaler last acted on (the members' average CPU percent, or the custom metric's value), when it had one. |
| `Autoscaling` | `Models.Compute.AutoscalingPolicy?` | `autoscaling` | The autoscaler. Omitted: the group keeps `targetSize` until `:resize`. Set to null to turn autoscaling off for good (the size stays where it is). |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `CurrentSize` | `int?` | `currentSize` | How many members the group has (VMs being made included). |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `HealthCheck` | `Models.Compute.GroupHealthCheck?` | `healthCheck` | How a member's health is told. Omitted: `INSTANCE_STATE`. |
| `Labels` | `Models.Compute.VmGroup_labels?` | `labels` | At most 64. |
| `LoadBalancerAttachment` | `Models.Compute.GroupLoadBalancerAttachment?` | `loadBalancerAttachment` | The load balancer whose backend set is the group's ready members. Set to null to detach: the group's backends and ports are removed from the load balancer. |
| `LoadBalancerBackends` | `int?` | `loadBalancerBackends` | How many backends of the group the load balancer has. |
| `LoadBalancerDetail` | `string?` | `loadBalancerDetail` | Why the load balancer is not synced, in words. |
| `LoadBalancerState` | `Models.Compute.VmGroup_loadBalancerState?` | `loadBalancerState` | SYNCED when the load balancer has the group's ready members as its backends, PENDING while the group has none to offer, FAILED when it could not be done (see `loadBalancerDetail`). Absent when the group is not attached. |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `QuotaHeld` | `int?` | `quotaHeld` | How many VMs' worth of quota the group holds for members it has not made yet. |
| `ReadySize` | `int?` | `readySize` | How many members are running and healthy. |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `RolloutFromTemplate` | `string?` | `rolloutFromTemplate` | The template the update moves the members away from (the one an abort returns to), while an update is under way. |
| `RolloutPhase` | `Models.Compute.VmGroup_rolloutPhase?` | `rolloutPhase` | While a rolling update is under way: CANARY (the canary members are made), AWAITING_PROMOTION (they serve; promote to go on), ROLLING, or ROLLING_BACK (an aborted update returns to the old template). Absent otherwise. |
| `Spread` | `Models.Compute.VmGroup_spread?` | `spread` | NONE puts members wherever there is room; BEST_EFFORT keeps them on different hosts while the cell has room; STRICT refuses to put two on one host. BEST_EFFORT when omitted. |
| `State` | `Models.Compute.VmGroup_state?` | `state` | ENSURING while members are made, STABLE when the group has its size and every member is ready, DEGRADED when it cannot reach its size (see `stateDetails`), DELETING while the group's members are removed. |
| `StateDetails` | `string?` | `stateDetails` | Why the group is not stable, in words, when it is not. |
| `TargetSize` | `int?` | `targetSize` | How many VMs the group keeps (0 to 200). Change it with `:resize`. |
| `Template` | `string?` | `template` | The instance template (ID, same project and location) new members are made from. Changing it starts a rolling update of the members to the new template (`updatePolicy`); not while an update is under way. |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdatePolicy` | `Models.Compute.GroupUpdatePolicy?` | `updatePolicy` | How a change of `template` rolls out. Omitted: one extra member, one unavailable, no canary. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
| `UpdatedSize` | `int?` | `updatedSize` | How many members are made from the group's current `template`. |
