Reference For: developers

API schemas: O

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

ObjectBody

A record body in the schema of its kind (kyvernon_inventory::model).

One of: Datacenter, Folder, Cluster, ComputeResource, Host, ResourcePool, VirtualMachine, Datastore, Network, DistributedSwitch, DistributedPortgroup, Tag, TagCategory, CustomField

ObjectView

A stored inventory object: record metadata, kind, health and the body data in the schema of the kind (kyvernon_inventory::model). Select the body schema on kind.

One of: ObjectViewDatacenter, ObjectViewDatacenterFolder, ObjectViewVmFolder, ObjectViewHostFolder, ObjectViewNetworkFolder, ObjectViewDatastoreFolder, ObjectViewCluster, ObjectViewComputeResource, ObjectViewHost, ObjectViewResourcePool, ObjectViewVirtualMachine, ObjectViewDatastore, ObjectViewNetwork, ObjectViewDistributedSwitch, ObjectViewDistributedPortgroup, ObjectViewTag, ObjectViewTagCategory, ObjectViewCustomField

ObjectViewCluster

An inventory object of kind cluster with a Cluster body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewCommon

Fields every inventory object carries besides its metadata and body.

NameTypeRequiredDescription
healthstringHealth: the worst unacknowledged alarm on the object, danger for a disconnected host. Present on inventory reads; absent on writes and on records of kinds that carry no alarms.

ObjectViewComputeResource

An inventory object of kind compute_resource with a ComputeResource body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewCustomField

An inventory object of kind custom_field with a CustomField body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewDatacenter

An inventory object of kind datacenter with a Datacenter body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewDatacenterFolder

An inventory object of kind datacenter_folder with a Folder body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewDatastore

An inventory object of kind datastore with a Datastore body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewDatastoreFolder

An inventory object of kind datastore_folder with a Folder body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewDistributedPortgroup

An inventory object of kind distributed_portgroup with a DistributedPortgroup body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewDistributedSwitch

An inventory object of kind distributed_switch with a DistributedSwitch body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewHost

An inventory object of kind host with a Host body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewHostFolder

An inventory object of kind host_folder with a Folder body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewNetwork

An inventory object of kind network with a Network body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewNetworkFolder

An inventory object of kind network_folder with a Folder body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewResourcePool

An inventory object of kind resource_pool with a ResourcePool body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewTag

An inventory object of kind tag with a Tag body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewTagCategory

An inventory object of kind tag_category with a TagCategory body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewVirtualMachine

An inventory object of kind virtual_machine with a VirtualMachine body.

Type: RecordMetaView, ObjectViewCommon, object

ObjectViewVmFolder

An inventory object of kind vm_folder with a Folder body.

Type: RecordMetaView, ObjectViewCommon, object

OidcAdminInput

The identity provider to store. The controller runs provider discovery first and refuses settings the provider does not answer to.

NameTypeRequiredDescription
clientIdstringyesClient id.
clientSecretstring or nullClient secret (write-only). Blank or absent keeps the stored one.
groupsClaimstringClaim with the group names (default groups).
issuerstringyesIssuer URL.
loginTtlSecondsinteger (int64)yesHow long a started sign-in stays valid, 60 to 3600 seconds.
redirectUristringyesRedirect URI, normally https://<controller>/v1/identity/oidc/callback.
scopesarray of stringScopes beyond openid.

OidcAdminView

The OpenID Connect identity provider as an administrator sees it. The client secret is never returned.

NameTypeRequiredDescription
clientIdstringyesClient id registered at the provider.
clientSecretSetbooleanyesWhether a client secret is stored.
configuredbooleanyesWhether a provider is set up (sign-in with it is offered).
groupsClaimstringyesClaim of the ID token with the group names.
issuerstringyesIssuer URL.
loginTtlSecondsinteger (int64)yesHow long a started sign-in stays valid, seconds.
redirectUristringyesRedirect URI registered at the provider.
scopesarray of stringyesScopes requested beyond openid.
sourcestringyesWhere the provider comes from: console (set up here), configuration (the [oidc] section of the controller configuration) or none.

OidcConfigView

OIDC part of [AuthConfigView].

NameTypeRequiredDescription
enabledbooleanyesAn identity provider is configured.
labelstring or nullButton label (the issuer host), when enabled.

OidcStartResponse

OIDC login start.

NameTypeRequiredDescription
statestringyesState to expect on the callback.
urlstringyesProvider URL to redirect the browser to.

OpenPortBody

Body of POST /v1/vms/{id}/firewall/open-port.

