SDK reference / Models / Compute
InstanceTemplateCreate
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.InstanceTemplateCreate_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. |
DisplayName | string? | displayName | Up to 63 characters. |
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. |
Image | string? | image | An image family, or projects/public-images/images/{name}. |
Labels | Models.Compute.InstanceTemplateCreate_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.InstanceTemplateCreate_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.InstanceTemplateCreate_metadata? | metadata | Key-value metadata every member reads from the metadata service (the rules of an instance's `metadata`). |
SshKeyNames | List<string>? | sshKeyNames | Names of saved SSH keys (`sshKeys` resources of this location), copied into `sshKeys` when the template is made (a template is immutable); at most 10 keys in all. |
SshKeys | List<string>? | sshKeys | OpenSSH public keys for the image's login user; at most 10. |
UserData | string? | userData | cloud-config or a shell script cloud-init runs at first boot (at most 16 KiB). Input only: the API never returns it; `userDataDigest` says which text the members get. |