Reference For: developers

API schemas: R

Schemas of the native REST API whose name starts with R.

RangeView

An IPv4 range.

NameTypeRequiredDescription
endstringyesLast address (inclusive).
startstringyesFirst address.

RdnsMode

How a pool's PTR names reach DNS.

Values: "provider", "manual"

ReconfigureClusterRequest

Body of POST /v1/clusters/{id}/reconfigure (HA/DRS/migration-policy thin slice).

NameTypeRequiredDescription
allowPostcopyboolean or nullFlip Cluster.migration.allow_postcopy when set.
downtimeLimitMsinteger (int64) or nullSet Cluster.migration.downtime_limit_ms. Clear with modify=false.
haEnabledboolean or nullFlip Cluster.ha.enabled when set.
maxBandwidthMibSinteger (int64) or nullSet Cluster.migration.max_bandwidth_mib_s (MiB/s). Clear with modify=false.
modifybooleanMerge provided fields (default) or replace missing with false/cleared.
schedulerAutomaticboolean or nullFlip Cluster.scheduler.automatic when set.
schedulerEnabledboolean or nullFlip Cluster.scheduler.enabled when set.

ReconfigureResultView

TaskView.result of VirtualMachine.reconfigure.

NameTypeRequiredDescription
generationinteger (int64)yesDesired-state generation after the change.
grownDisksarray of GrownDiskViewDisks the task grew, when any.

ReconfigureScheduledTaskRequest

Request to reconfigure a scheduled task (entity is fixed).

NameTypeRequiredDescription
actionScheduledActionyesPower action.
activeTimestring or nullOptional scheduler active time.
descriptionstringDescription.
enabledbooleanEnabled.
expireTimestring or nullOptional scheduler expire time.
namestringyesDisplay name.
notificationstring or nullOptional notification address (SMTP send when [smtp] enabled).
recurrenceScheduledRecurrenceScheduler cadence.
runAtstring or nullOne-shot run time / create-time anchor (RFC 3339). Defaults to now.

ReconfigureVmRequest

VM reconfigure request.

NameTypeRequiredDescription
configVmConfigyesBody in the VmConfig schema (the full desired configuration).
createDisksarray of DiskFileRequestDisk files to create for disks config adds (empty images or from an image).
deleteDisksarray of DiskFileRequestDisk files to delete after they leave config.disks (detach and destroy). Omit a removed disk here to detach and keep the file on the datastore.
growDisksarray of DiskFileRequestDisks of config whose capacity grows: the file is grown to sizeBytes. On a running VM the host grows it online where the runtime can; otherwise the change applies at the next start (the task result says which).
idempotencyKeystring or nullIdempotency key.
namestring or nullNew display name (unique within the folder).

RecordMetaView

Store metadata of a record.

NameTypeRequiredDescription
createdAtstringyesCreation time (RFC 3339).
createdVersioninteger (int64)yesVersion at creation.
idstringyesMoRef-compatible id, e.g. vm-42.
namestring or nullDisplay name.
parentIdstring or nullParent id in the inventory tree.
updatedAtstringyesLast update time (RFC 3339).
uuidstringyesGlobally unique id.
versioninteger (int64)yesVersion of the last change (compare-and-set token).

RecoveryCodesResponse

Recovery codes (shown once).

NameTypeRequiredDescription
recoveryCodesarray of stringyesTen single-use codes xxxx-xxxx-xxxx-xxxx.

RegisterVmRequest

Register an existing VM from a datastore path (POST /v1/vms/register, SOAP Folder.RegisterVM_Task).

Reads [ds] name/.kyvernon-vm.json written by unregister (or an equivalent path such as [ds] name/name.vmx) and restores inventory without recreating disks.

NameTypeRequiredDescription
asTemplatebooleanRegister as a template.
folderIdstringyesDestination VM folder (group-vN).
hoststring or nullHost (host-N). Optional placement hint.
idempotencyKeystring or nullIdempotency key.
namestring or nullDisplay name; defaults to the name in the on-disk manifest.
pathstringyesDatastore path ([ds] name/name.vmx or [ds] name/.kyvernon-vm.json).
resourcePoolstring or nullResource pool (resgroup-N). Required unless asTemplate is true.