NameTypeRequiredDescription
fromarray of stringSources allowed (addresses or prefixes; empty: any).
ipVersionIpVersionViewIP families (default any).
namestring or nullRule name (default open <protocol> <ports>).
portsstringyesPort or range (443, 8000-8100).
protocolstringyestcp or udp.

Origin

Where an effective rule comes from.

Values: "provider", "tenant", "baseline", "system", "default"

OrphanDisk

A disk image nothing references.

NameTypeRequiredDescription
backingstring or nullBacking image as stored in the header (an orphan overlay names its base).
capacityBytesinteger (int64) or nullGuest-visible capacity, when the header tells.
formatstring or nullImage format (qcow2, raw, vmdk).
modifiedUnixinteger (int64) or nullLast change (seconds since the Unix epoch).
pathstringyesPath below the datastore root.
sizeBytesinteger (int64) or nullBytes the file takes on the datastore.

OrphanDiskReport

The orphan-disk report of one datastore.

NameTypeRequiredDescription
datastorestringyesThe datastore (datastore-N).
datastoreNamestringyesIts name.
minAgeSecondsinteger (int64)yesFiles changed more recently than this were left out.
orphanSidecarsarray of OrphanSidecarChange-tracking sidecars (<image>.kcbt, <image>.kcbt.<epoch>.<seq>) whose image no longer exists, by path (TP-50). The sidecars of a listed image are not repeated here: they go with it.
orphansarray of OrphanDiskyesThe disk images nothing references, by path.
referencedDisksintegeryesDisk images the inventory references (directly, as overlay or as backing image).
scannedDisksintegeryesDisk images found on the datastore.
totalSizeBytesinteger (int64)yesBytes the listed files take together.
truncatedbooleanyesThe datastore has more files than one scan returns; the list is incomplete.

OrphanSidecar

A change-tracking sidecar whose image is gone.

NameTypeRequiredDescription
imagestringyesPath of the image it belonged to.
modifiedUnixinteger (int64) or nullLast change (seconds since the Unix epoch).
pathstringyesPath below the datastore root.
sizeBytesinteger (int64) or nullBytes the file takes on the datastore.

OvfCreateDescriptorFileRequest

One package member for CreateDescriptor (OvfFile).

NameTypeRequiredDescription
capacityinteger (int64) or nullVirtual disk capacity in bytes when known (preferred over size for disks).
deviceIdstringNFC / export device id (/{entity}/disk:N or cdrom key).
pathstringyesPackage member path (href), e.g. web-disk1.vmdk or media.iso.
populatedSizeinteger (int64) or nullPopulated size when size is zero.
sizeinteger (int64)Transfer / compressed size in bytes.

OvfCreateDescriptorView

Result of POST /v1/ovf/create-descriptor.

NameTypeRequiredDescription
entityNamestringEntity name written into the envelope.
errorsarray of OvfMessageViewHard failures (HTTP still 200, matching SOAP).
includeImageFilesbooleanWhether ISO image files were packaged.
ovfDescriptorstringOVF envelope XML.
warningsarray of OvfMessageViewSoft warnings.

OvfDeploymentOptionView

One deployment option from the package.

NameTypeRequiredDescription
keystringyesOption key / id.
labelstringyesDisplay label.

OvfFileItemView

File the NFC lease would upload (OvfFileItem).

NameTypeRequiredDescription
cimTypeinteger (int32)yesCIM type (17 = disk, 15 = CD-ROM).
createbooleanyesCreate empty backing instead of uploading.
deviceIdstringyesDevice import key.
pathstringyesPackage member path (href) or empty-disk basename.
sizeinteger (int64) or nullDeclared size when known.

OvfImportCdromView

CD-ROM planned by CreateImportSpec.

NameTypeRequiredDescription
idstringyesPackage CD-ROM id.
importKeystring or nullNFC import key when an ISO upload is required.
isoPathstring or nullISO datastore path when the package includes media.

OvfImportDiskView

Disk planned by CreateImportSpec.

NameTypeRequiredDescription
capacityBytesinteger (int64)yesCapacity in bytes.
createbooleanyesWhether an empty disk is created (no NFC upload).
datastorePathstringyesDestination datastore path ([ds] name/disk-N.qcow2).
idstringyesPackage disk id.
importKeystringyesNFC import key (/{entity}/disk:N).

OvfImportNicView

NIC planned by CreateImportSpec.

NameTypeRequiredDescription
connectedbooleanyesConnect at power-on.
idstringyesPackage NIC id.
macstring or nullMAC when the package states one.
modelstringyesModel string (vmxnet3, e1000, …).
networkIdstring or nullResolved inventory network id when mapped.
networkNamestring or nullResolved inventory network name.
ovfNetworkstring or nullNetwork name from the OVF.

