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

# InstanceTemplate

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

An instance template (CMP-9): the machine type, image, boot disk, first-boot data and labels a VM group makes its members from.Immutable: every field but the display name, labels and annotations is fixed when the template is made, so a rolling update toa new template is always a change from one known thing to another. Templates of one `family` are its versions; the platform numbersthem. Members join the project's platform network (the only network a VM joins today), so a template carries no network field.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Compute.InstanceTemplate_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `BootDiskSizeGb` | `int?` | `bootDiskSizeGb` | Boot disk size in GiB (10 to 1024); the image's default when omitted. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `Family` | `string?` | `family` | The family this template is a version of (an ID: 1 to 63 lowercase letters, digits or hyphens); empty for a template that is not part of a family. |
| `GroupCount` | `int?` | `groupCount` | How many VM groups name the template (as their template or as the template they are updating to). |
| `Image` | `string?` | `image` | An image family, or projects/public-images/images/{name}. |
| `Labels` | `Models.Compute.InstanceTemplate_labels?` | `labels` | At most 64. |
| `MachineType` | `string?` | `machineType` | vm.s1 \| vm.m2 \| vm.l4 \| f1.micro (a free-tier machine type cannot be the member of a group). |
| `MemberLabels` | `Models.Compute.InstanceTemplate_memberLabels?` | `memberLabels` | Labels every member gets in addition to the platform's own (`plat.group`). Distinct from the template's own `labels`, which stay on the template. |
| `Metadata` | `Models.Compute.InstanceTemplate_metadata?` | `metadata` | Key-value metadata every member reads from the metadata service (the rules of an instance's `metadata`). |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `SshKeys` | `List<string>?` | `sshKeys` | OpenSSH public keys for the image's login user; at most 10. |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
| `UserDataDigest` | `string?` | `userDataDigest` | `sha256:` and the hex digest of `userData`, empty when none was given. |
| `Version` | `int?` | `version` | The version within the family, counted from 1 by the platform; 0 for a template with no family. |
