SDK reference / Models

Models.Compute namespace

Types

TypeKindDescription
AutoscalerDecisionclassOne thing the autoscaler decided.
AutoscalerDecision_actionenumSCALE_OUT, SCALE_IN, or HOLD (it wanted another size but could not, or it was paused).
AutoscalerDecision_outcomeenumAPPLIED when the group's size was changed; HELD when it was not (see `reason`); REFUSED when the resize itself was refused (the quota, for one).
AutoscalingMetricclassWhat an autoscaled group follows.
AutoscalingMetric_typeenumCPU_UTILIZATION follows the members' average CPU (a percent of their vCPUs, read from the hypervisor); CUSTOM follows a metric of the project in the platform's metrics (a cell without a metrics backend refuses it: not-implemented).
AutoscalingPolicyclassThe autoscaler of a VM group (CMP-9): it changes the group's size by itself, within `minSize` and `maxSize`, to keep the metric at its target, as thehorizontal pod autoscaler does: the members needed are the size times the reading over the target (a reading within 10 % of the target changesnothing). A growth waits for its cool-down since the last growth; a shrink for its cool-down since the last change, and removes at most `scaleInMaxStep`members, never one that scale-in protection holds. The autoscaler pauses while a rolling update is under way. A group that is autoscaled is resized byits policy, not by `:resize`. Every decision, and every hold with its reason, is in the group's `autoscalerDecisions`.
AutoscalingScheduleclassA window in which a group keeps at least `minSize` members: business hours, a sale, a nightly batch.
AutoscalingSchedule_daysenum
AvailabilitySetclassAn availability set (ADR-0494). A fault domain is a host (a cluster member of the cell): a set places each VM that names it on a host that holdsnone of the set's other VMs, as far as the location has hosts. An update domain is a number from 0 to `updateDomainCount - 1` the platform giveseach VM when it is placed (the least used first). When a host is emptied for maintenance, the VMs of a set on it are restarted one update domainat a time, 30 minutes apart, and a VM of the set is never offered a maintenance start before the update domain before it. A location with asingle host has a single fault domain: every VM of the set shares it, and `faultDomainNote` says so.
AvailabilitySetInstanceclassOne VM of an availability set with its domains.
AvailabilitySetMergePatchUpdateclassAn availability set (ADR-0494). A fault domain is a host (a cluster member of the cell): a set places each VM that names it on a host that holdsnone of the set's other VMs, as far as the location has hosts. An update domain is a number from 0 to `updateDomainCount - 1` the platform giveseach VM when it is placed (the least used first). When a host is emptied for maintenance, the VMs of a set on it are restarted one update domainat a time, 30 minutes apart, and a VM of the set is never offered a maintenance start before the update domain before it. A location with asingle host has a single fault domain: every VM of the set shares it, and `faultDomainNote` says so.
AvailabilitySetMergePatchUpdate_displayNameMember1class
AvailabilitySet_annotationsclassAt most 256 KiB in all; never policy input.
AvailabilitySet_labelsclassAt most 64.
AvailabilitySet_modeenumSTRICT refuses a VM that cannot be placed on a host of its own (capacity-exhausted); BEST_EFFORT places it on a shared host and the set shows as not spread. BEST_EFFORT when omitted.
BatchAutoscaleclassHow a pool follows its queue.
BatchAutoscaleMergePatchUpdateOrCreateclassHow a pool follows its queue.
BatchAutoscaleMergePatchUpdateOrCreate_minNodesMember1class
BatchAutoscaleMergePatchUpdateOrCreate_scaleInCooldownSecondsMember1class
BatchFileclassA file moved between a bucket and the node.
BatchJobclassA job: tasks to run on a pool.
BatchJobCreateclassA job: tasks to run on a pool.
BatchJobCreate_annotationsclassAt most 256 KiB in all; never policy input.
BatchJobCreate_labelsclassAt most 64.
BatchJob_annotationsclassAt most 256 KiB in all; never policy input.
BatchJob_labelsclassAt most 64.
BatchJob_stateenumACTIVE while a task can still run, then COMPLETED (all succeeded), FAILED (a task failed or was skipped) or CANCELLED.
BatchPoolclassA pool of compute (ADR-0494): the VMs of one VM group made from an instance template, which are the nodes tasks run on. Each node runs`slotsPerNode` tasks at once. The pool's group is named `batch-{pool}`; change the pool through the batch API, not the group.
BatchPoolMergePatchUpdateclassA pool of compute (ADR-0494): the VMs of one VM group made from an instance template, which are the nodes tasks run on. Each node runs`slotsPerNode` tasks at once. The pool's group is named `batch-{pool}`; change the pool through the batch API, not the group.
BatchPoolMergePatchUpdate_displayNameMember1class
BatchPoolMergePatchUpdate_slotsPerNodeMember1class
BatchPoolNodeclassOne node of a pool.
BatchPoolNode_stateenumIDLE, BUSY (all slots taken) or UNAVAILABLE (the VM does not run).
BatchPool_annotationsclassAt most 256 KiB in all; never policy input.
BatchPool_labelsclassAt most 64.
BatchPool_stateenumENSURING while nodes are made, READY when every node runs, DEGRADED when nodes are missing, DELETING.
BatchTaskclassOne task of a job, with where it stands.
BatchTaskLogclassThe output of a task's last attempt.
BatchTaskSpecclassWhat to run. Give `command` (an argument list), `script` (a shell script) or `image` (a container image; `command` is then its arguments), and`arrayCount` to run it many times with `BATCH_TASK_INDEX` set to 0 to arrayCount - 1 (the tasks are named `{name}-{index}`).
BatchTaskSpec_envclassEnvironment variables; at most 64, names of `[A-Za-z_][A-Za-z0-9_]*`. `BATCH_*` names are the platform's.
BatchTask_stateenumPENDING (waiting for dependencies), READY (waiting for a slot), RUNNING, SUCCEEDED, FAILED, SKIPPED (a dependency failed) or CANCELLED.
CloseConsoleSessionRequestclassClose a console session.
CloseConsoleSessionResponseclassWhether a session was closed.
CloseGuestSessionRequestclassEnd a guest login session.
CloudInitResultclasscloud-init's result at the last read.
CommandRunclassOne run of a command. Output is returned by `getCommandRun` only, from `offset`, so a page can follow a run as it streams.
ConsoleInputRequestclassInput, a resize, or both, for an open console session.
ConsoleSessionclassAn open console session. The ticket is a secret: it is shown once and sent in the Plat-Console-Ticket header of the stream and input calls.
ConsoleSessionInfoclassOne open console session of an instance.
ConsoleSessionInfo_modeenum
ConsoleSession_modeenum
GenerateSshKeyRequestclassAsk the platform to make a key pair.
GenerateSshKeyRequest_algorithmenum`ecdsa-p256` (default) or `rsa-4096`.
GenerateSshKeyRequest_labelsclass
GeneratedSshKeyclassA generated key pair. The private key is in this answer and nowhere else: it is not stored and cannot be read again.
GroupHealthCheckclassHow a VM group tells that a member works. `INSTANCE_STATE` counts a member healthy while its VM runs. `TCP` and `HTTP` run a probe insidethe member against its own loopback (a TCP connect, or an HTTP GET that must answer 2xx or 3xx); a cell with no guest runtime refuses them(not-implemented). A probe whose tool the image does not have is reported as unknown and never counts against the member.
GroupHealthCheckMergePatchUpdateOrCreateclassHow a VM group tells that a member works. `INSTANCE_STATE` counts a member healthy while its VM runs. `TCP` and `HTTP` run a probe insidethe member against its own loopback (a TCP connect, or an HTTP GET that must answer 2xx or 3xx); a cell with no guest runtime refuses them(not-implemented). A probe whose tool the image does not have is reported as unknown and never counts against the member.
GroupHealthCheckMergePatchUpdateOrCreate_initialDelaySecondsMember1class
GroupHealthCheckMergePatchUpdateOrCreate_intervalSecondsMember1class
GroupHealthCheckMergePatchUpdateOrCreate_pathMember1class
GroupHealthCheckMergePatchUpdateOrCreate_portMember1class
GroupHealthCheckMergePatchUpdateOrCreate_typeenumWhat is checked.
GroupHealthCheckMergePatchUpdateOrCreate_unhealthyThresholdMember1class
GroupHealthCheck_typeenumWhat is checked.
GroupLoadBalancerAttachmentclassWhere a VM group's members are served from: the group keeps a tenant load balancer's backend set equal to its ready members. A backend is made foreach member that is running and healthy, named like the member's VM, and removed when the member goes or stops working; each of the `listen` portsof the load balancer sends to the group's backends. The group owns only the backends and ports it made (their description says `vm-group:{name}`);a port the load balancer already has for that protocol and number, which is not the group's, is refused. A load balancer holds at most 16backends, so a group behind one is at most 16.
GroupLoadBalancerListenclassOne port of a load balancer a VM group serves.
GroupLoadBalancerListen_protocolenumTCP or UDP.
GroupUpdatePolicyclassHow a VM group moves its members to a new template. At most `maxSurge` members above the size and at least `size - maxUnavailable` servingat any time; a canary of `canarySize` members is updated first and held until a person promotes the update (`:promoteRollout`) or the canarieshave served for `canaryBakeSeconds`. A template whose members never serve stops the update at the canary or after the first replacement, andleaves the old members in place.
GroupUpdatePolicyMergePatchUpdateOrCreateclassHow a VM group moves its members to a new template. At most `maxSurge` members above the size and at least `size - maxUnavailable` servingat any time; a canary of `canarySize` members is updated first and held until a person promotes the update (`:promoteRollout`) or the canarieshave served for `canaryBakeSeconds`. A template whose members never serve stops the update at the canary or after the first replacement, andleaves the old members in place.
GroupUpdatePolicyMergePatchUpdateOrCreate_canaryBakeSecondsMember1class
GroupUpdatePolicyMergePatchUpdateOrCreate_canarySizeMember1class
GroupUpdatePolicyMergePatchUpdateOrCreate_maxSurgeMember1class
GroupUpdatePolicyMergePatchUpdateOrCreate_maxUnavailableMember1class
GroupUpdatePolicyMergePatchUpdateOrCreate_minReadySecondsMember1class
GuestInventoryclassWhat the platform read from the guest at `readTime`.
GuestLoginSessionclassSomeone signed in to the guest (an SSH or console login).
GuestPackageclassA package on the guest.
IdentityGrantclassA permission the workload identity holds.
InstanceclassA virtual machine.
InstanceCreateclassA virtual machine.
InstanceCreate_annotationsclassAt most 256 KiB in all; never policy input.
InstanceCreate_labelsclassAt most 64.
InstanceCreate_metadataclassKey-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.
InstanceEventclassWhat happened to an instance.
InstanceIdentityclassThe identity the machine presents.
InstanceMergePatchUpdateclassA virtual machine.
InstanceMergePatchUpdate_deletionProtectionMember1class
InstanceMergePatchUpdate_displayNameMember1class
InstanceMergePatchUpdate_sshKeysMember1class
InstanceNetworkInterfaceclassOne network interface of a virtual machine, as the platform attached it (read-only).
InstanceStateenumInstance lifecycle states.
InstanceTemplateclassAn 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.
InstanceTemplateCreateclassAn 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.
InstanceTemplateCreate_annotationsclassAt most 256 KiB in all; never policy input.
InstanceTemplateCreate_labelsclassAt most 64.
InstanceTemplateCreate_memberLabelsclassLabels every member gets in addition to the platform's own (`plat.group`). Distinct from the template's own `labels`, which stay on the template.
InstanceTemplateCreate_metadataclassKey-value metadata every member reads from the metadata service (the rules of an instance's `metadata`).
InstanceTemplateMergePatchUpdateclassAn 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.
InstanceTemplateMergePatchUpdate_displayNameMember1class
InstanceTemplate_annotationsclassAt most 256 KiB in all; never policy input.
InstanceTemplate_labelsclassAt most 64.
InstanceTemplate_memberLabelsclassLabels every member gets in addition to the platform's own (`plat.group`). Distinct from the template's own `labels`, which stay on the template.
InstanceTemplate_metadataclassKey-value metadata every member reads from the metadata service (the rules of an instance's `metadata`).
Instance_annotationsclassAt most 256 KiB in all; never policy input.
Instance_desiredPowerenumWhether the instance should be running or stopped (`:start` and `:stop`).
Instance_labelsclassAt most 64.
Instance_metadataclassKey-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.
Instance_restoreDisksenumFor a VM made by `:restore`: whether its data disks were made from the restore point's snapshots yet (PENDING, DONE or FAILED).
MaintenanceWindowclassA weekly window in which the platform may restart a machine for maintenance.
MaintenanceWindowMergePatchUpdateOrCreateclassA weekly window in which the platform may restart a machine for maintenance.
MaintenanceWindowMergePatchUpdateOrCreate_dayOfWeekenum
MaintenanceWindow_dayOfWeekenum
OpenConsoleSessionRequestclassOpen a browser terminal or serial console session.
OpenConsoleSessionRequest_modeenum`shell` (a login shell as the image's user) or `serial` (the virtual serial port, for boot and kernel output).
PlacementPolicyclassA placement policy.
PlacementPolicyMergePatchUpdateclassA placement policy.
PlacementPolicyMergePatchUpdate_displayNameMember1class
PlacementPolicyMergePatchUpdate_modeenumSTRICT refuses a placement that would break the policy; BEST_EFFORT places it and the policy shows as not satisfied.
PlacementPolicyMergePatchUpdate_strategyenumSPREAD: no two instances of the policy on one member.
PlacementPolicy_annotationsclassAt most 256 KiB in all; never policy input.
PlacementPolicy_labelsclassAt most 64.
PlacementPolicy_modeenumSTRICT refuses a placement that would break the policy; BEST_EFFORT places it and the policy shows as not satisfied.
PlacementPolicy_strategyenumSPREAD: no two instances of the policy on one member.
PowerScheduleclassStart and stop on a timetable; the compute reconciler runs it (a person's `:start` or `:stop` always wins until the next edge).
PowerScheduleMergePatchUpdateOrCreateclassStart and stop on a timetable; the compute reconciler runs it (a person's `:start` or `:stop` always wins until the next edge).
PowerScheduleMergePatchUpdateOrCreate_daysenum
PowerScheduleMergePatchUpdateOrCreate_startTimeMember1class
PowerScheduleMergePatchUpdateOrCreate_stopTimeMember1class
PowerSchedule_daysenum
PowerStatsclassWhat the machine's power did this month, and the free allowance against it where the cell has one.
PublicImageclassAn image a location offers.
RescueRequestclassEnter or leave rescue boot.
ResizeBatchPoolRequestclassAsk the pool for another number of nodes.
ResizeVmGroupRequestclassRequest to change the number of VMs a group keeps.
RestoreInstanceRequestclassRequest to make a new VM from a restore point (ADR-0502).
RunCommandRequestclassRun a script in the guest.
ScheduledEventclassA maintenance event that affects an instance.
SerialLogclassThe serial console's recent output, read from the hypervisor's console log.
SetScaleInProtectionRequestclassRequest to protect a member from scale-in, or to lift the protection.
SignSshKeyRequestclassAsk for a certificate for a public key.
SleepWhenIdleclassSleep after the machine has been idle: stopped with its memory kept where the hypervisor can, started again by `:start`.
SleepWhenIdleMergePatchUpdateOrCreateclassSleep after the machine has been idle: stopped with its memory kept where the hypervisor can, started again by `:start`.
SshCaclassThe cell's SSH certificate authority, public half.
SshCertificateclassA signed certificate.
SshKeyclassA saved SSH public key (imported, or generated by the platform whose private key was shown once and is never stored). Weak keys are refused:ssh-dss, and RSA under 3072 bits. A VM that names the key gets the key line at creation; later changes to the key (an expiry, a delete)do not reach VMs that already have it, because the key line is copied into the VM (the response says so on delete).
SshKeyMergePatchUpdateclassA saved SSH public key (imported, or generated by the platform whose private key was shown once and is never stored). Weak keys are refused:ssh-dss, and RSA under 3072 bits. A VM that names the key gets the key line at creation; later changes to the key (an expiry, a delete)do not reach VMs that already have it, because the key line is copied into the VM (the response says so on delete).
SshKeyMergePatchUpdate_displayNameMember1class
SshKeyMergePatchUpdate_expireTimeMember1class
SshKey_annotationsclassAt most 256 KiB in all; never policy input.
SshKey_labelsclassAt most 64.
SshKey_originenumIMPORTED for a key a person brought, GENERATED for one this API made (its private key was returned once, in the generate answer, and was not kept).
VmGroupclassA VM group (CMP-9): keeps `targetSize` VMs made from an instance template, spread across the cell's hosts, and makes a new one for a memberthat stops working. Every member is an ordinary VM of the project: it counts against the project's VM quota and the organisation's vCPUquota, is metered and billed as one, and can be opened from the VM list. The group's whole size counts against the quota when it is made orresized, before the VMs exist, so a resize the quota cannot hold is refused at once and never half done.
VmGroupEventclassSomething the group did, and why.
VmGroupMemberclassOne member of a VM group: a VM the group made.
VmGroupMember_desiredPowerenumWhether the VM should be running or stopped.
VmGroupMember_healthenumWhat the group's health check last said.
VmGroupMergePatchUpdateclassA VM group (CMP-9): keeps `targetSize` VMs made from an instance template, spread across the cell's hosts, and makes a new one for a memberthat stops working. Every member is an ordinary VM of the project: it counts against the project's VM quota and the organisation's vCPUquota, is metered and billed as one, and can be opened from the VM list. The group's whole size counts against the quota when it is made orresized, before the VMs exist, so a resize the quota cannot hold is refused at once and never half done.
VmGroupMergePatchUpdate_autoHealingMember1class
VmGroupMergePatchUpdate_displayNameMember1class
VmGroupMergePatchUpdate_spreadMember1class
VmGroup_annotationsclassAt most 256 KiB in all; never policy input.
VmGroup_labelsclassAt most 64.
VmGroup_loadBalancerStateenumSYNCED when the load balancer has the group's ready members as its backends, PENDING while the group has none to offer, FAILED when it could not be done (see `loadBalancerDetail`). Absent when the group is not attached.
VmGroup_rolloutPhaseenumWhile a rolling update is under way: CANARY (the canary members are made), AWAITING_PROMOTION (they serve; promote to go on), ROLLING, or ROLLING_BACK (an aborted update returns to the old template). Absent otherwise.
VmGroup_spreadenumNONE puts members wherever there is room; BEST_EFFORT keeps them on different hosts while the cell has room; STRICT refuses to put two on one host. BEST_EFFORT when omitted.
VmGroup_stateenumENSURING while members are made, STABLE when the group has its size and every member is ready, DEGRADED when it cannot reach its size (see `stateDetails`), DELETING while the group's members are removed.