Vcenter Ovf LibraryItem deploy
Deploys an OVF package stored in content library to a newly created virtual machine or virtual appliance.
This operation deploys an OVF package which is stored in the library item specified by ovfLibraryItemId. It uses the deployment specification in deploymentSpec to deploy the OVF package to the location specified by target.
Returns an authorization error if you do not have all of the privileges described as follows:
- Operation execution requires
System.Read
. - The resource
com.vmware.content.library.Item
referenced by the parameter ovfLibraryItemId requiresSystem.Read
. - The resource
HostSystem
referenced by the property Vcenter Ovf LibraryItem DeploymentTarget.host_id requiresSystem.Read
. - The resource
Network
referenced by the map value of property Vcenter Ovf LibraryItem ResourcePoolDeploymentSpec.network_mappings requiresSystem.Read
. - The resource
StorageProfile
referenced by the property Vcenter Ovf LibraryItem ResourcePoolDeploymentSpec.storage_profile_id requiresSystem.Read
. - The resource
Datastore
referenced by the property Vcenter Ovf LibraryItem ResourcePoolDeploymentSpec.default_datastore_id requiresSystem.Read
. - The resource
ResourcePool
referenced by the property Vcenter Ovf LibraryItem DeploymentTarget.resource_pool_id requiresVApp.Import
. - The resource
Folder
referenced by the property Vcenter Ovf LibraryItem DeploymentTarget.folder_id requiresVApp.Import
.
Identifier of the content library item containing the OVF package to be deployed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.
Client-generated token used to retry a request if the client fails to get a response from the server. If the original request succeeded, the result of that request will be returned, otherwise the operation will be retried.
If missing or null
, the server will create a token.
Request body for invoking operation: deploy
Show optional properties
{
"target": {
"resource_pool_id": "string"
},
"deployment_spec": "Vcenter Ovf LibraryItem ResourcePoolDeploymentSpec Object"
}
{
"target": {
"resource_pool_id": "string",
"host_id": "string",
"folder_id": "string"
},
"deployment_spec": "Vcenter Ovf LibraryItem ResourcePoolDeploymentSpec Object"
}
The Vcenter Ovf LibraryItem DeploymentTarget schema describes the location (target) where a virtual machine or virtual appliance should be deployed. It is used in the deploy and filter operations. See POST /vcenter/ovf/library-item/{ovfLibraryItemId}?action=deploy and POST /vcenter/ovf/library-item/{ovfLibraryItemId}?action=filter.
The Vcenter Ovf LibraryItem ResourcePoolDeploymentSpec schema defines the deployment parameters that can be specified for the deploy operation where the deployment target is a resource pool. See POST /vcenter/ovf/library-item/{ovfLibraryItemId}?action=deploy.
Information about the success or failure of the operation, along with the details of the result or failure.
"Vcenter Ovf LibraryItem DeploymentResult Object"
Whether the deploy operation completed successfully.
Identifier of the deployed resource entity.
If missing or null
, the deploy operation failed and Vcenter Ovf LibraryItem DeploymentResult.error will describe the error(s) that caused the failure.
Errors, warnings, and informational messages produced by the deploy operation.
If missing or null
, no errors, warnings, or informational messages were reported by the deploy operation.
if target contains invalid arguments.
if deploymentSpec contains invalid arguments or has properties that are inconsistent with target.
"Vapi Std Errors InvalidArgument Object"
if you do not have all of the privileges described as follows :
- Operation execution requires VirtualMachine.Config.AddNewDisk if the OVF descriptor has a disk drive (type 17) section.
- Operation execution requires VirtualMachine.Config.AdvancedConfig if the OVF descriptor has an ExtraConfig section.
- Operation execution requires Extension.Register for specified resource group if the OVF descriptor has a vServiceDependency section.
- Operation execution requires Network.Assign for target network if specified.
- Operation execution requires Datastore.AllocateSpace for target datastore if specified.
"Vapi Std Errors Unauthorized Object"
if the library item specified by ovfLibraryItemId does not exist.
if any resource specified by a property of the Vcenter Ovf LibraryItem DeploymentTarget schema, specified by target, does not exist.
"Vapi Std Errors NotFound Object"
if there was an error accessing the OVF package stored in the library item specified by ovfLibraryItemId.
"Vapi Std Errors ResourceInaccessible Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"deployment_spec":"{}","target:"object"}' https://{api_host}/api/vcenter/ovf/library-item/{ovfLibraryItemId}?action=deploy