You can create library items from existing virtual machines or vApp. Use those library items later to deploy virtual machines and vApps on hosts and clusters in your vCenter Server environment.

Procedure

  1. Create a LibraryItem.DeployableIdentity instance to specify the source virtual machine or vApp to be captured in an OVF template.
  2. Create a LibraryItem.CreateTarget instance to identify the content library where the OVF template is stored.
  3. Create a LibraryItem.CreateSpec instance to specify the properties of the OVF template.
  4. Initiate a synchronous create operation by using the POST https://<vcenter_ip_address_or_fqdn>/api/vcenter/ovf/library-item HTTP request.
  5. Verify the outcome of the create operation.