You can use the LibraryItem service to deploy a virtual machine or vApp on a host, cluster, or resource pool from a library item.

Procedure

  1. Create a LibraryItem.DeploymentTarget instance to specify the deployment location of the virtual machine or vApp.
  2. Create a LibraryItem.ResourcePoolDeploymentSpec instance to define all necessary parameters for the deployment operation.
    For example, you can assign a name for the deployed virtual machine or vApp, and accept the End User License Agreements (EULAs) to complete the deployment successfully.
  3. (Optional) Retrieve information from the descriptor file of the OVF template and use the information during the OVF template deployment.
  4. Use the POST https://<vcenter_ip_address_or_fqdn>/api/vcenter/ovf/library-item/<ovf_library_item_id>?action=deploy HTTP request.
  5. Verify the outcome of the deployment operation.