ReinstallServerRequest

Request to reinstall a server (its addresses stay).

NameTypeRequiredDescription
imagestring or nullImage (default: the current one).
passwordbooleanGenerate a password (always when no SSH keys are given).
sshKeysarray of stringSSH public keys.
userDatastring or nullcloud-init user data.

ReleasedAddress

An address returned to its pool.

NameTypeRequiredDescription
addressstringyesThe address or /64 prefix.
poolstringyesThe pool.

RelocateDiskLocator

One cold per-disk storage relocate locator (RelocateVM_Task.spec.disk).

NameTypeRequiredDescription
datastorestringyesDestination datastore (datastore-N).
diskKeyinteger (int32)yesVirtual disk device key (VirtualDevice.key, typically 2000+).

RelocateNicChange

One RelocateVM Ethernet Edit (RelocateVM_Task.spec.deviceChange NIC backing).

NameTypeRequiredDescription
networkstringyesDestination network or distributed port group (network-N / dvportgroup-N).
nicKeyinteger (int32)yesVirtual NIC device key (VirtualDevice.key, typically 4000+).

RelocateVmRequest

Relocate a VM (POST /v1/vms/{id}/relocate, SOAP RelocateVM_Task).

Cold storage relocate (datastore and/or per-disk disks locators) copies disks of a powered-off VM without snapshots onto datastores mounted on the current host. nics rebinds Ethernet network backing (SOAP spec.deviceChange Edit). Host / pool / folder placement fields share the same task engine as SOAP. Live Storage vMotion stays refused.

NameTypeRequiredDescription
datastorestring or nullDestination datastore (datastore-N) for every disk not listed in disks.
disksarray of RelocateDiskLocatorPer-disk locators (diskKey + datastore). Overrides datastore for those keys.
folderIdstring or nullDestination VM folder (group-vN).
hoststring or nullDestination host (host-N). Optional; pool placement may choose one.
idempotencyKeystring or nullIdempotency key.
nicsarray of RelocateNicChangeEthernet network rebinds (nicKey + network). SOAP deviceChange Edit.
resourcePoolstring or nullDestination resource pool (resgroup-N).

RelocatedDiskView

One disk relocated by cold storage relocate.

NameTypeRequiredDescription
datastorestringyesDestination datastore id.
pathstringyesPath below the datastore root.

RelocatedNicView

One NIC rebinding from RelocateVM deviceChange / native nics.

NameTypeRequiredDescription
networkstringyesDestination network id.
nicKeyinteger (int32)yesVirtual NIC device key.

RemovedSnapshotsResultView

TaskView.result of remove-snapshot / remove-all-snapshots.

NameTypeRequiredDescription
removedarray of integer (int32)yesSnapshot keys that were removed.

RenameRequest

Body of POST /v1/inventory/objects/{id}/rename.

NameTypeRequiredDescription
namestringyesThe new name, 1 to 80 characters.

RenameResultView

TaskView.result of rename.

NameTypeRequiredDescription
namestringyesNew name.

RenameSnapshotRequest

Rename a snapshot (POST /v1/vms/{id}/snapshots/{key}/rename, SOAP VirtualMachineSnapshot.RenameSnapshot). At least one of name or description is required.

NameTypeRequiredDescription
descriptionstring or nullNew free-text description (empty string clears it).
namestring or nullNew display name (1..=80 characters, no surrounding spaces).

RescueServerRequest

Request to boot the rescue image.

NameTypeRequiredDescription
imagestring or nullRescue image (default: the first catalogue entry marked rescue).

ResizeServerRequest

Request to resize a server.

NameTypeRequiredDescription
planstringyesThe larger plan.

ResolveMigrationRequest

Body for POST /v1/vms/{id}/resolve-migration.

NameTypeRequiredDescription
hoststring or nullDestination host (host-N). Required when resolution is destination-keeps so inventory placement moves off the source.
resolutionFenceResolutionViewyesWho keeps the guest (source-keeps or destination-keeps).

ResolveMigrationView

Result of resolving a fenced migration.

NameTypeRequiredDescription
hoststringyesHost that now owns the inventory placement.
resolutionFenceResolutionViewyesResolution applied.

