SDK reference / Models / Compute
InstanceCreate
Kind: class
Namespace: Egulu.Sdk.Models.Compute
A virtual machine.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Annotations | Models.Compute.InstanceCreate_annotations? | annotations | At most 256 KiB in all; never policy input. |
AvailabilitySet | string? | availabilitySet | Name 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`. |
BootDisk | string? | bootDisk | Name 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`. |
BootDiskSizeGb | int? | bootDiskSizeGb | Boot disk size in GiB (10 to 1024); the image's default when omitted. A boot disk only grows. |
DeletionProtection | bool? | deletionProtection | When true, `delete` is refused with failed-precondition until it is turned off. |
DisplayName | string? | displayName | Up to 63 characters. |
Image | string? | image | An image family, or projects/public-images/images/{name}. |
Labels | Models.Compute.InstanceCreate_labels? | labels | At most 64. |
MachineType | string? | machineType | f1.micro (free) | vm.s1 | vm.m2 | vm.l4. |
MaintenanceWindow | Models.Compute.MaintenanceWindow? | maintenanceWindow | When the platform may schedule maintenance that restarts the machine; scheduled events fall inside it. |
Metadata | Models.Compute.InstanceCreate_metadata? | metadata | Key-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. |
PlacementPolicy | string? | placementPolicy | Name of a placement policy in the same location (`placementPolicies`) that spreads this instance away from its peers. |
PowerSchedule | Models.Compute.PowerSchedule? | powerSchedule | Start and stop on a timetable. |
SleepWhenIdle | Models.Compute.SleepWhenIdle? | sleepWhenIdle | Put the machine to sleep (memory kept where the hypervisor allows) after it has been idle. |
SnapshotSchedule | Models.Common.SnapshotSchedule? | snapshotSchedule | The 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. |
SshKeyNames | List<string>? | sshKeyNames | Input 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. |
SshKeys | List<string>? | sshKeys | OpenSSH 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`). |
UserData | string? | userData | cloud-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. |