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
- Create a LibraryItem.DeploymentTarget instance to specify the deployment location of the virtual machine or vApp.
- 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.
- (Optional) Retrieve information from the descriptor file of the OVF template and use the information during the OVF template deployment.
- Use the
POST https://<vcenter_ip_address_or_fqdn>/api/vcenter/ovf/library-item/<ovf_library_item_id>?action=deploy
HTTP request.
- Verify the outcome of the deployment operation.