Reference For: developers

API: ovf

Operations of the ovf tag of the native REST API.

OVF descriptor parse and import-spec planning (ParseDescriptor / CreateImportSpec)

POST /v1/ovf/create-descriptor

POST /v1/ovf/create-descriptor: SOAP OvfManager.CreateDescriptor.

CLI
kyvernon ovf create-descriptor --body <json>

Request body

application/json: CreateOvfDescriptorRequest

NameTypeRequiredDescription
descriptionstring or nullAnnotation / description override.
includeImageFilesboolean or nullPackage attached ISO images as References (govc export.ovf -i).
namestring or nullOverride entity name; defaults to the VM display name.
ovfFilesarray of OvfCreateDescriptorFileRequestyesDisk and optional ISO package members (govc export.ovf file list).
vmIdstringyesSource VM whose hardware is reflected in the descriptor.

Responses

StatusDescriptionSchema
200OKOvfCreateDescriptorView
400Invalid argument; the error body names the fieldErrorBody
403Permission denied; args.privilege names the missing privilegeErrorBody
404Not found (or not visible to the caller)ErrorBody

POST /v1/ovf/import-spec

POST /v1/ovf/import-spec: SOAP OvfManager.CreateImportSpec.

CLI
kyvernon ovf import-spec --body <json>

Request body

application/json: CreateOvfImportSpecRequest

NameTypeRequiredDescription
datastoreIdstringyesTarget datastore (datastore-N).
deploymentOptionstring or nullOptional deployment configuration id.
entityNamestring or nullOverride entity name; defaults to the package VirtualSystem name.
networkMappingarray of OvfNetworkMappingRequestOVF network name → inventory network mappings.
ovfDescriptorstringyesOVF envelope XML.
resourcePoolIdstringyesTarget resource pool (resgroup-N / resourcepool-N).

Responses

StatusDescriptionSchema
200OKOvfImportSpecView
400Invalid argument; the error body names the fieldErrorBody
403Permission denied; args.privilege names the missing privilegeErrorBody
404Not found (or not visible to the caller)ErrorBody

POST /v1/ovf/parse

POST /v1/ovf/parse: SOAP OvfManager.ParseDescriptor.

CLI
kyvernon ovf parse --body <json>

Request body

application/json: OvfParseDescriptorRequest

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

Responses

StatusDescriptionSchema
200OKOvfParseDescriptorView
400Invalid argument; the error body names the fieldErrorBody
403Permission denied; args.privilege names the missing privilegeErrorBody

Version 0.1.