OvfImportSpecView

Result of POST /v1/ovf/import-spec.

NameTypeRequiredDescription
annotationstring or nullAnnotation.
cdromsarray of OvfImportCdromViewPlanned CD-ROMs.
coresPerSocketinteger (int32) or nullCores per socket when valid.
datastoreIdstringDatastore id.
disksarray of OvfImportDiskViewPlanned disks.
entityNamestringPlanned VM name.
errorsarray of OvfMessageViewHard failures (HTTP still 200, matching SOAP).
extraConfigobjectvmw:ExtraConfig / guestinfo pairs.
fileItemsarray of OvfFileItemViewNFC file items.
firmwarestringFirmware: bios or efi as the package states it, efi when it states none.
guestIdstring or nullGuest OS id from the package.
hardwareVersionstring or nullHardware version string when stated.
memoryMibinteger (int64)Memory in MiB.
nicsarray of OvfImportNicViewPlanned NICs (unmapped NICs are omitted with a warning).
numCpusinteger (int32)vCPU count.
resourcePoolIdstringResource pool id.
secureBootbooleanSecure Boot as the package states it (kept with efi only).
warningsarray of OvfMessageViewSoft warnings.

OvfMessageView

Warning or error from OVF parse / import-spec.

NameTypeRequiredDescription
detailstringyesNon-secret detail.
keystringyesStable message key (import.ovf.*).

OvfNetworkInfoView

One OVF network advertised by the package.

NameTypeRequiredDescription
descriptionstringDescription from the package.
namestringyesNetwork name in the package.

OvfNetworkMappingRequest

Map an OVF network name to an inventory network.

NameTypeRequiredDescription
namestringyesNetwork name as stated in the OVF.
networkIdstringyesInventory network or distributed port group id.

OvfParseDescriptorRequest

Parse an OVF descriptor (OvfManager.ParseDescriptor).

NameTypeRequiredDescription
deploymentOptionstring or nullOptional deployment configuration id from the package.
ovfDescriptorstringyesOVF envelope XML.

OvfParseDescriptorView

Result of POST /v1/ovf/parse.

NameTypeRequiredDescription
annotationstringAnnotation / description.
approximateDownloadSizeinteger (int64) or nullApproximate download size in bytes.
approximateFlatDeploymentSizeinteger (int64) or nullApproximate flat deployment size in bytes.
approximateSparseDeploymentSizeinteger (int64) or nullApproximate sparse deployment size in bytes.
defaultDeploymentOptionstringDefault deployment option key.
defaultEntityNamestringDefault VM name from the first VirtualSystem.
deploymentOptionsarray of OvfDeploymentOptionViewDeployment options.
errorsarray of OvfMessageViewHard failures (parse still returns 200 with these populated, matching SOAP).
networksarray of OvfNetworkInfoViewNetworks declared by the package.
virtualAppbooleanWhether the package is a vApp (always false in this thin slice).
warningsarray of OvfMessageViewSoft warnings.

OvnHostView

One host's realization as the status shows it.

NameTypeRequiredDescription
appliedbooleanyesThe slice is realised on the host's Open vSwitch.
errorstring or nullWhy not.
generationinteger (int64)yesGeneration of the slice the host holds.
hoststringyesHost id.
portsintegeryesLogical ports bound to the host.
portsInstalledintegeryesOf those, ports whose flows ovn-controller installed.
preconditionsarray of stringHost preconditions that do not hold.
reportedAtstringyesWhen the host last reported.

OvnStatusView

Realization status of the OVN logical networks (GET /v1/network/realization).

NameTypeRequiredDescription
connectedbooleanyesThe Northbound connection is up.
countersstringyesRule counters on segments: available, not configured (no [ovn] southbound) or the reason they are not.
enabledbooleanyes[ovn] enabled.
errorstring or nullThe model or realization error, if the newest model is not realised.
hostsarray of OvnHostViewThe hosts' reports.
lastDriftintegeryesRows another writer changed that the last realization corrected.
lastOperationsintegeryesDatabase operations of the last realization (0: already in line).
modelGenerationinteger (int64)yesGeneration of the newest model (the store version it was read at).
northboundstringyesThe Northbound remote.
notesarray of stringNotes of the compiler and inventory objects left out.
portsintegeryesLogical ports in the model.
portsUpintegeryesLogical ports OVN reports up (bound on a chassis).
realizedAtstring or nullWhen it was realised.
realizedGenerationinteger (int64)yesGeneration last realised in the Northbound database.
segmentsintegeryesSegments in the model.

Version 0.1.