SDK reference / Models / Compute

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

NameTypeJSON nameDescription
AnnotationsModels.Compute.InstanceTemplate_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.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
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.
GroupCountint?groupCountHow many VM groups name the template (as their template or as the template they are updating to).
Imagestring?imageAn image family, or projects/public-images/images/{name}.
LabelsModels.Compute.InstanceTemplate_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.InstanceTemplate_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.InstanceTemplate_metadata?metadataKey-value metadata every member reads from the metadata service (the rules of an instance's `metadata`).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
SshKeysList<string>?sshKeysOpenSSH public keys for the image's login user; at most 10.
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
UserDataDigeststring?userDataDigest`sha256:` and the hex digest of `userData`, empty when none was given.
Versionint?versionThe version within the family, counted from 1 by the platform; 0 for a template with no family.