Snapservice. Clusters. Virtual Machines Restore$ Task
Restore deleted virtual machine to a given snapshot point. The virtual machine will be left in a powered off state after the restore operation.
This operation was added in vSphere API 8.0.3.0.
Returns an authorization error if you do not have all of the privileges described as follows:
- The resource
ClusterComputeResource
referenced by the parameter cluster requiresHost.Config.Storage
. - The resource
Folder
referenced by the property Snapservice.Clusters.VirtualMachines.RestorePlacementSpec.folder requiresVirtualMachine.Inventory.Create
. - The resource
ResourcePool
referenced by the property Snapservice.Clusters.VirtualMachines.RestorePlacementSpec.resource_pool requiresResource.AssignVMToPool
.
Identifier of the Cluster.
The parameter must be an identifier for the resource type: ClusterComputeResource
.
Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine
.
specification for the restore operation.
"Snapservice.Clusters.VirtualMachines.RestoreSpec Object"
The task identifier for the operation.
The response will be an identifier for the resource type: VirtualMachine
.
Vapi.Std.Errors.AlreadyExists If a virtual machine with the specified name already exists.
Vapi.Std.Errors.InvalidArgument If validation of the spec fails.
Vapi.Std.Errors.NotAllowedInCurrentState If there are more than max allowed restore operations in-progress.
"Vapi.Std.Errors.Error Object"
If the caller is not authenticated.
"Vapi.Std.Errors.Unauthenticated Object"
If the caller is not authorized to perform the operation.
"Vapi.Std.Errors.Unauthorized Object"
If there is no cluster associated with cluster or no virtual machine associated with vm is found in the system.
"Vapi.Std.Errors.NotFound Object"
If there is unknown internal error.
"Vapi.Std.Errors.Error Object"
If the service is not available.
"Vapi.Std.Errors.ServiceUnavailable Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/snapservice/clusters/{cluster}/virtual-machines/{vm}?action=restore&vmw-task=true