SDK reference / Models / Compute

InstanceCreate

Kind: class

Namespace: Egulu.Sdk.Models.Compute

A virtual machine.

Properties

NameTypeJSON nameDescription
AnnotationsModels.Compute.InstanceCreate_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.
DeletionProtectionbool?deletionProtectionWhen true, `delete` is refused with failed-precondition until it is turned off.
DisplayNamestring?displayNameUp to 63 characters.
Imagestring?imageAn image family, or projects/public-images/images/{name}.
LabelsModels.Compute.InstanceCreate_labels?labelsAt most 64.
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.InstanceCreate_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.
PlacementPolicystring?placementPolicyName of a placement policy in the same location (`placementPolicies`) that spreads this instance away from its peers.
PowerScheduleModels.Compute.PowerSchedule?powerScheduleStart and stop on a timetable.
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.
SshKeyNamesList<string>?sshKeyNamesInput only: names of saved SSH keys (`sshKeys` resources of this location) to install, in addition to `sshKeys`; at most 10 keys in all. The keylines the names stand for are copied into `sshKeys` when the VM is made, so a later change to or delete of a saved key does not reachthis VM. A name that does not exist, or a key that has expired, is refused.
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`).
UserDatastring?userDatacloud-config or a shell script cloud-init runs at first boot (at most 16 KiB). Input only: secrets do not belong in it, and theAPI never returns it; `userDataDigest` says which text the machine was given.