SDK reference / Models / Compute
Instance
Kind: class
Namespace: Egulu.Sdk.Models.Compute
A virtual machine.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Annotations | Models.Compute.Instance_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. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DeleteTime | DateTimeOffset? | deleteTime | The deleteTime property |
DeletionProtection | bool? | deletionProtection | When true, `delete` is refused with failed-precondition until it is turned off. |
DesiredPower | Models.Compute.Instance_desiredPower? | desiredPower | Whether the instance should be running or stopped (`:start` and `:stop`). |
DisplayName | string? | displayName | Up to 63 characters. |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
FaultDomain | string? | faultDomain | The host the VM runs on, its fault domain; empty until it is placed. |
Image | string? | image | An image family, or projects/public-images/images/{name}. |
Labels | Models.Compute.Instance_labels? | labels | At most 64. |
LoginUser | string? | loginUser | The user to sign in as over SSH (from the image, for example debian). |
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.Instance_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. |
Name | string? | name | The resource name, for example projects/p/locations/l/instances/i. |
NetworkInterfaces | List<Models.Compute.InstanceNetworkInterface>? | networkInterfaces | The VM's network interfaces: network, subnet and addresses, as attached (read-only). Empty until the VM has an address. |
PlacementPolicy | string? | placementPolicy | Name of a placement policy in the same location (`placementPolicies`) that spreads this instance away from its peers. |
PowerReason | string? | powerReason | Why the platform last stopped the instance on its own: `schedule` or `idle-sleep`. Empty after a start or stop by a person. |
PowerSchedule | Models.Compute.PowerSchedule? | powerSchedule | Start and stop on a timetable. |
PrimaryIpv4 | string? | primaryIpv4 | The guest's primary private IPv4 address, once it has one (W19). |
PurgeTime | DateTimeOffset? | purgeTime | The purgeTime property |
Reconciling | bool? | reconciling | True while the platform works toward the spec. |
RescueMode | bool? | rescueMode | True while the instance boots into the platform's rescue image, with its own disks attached as secondary disks. |
RestoreDisks | Models.Compute.Instance_restoreDisks? | restoreDisks | For a VM made by `:restore`: whether its data disks were made from the restore point's snapshots yet (PENDING, DONE or FAILED). |
RestoreNote | string? | restoreNote | Why the data disks could not be made, in words, when `restoreDisks` is FAILED. |
RestoredFrom | string? | restoredFrom | The restore point this VM was made from (`:restore`), when it was. |
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. |
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`). |
State | Models.Compute.InstanceState? | state | Instance lifecycle states. |
SuspendReason | string? | suspendReason | Why the platform stopped a running instance, for example spend-cap (ADR-1103 §7); it starts again when the cause clears. |
Uid | string? | uid | UUIDv7, never reused. |
UpdateDomain | int? | updateDomain | The VM's update domain in its availability set, from 0; absent when it is in no set. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |
UserDataDigest | string? | userDataDigest | `sha256:` and the hex digest of `userData`, empty when none was given. |