You can upload an OVF or OVA package from a local file system. This procedure describes how to use the LibraryItemUpdatesessionFileAddSpec data structure after you have created a library item and initiated an update session.

Note: If you try to upload a signed OVF package and it returns preview warnings, you must ignore the preview warnings to complete the upload.

Prerequisites

  • Create a new local content library or retrieve the desired existing content library.
  • Required privileges: Content library.Add library item and Content library.Update files on the library.

Procedure

  1. Create a library item.
  2. Create an update session.
  3. Create a LibraryItemUpdatesessionFileAddSpec data structure to describe the properties and the upload locations of the OVF descriptor file or of the OVA package file.
  4. Link the LibraryItemUpdatesessionFileAddSpec data structure to the update session.
  5. (Optional) Create a LibraryItemUpdatesessionFileAddSpec data structure for each VMDK file included in the OVF package.
  6. Add all LibraryItemUpdatesessionFileAddSpec data structures to the update session.
    If you upload an OVF package and it has a VMDK file included, you must repeat steps 5 and 6. If you are uploading a signed OVF package, steps 5 and 6 must also be repeated for the manifest and certificate files included in the OVF package.
  7. Initiate the upload operation.
  8. Complete the update session.
  9. Delete the session.