Ovf Export Session APIs

Ovf Export Session APIs

The ExportSession service provides operations to export a virtual machine or virtual appliance as an OVF package. The OVF package can either be downloaded using HTTP GETs or directly transferred to a content library. The export session is represented by an ExportSession.Info resource, which includes the current state of the transfer and also provides the list of files that can be downloaded.

Note: This service is restricted for VMware internal use only.

Operations
POST
Create Ovf Export Session Internal
Creates a new export session for a virtual machine or virtual appliance. The state of the new export session is EXPORT_PREPARING. This operation is idempotent. Two calls with the same client token will receive the same export session object. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource VirtualApp referenced by the attribute ExportSession.SourceInfo.vapp-id requires System.Read. - The resource VirtualMachine referenced by the attribute ExportSession.SourceInfo.vm-id requires System.Read. - The resource com.vmware.content.Library referenced by the attribute ExportSession.CreateSpec.content-library requires System.Read. - The resource com.vmware.content.library.Item referenced by the attribute ExportSession.CreateSpec.content-library-item requires System.Read.
DELETE
Delete Id Export Session Internal
Deletes (or cancels) an export session. If no export session with the specified identifier exists, this call will return with success. A client should terminate a session to free up resources on the server. An export session will automatically be reclaimed after a period of inactivity. For example, it will only remain in EXPORT_ERROR and EXPORT_COMPLETED state for a period of time. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource com.vmware.vcenter.OvfExportSession referenced by the parameter id requires System.Read.
GET
Get Id Export Session Internal
Retrieves information about an export session. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource com.vmware.vcenter.OvfExportSession referenced by the parameter id requires System.Read.
POST
Preview Ovf Export Session Internal
Do a preview of an export for a virtual machine of virtual appliance. This can be used to get an overview of the files that will need to be transferred during the actual export. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource VirtualApp referenced by the attribute ExportSession.SourceInfo.vapp-id requires System.Read. - The resource VirtualMachine referenced by the attribute ExportSession.SourceInfo.vm-id requires System.Read.
POST
Progress Id Internal
Used by the client to set the progress of download when target is DOWNLOAD_TARGET. Should be called regularly to keep the given export session alive. if you do not have all of the privileges described as follows: - Operation execution requires System.Read. - The resource com.vmware.vcenter.OvfExportSession referenced by the parameter id requires System.Read.