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

NameTypeJSON nameDescription
AnnotationsModels.Compute.InstanceTemplateCreate_annotations?annotationsAt most 256 KiB in all; never policy input.
BootDiskSizeGbint?bootDiskSizeGbBoot disk size in GiB (10 to 1024); the image's default when omitted.
DisplayNamestring?displayNameUp to 63 characters.
Familystring?familyThe 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.
Imagestring?imageAn image family, or projects/public-images/images/{name}.
LabelsModels.Compute.InstanceTemplateCreate_labels?labelsAt most 64.
MachineTypestring?machineTypevm.s1 | vm.m2 | vm.l4 | f1.micro (a free-tier machine type cannot be the member of a group).
MemberLabelsModels.Compute.InstanceTemplateCreate_memberLabels?memberLabelsLabels every member gets in addition to the platform's own (`plat.group`). Distinct from the template's own `labels`, which stay on the template.
MetadataModels.Compute.InstanceTemplateCreate_metadata?metadataKey-value metadata every member reads from the metadata service (the rules of an instance's `metadata`).
SshKeyNamesList<string>?sshKeyNamesNames 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.
SshKeysList<string>?sshKeysOpenSSH public keys for the image's login user; at most 10.
UserDatastring?userDatacloud-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.