SDK reference / Models / Compute

Instance

Kind: class

Namespace: Egulu.Sdk.Models.Compute

A virtual machine.

Properties

NameTypeJSON nameDescription
AnnotationsModels.Compute.Instance_annotations?annotationsAt most 256 KiB in all; never policy input.
AvailabilitySetstring?availabilitySetName of an availability set in the same location (`availabilitySets`): the VM goes on a host of its own where the location has one, and gets an update domain. Not together with `placementPolicy`.
BootDiskstring?bootDiskName or ID of a READY block disk in the same location (`disks`) to boot as the instance's root volume (W58a; ADR-0808). Create only; when set, `image` may be `custom`.
BootDiskSizeGbint?bootDiskSizeGbBoot disk size in GiB (10 to 1024); the image's default when omitted. A boot disk only grows.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DeletionProtectionbool?deletionProtectionWhen true, `delete` is refused with failed-precondition until it is turned off.
DesiredPowerModels.Compute.Instance_desiredPower?desiredPowerWhether the instance should be running or stopped (`:start` and `:stop`).
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
FaultDomainstring?faultDomainThe host the VM runs on, its fault domain; empty until it is placed.
Imagestring?imageAn image family, or projects/public-images/images/{name}.
LabelsModels.Compute.Instance_labels?labelsAt most 64.
LoginUserstring?loginUserThe user to sign in as over SSH (from the image, for example debian).
MachineTypestring?machineTypef1.micro (free) | vm.s1 | vm.m2 | vm.l4.
MaintenanceWindowModels.Compute.MaintenanceWindow?maintenanceWindowWhen the platform may schedule maintenance that restarts the machine; scheduled events fall inside it.
MetadataModels.Compute.Instance_metadata?metadataKey-value metadata the guest reads from the metadata service (`/metadata/v1/instance/metadata` and `…/metadata/{key}`): at most64 keys of `[a-z0-9._-]` (up to 63 characters, none starting with `plat.`), values up to 4096 bytes, 32 KiB in all. Not a place for secrets.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
NetworkInterfacesList<Models.Compute.InstanceNetworkInterface>?networkInterfacesThe VM's network interfaces: network, subnet and addresses, as attached (read-only). Empty until the VM has an address.
PlacementPolicystring?placementPolicyName of a placement policy in the same location (`placementPolicies`) that spreads this instance away from its peers.
PowerReasonstring?powerReasonWhy the platform last stopped the instance on its own: `schedule` or `idle-sleep`. Empty after a start or stop by a person.
PowerScheduleModels.Compute.PowerSchedule?powerScheduleStart and stop on a timetable.
PrimaryIpv4string?primaryIpv4The guest's primary private IPv4 address, once it has one (W19).
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RescueModebool?rescueModeTrue while the instance boots into the platform's rescue image, with its own disks attached as secondary disks.
RestoreDisksModels.Compute.Instance_restoreDisks?restoreDisksFor a VM made by `:restore`: whether its data disks were made from the restore point's snapshots yet (PENDING, DONE or FAILED).
RestoreNotestring?restoreNoteWhy the data disks could not be made, in words, when `restoreDisks` is FAILED.
RestoredFromstring?restoredFromThe restore point this VM was made from (`:restore`), when it was.
SleepWhenIdleModels.Compute.SleepWhenIdle?sleepWhenIdlePut the machine to sleep (memory kept where the hypervisor allows) after it has been idle.
SnapshotScheduleModels.Common.SnapshotSchedule?snapshotScheduleThe snapshot schedule of every disk of the VM, the boot disk included (ADR-0502). Absent means no schedule (Off). A data disk may override it.
SshKeysList<string>?sshKeysOpenSSH public keys for the image's login user; at most 10. Stored with the instance and served to the guest by the metadataservice (`/metadata/v1/instance/ssh-keys`), so cloud-init installs them at first boot and again at every later boot. A changereaches the guest at its next boot (`:restart`).
StateModels.Compute.InstanceState?stateInstance lifecycle states.
SuspendReasonstring?suspendReasonWhy the platform stopped a running instance, for example spend-cap (ADR-1103 §7); it starts again when the cause clears.
Uidstring?uidUUIDv7, never reused.
UpdateDomainint?updateDomainThe VM's update domain in its availability set, from 0; absent when it is in no set.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
UserDataDigeststring?userDataDigest`sha256:` and the hex digest of `userData`, empty when none was given.