Reference For: developers

gRPC: vm

Services, methods, messages and enums of vm.proto.

Virtual machine lifecycle. Every mutating call is a long-running operation that returns a task id; poll TaskService or watch the inventory.

VmService

Life cycle of virtual machines. Every call starts a task and returns its reference.

MethodRequestResponseDescription
CreateVmCreateVmRequestTaskRef

Creates a virtual machine from a specification.

DeleteVmVmRequestTaskRef

Deletes a virtual machine.

PowerOnVmRequestTaskRef

Powers a virtual machine on.

PowerOffVmRequestTaskRef

Hard power-off, at once; the guest is not asked. Succeeds on a VM that is off.

ShutdownShutdownVmRequestTaskRef

Graceful shutdown: the guest is asked to power off; after the timeout the VM is powered off hard.

ResetVmRequestTaskRef

Resets a running virtual machine, as a hardware reset.

SuspendVmRequestTaskRef

Suspends a running virtual machine.

ReconfigureReconfigureVmRequestTaskRef

Replaces the VM configuration (config object as JSON).

Messages

ShutdownVmRequest

Graceful shutdown of a virtual machine.

FieldNumberTypeDescription
id1string

Id of the virtual machine.

idempotency_key2string

Repeating a request with the same key returns the same task.

timeout_seconds3uint64

Seconds the guest gets before the hard power-off (1 to 3600; 0: the default, 90).

VmRequest

Names one virtual machine.

FieldNumberTypeDescription
id1string

Id of the virtual machine.

idempotency_key2string

Repeating a request with the same key returns the same task.

CreateVmRequest

Creates a virtual machine.

FieldNumberTypeDescription
folder1string

VM folder (group-vN).

spec_json2string

JSON body in the VirtualMachine schema.

idempotency_key3string

Key that makes a retried request create the virtual machine once.

ReconfigureVmRequest

Changes the configuration of a virtual machine.

FieldNumberTypeDescription
id1string

Id of the virtual machine.

config_json2string

JSON body in the VmConfig schema.

idempotency_key3string

Key that makes a retried request apply the change once.

Version 0.1.