ResourceAllocation

Reservation/limit/shares for one resource.

NameTypeRequiredDescription
expandable_reservationbooleanWhether the reservation may grow when the parent has headroom.
limitinteger (int64) or nullMaximum amount, None for unlimited.
reservationinteger (int64)Guaranteed amount (MHz or MiB).
sharesinteger (int32)Custom shares (when level is Custom).
shares_levelSharesLevelShares level.

ResourcePool

A resource pool.

NameTypeRequiredDescription
cpuResourceAllocationCPU allocation in MHz.
memoryResourceAllocationMemory allocation in MiB.
namestringyesDisplay name (Resources for a root pool).

RestorePointRequest

Body of POST /v1/backup/points/{id}/restore.

NameTypeRequiredDescription
datastoreIdstring or nullDatastore for the new disks (default: the verification pool, else the first usable).
folderIdstring or nullFolder of the new virtual machine (default: the folder of the source).
hostIdstring or nullHost of the new virtual machine (default: the host of the source).
modestring or nullnew (default; also new_vm): a new virtual machine with the backed-up disks and the configuration of the source. in-place (also in_place): the disks of the source, which must be powered off, are replaced by those of the point (task VirtualMachine.restoreBackupInPlace); name, folderId, datastoreId, hostId and powerOn do not apply.
namestring or nullName of the new virtual machine (default: <source> (restored)).
powerOnbooleanPower the virtual machine on when the restore is done (default false).
verifyVerifySpec or null

RestoreSession

A restore session as the verification sees it.

NameTypeRequiredDescription
backupSessionIdstring (uuid) or nullThe backup session restored, for nightly runs.
destroyedbooleanyesThe VM was destroyed after the verdict.
evidenceEvidence or null
finishedAtinteger (int64) or nullEnd, Unix seconds.
reasonstring or nullMessage key of the failure.
sourceVmIdstring (uuid) or nullThe VM the backup was taken from, for nightly runs.
startedAtinteger (int64)yesStart, Unix seconds.
stateVerifyStateyesState.
verifiedboolean or nullThe verdict; None while running.
vmIdstring (uuid)yesThe restored VM's instance uuid.

RevertSnapshotRequest

Revert to a snapshot (POST /v1/vms/{id}/snapshots/{key}/revert).

NameTypeRequiredDescription
idempotencyKeystring or nullIdempotency key.
suppressPowerOnbooleanDo not power the guest on after a memory snapshot revert.

RoleRequest

Role create/update body.

NameTypeRequiredDescription
descriptionstringDescription.
namestringyesName.
privilegesarray of stringyesPrivileges from the catalogue.

RoleView

A role.

NameTypeRequiredDescription
descriptionstringyesDescription.
idstringyesRole id.
namestringyesName.
privilegesarray of stringyesPrivileges.
systembooleanyesBuilt-in.

RuleBody

A rule as written by a client.

NameTypeRequiredDescription
actionActionViewyesAction.
appliedToarray of stringGroups the rule applies to (empty: the policy's).
destinationsarray of stringDestinations (empty: any).
destinationsNegatedbooleanMatch everything except the destinations.
directionDirectionViewDirection (default in-out).
enabledbooleanEnabled (default true).
idstring or nullId of an existing rule (policy PUT: keeps its number and counters); ignored when a rule is added.
ipVersionIpVersionViewIP families (default any).
loggedbooleanLog matches.
namestringDisplay name.
servicesarray of ServiceEntryViewServices (empty: any IP traffic).
sourcesarray of stringSources: group ids, addresses or prefixes (empty: any).
sourcesNegatedbooleanMatch everything except the sources.

RuleStatsView

Counters of one rule.

NameTypeRequiredDescription
bytesinteger (int64)yesBytes, all hosts.
hostsobjectyesPer host.
lastHitstring or nullLast report with a non-zero count.
numberinteger (int32)yesRule number.
packetsinteger (int64)yesPackets, all hosts.
policystring or nullPolicy id (when the rule still exists).
supportedbooleanyesHit counters are kept for this rule (host bridges, and segment ports when the controller reads the Southbound database; false otherwise, §6.3).

RuleView

A rule.

Type: RuleBody, object

Version 0.1.