Reference For: developers

API schemas: B

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

BackupFeatureView

OpenAPI stand-in for backup feature names advertised by /v1/backup/info.

Values: "allocation-context", "dirty-bitmap-context", "fleecing", "quiesce"

BackupPointDiskView

One disk of a backup point.

NameTypeRequiredDescription
capacityBytesinteger (int64)yesCapacity in bytes.
changeIdstring or nullChange id the backup was taken at (for incremental backups), when known.
deviceKeyinteger (int32)yesDevice key of the disk in the virtual machine.

BackupPointView

A backup kept in the repository.

NameTypeRequiredDescription
consistencystringyesCRASH_CONSISTENT: what the repository can promise (the manifest does not say whether the guest was quiesced).
diskDetailsarray of BackupPointDiskViewyesThe disks.
disksintegeryesNumber of disks.
idstringyesId of the backup point (the id of the backup session that made it).
kindstringyesfull: the repository keeps whole disk images.
sessionIdstring or nullThe backup session that made it.
sizeBytesinteger (int64)yesSize of the backup in the repository, in bytes.
takenAtstringyesWhen the backup completed (RFC 3339).
verifiedboolean or nullResult of the last restore verification of this point, when one ran.
vmIdstringyesInstance uuid of the virtual machine.
vmNamestringyesName of the virtual machine, when it still exists.
vmRefstring or nullInventory id of the virtual machine (vm-N), when it still exists.

BackupRepositoryView

The backup repository.

NameTypeRequiredDescription
configuredbooleanyesA repository is configured ([backup] verify_repository of the controller).
pointsintegeryesBackup points kept.

BackupScheduleRequest

Body of POST /v1/backup/schedules and PUT /v1/backup/schedules/{id}.

NameTypeRequiredDescription
enabledbooleanRuns when true.
frequencystringyesdaily or weekly.
fullEveryinteger (int32)A full transfer every n points (default 7).
hourinteger (int32)yesHour, UTC.
minuteinteger (int32)Minute.
namestringyesName.
quiesceQuiesceModeViewQuiescing.
retentioninteger (int32)Points kept per virtual machine (default 14; 0: all).
scopestringyesInventory id of the folder, datacenter, cluster, resource pool, host or virtual machine.
weekdaysarray of integer (int32)Weekdays, 0 is Sunday (weekly only).

BackupScheduleView

A backup schedule.

NameTypeRequiredDescription
enabledbooleanyesRuns when true.
frequencystringyesdaily or weekly.
fullEveryinteger (int32)yesA full transfer every n points (1: every point is full).
hourinteger (int32)yesHour, UTC.
idstringyesId (bkschedule-N).
lastResultstring or nullsuccess or failure of the last finished run.
lastRunAtstring or nullStart of the last run.
minuteinteger (int32)yesMinute.
namestringyesName.
nextRunAtstring or nullNext run.
quiesceQuiesceModeViewyesQuiescing.
retentioninteger (int32)yesPoints kept per virtual machine (0: all).
scopestringyesFolder, datacenter, cluster, resource pool, host or virtual machine it covers.
scopeNamestring or nullName of the scope.
weekdaysarray of integer (int32)yesWeekdays, 0 is Sunday (weekly only).

BackupSessionView

OpenAPI stand-in for BackupSession.

NameTypeRequiredDescription
cleanupPendingbooleanHost-side cleanup is pending retry.
consistencyConsistencyView or null
createdAtstring (date-time)yesCreation time (RFC 3339 UTC).
deadlinestring (date-time)yesSession expires at this time unless kept alive (RFC 3339 UTC).
disksarray of DiskBackupViewyesDisks in the session.
fleecingbooleanyesWhether fleecing was requested.
idstring (uuid)yesSession id.
ownerstringyesPrincipal that started the session.
pointIdstring or nullAgent-side identifier of the backup point.
quiesceQuiesceModeViewyesRequested quiescing.
reasonstring or nullMessage key for ABORTED or EXPIRED, if any.
stateSessionStateViewyesCurrent state.
ttlSecondsinteger (int64)yesLifetime granted by each keepalive, in seconds.
updatedAtstring (date-time)yesLast state change or keepalive (RFC 3339 UTC).
vmIdstring (uuid)yesVM instance UUID.

BackupSettingsRequest

Body of PUT /v1/backup/settings (remoteExports is ignored).

NameTypeRequiredDescription
defaultQuiesceQuiesceModeViewyesQuiescing of backups that do not say.
remoteExportsboolean or nullIgnored (configuration only).
repositorystringyesRepository directory, absolute; empty: none.
verifyDestroybooleanyesDestroy verification VMs after the verdict.
verifyNetworkstringQuarantine network (id or name); empty: none.
verifyPoolstringDatastore restored disks go to; empty: the first usable one.
verifySchedulestringNightly verification schedule; empty: off.
verifyTimeoutSecondsinteger (int64)yesTimeout of one verification, 30 to 3600 seconds.

BackupSettingsView

Settings of the backup service. Changes are kept in the replicated store and apply on every controller; a field the console never changed shows the [backup] section.

NameTypeRequiredDescription
defaultQuiesceQuiesceModeViewyesQuiescing of backups that do not say.
remoteExportsbooleanyesOff-host exports (TCP with TLS); set in the configuration, read-only here.
repositorystringyesRepository directory (verify_repository); empty: none.
verifyDestroybooleanyesDestroy verification VMs after the verdict.
verifyNetworkstringyesQuarantine network of the nightly verification.
verifyPoolstringyesDatastore restored disks go to; empty: the first usable one.
verifySchedulestringyesNightly verification: HH:MM UTC or an interval such as 6h; empty: off.
verifyTimeoutSecondsinteger (int64)yesTimeout of one verification, seconds.

BeginBackupRequestView

OpenAPI stand-in for BeginBackupRequest (model lives in kyvernon-backup).

NameTypeRequiredDescription
disksarray of DiskSelectionViewDisk selections; empty means every CBT-enabled disk with *.
fallbackToFullbooleanFall back to a full backup when a change id is stale.
fleecingbooleanFleecing requested.
quiesceQuiesceModeViewQuiesce mode (NONE / PREFERRED / REQUIRED).
ttlSecondsinteger (int64) or nullSession TTL in seconds.
vmIdstring (uuid)yesVM instance UUID.

BeginRestoreRequest

Body for begin restore.

NameTypeRequiredDescription
capacityinteger (int64)yesCapacity in bytes.
deviceKeyinteger (int32)yesDevice key the restored disk will use.
poolstringyesTarget pool / datastore name (recorded; simulate attaches using an existing datastore).
thinbooleanThin provisioning.
verifyVerifySpec or null
vmIdstring (uuid)yesTarget VM instance UUID (new or powered-off).

Billable

Which direction is billed.

Values: "out", "in_out", "max"

BootEvidence

What the boot showed.

NameTypeRequiredDescription
firmwareMarkersarray of stringyesFirmware markers seen.
osMarkersarray of stringyesOperating-system markers seen.
reachedRunningbooleanyesThe VM's lifecycle state was running.
serialBytesinteger (int64)yesBytes of serial console output seen.
serialTailstringyesThe end of the serial console output (bounded).

BridgeKind

OpenAPI schema of [BridgeKind], whose crate has no schema support; bridge_kind_schema_matches_the_model keeps the two equal.

Values: "ovs", "linux"

BypassBody

Body of POST /v1/firewall/bypass.

NameTypeRequiredDescription
durationSecondsinteger (int64) or nullHow long, seconds (60 to 86,400; default 1,800).
hoststringyesHost id (host-N).
reasonstringyesWhy (kept in the policy and the events; 1 to 500 characters).

BypassView

A bypass in force.

NameTypeRequiredDescription
expiresAtstringyesEnd (RFC 3339).
hoststringyesHost id.
idstringyesPolicy id (fwpolicy-N), the id for DELETE.
reasonstringyesReason.
ruleinteger (int32)yesRule number.

Version 0.1.