VM Recover
Select
SaaS
Customer Managed
This operation initiates a restore operation for a virtual machine and returns the details for the restore job. You can perform an in-place restore or an out-of-place restore of a virtual machine. Supported vendors: VMware, vCloud and HyperV
Note:
vmClientGUIDis the client GUID of the backed-up VM. You can use "Get all VMs" API to fetch the client GUID from the client properties of the VM.Path Parameters
- vmClientGUID string required
- application/json
Request Body
- inPlaceRestore boolean required
The option to restore backed-up data to the same client from which it was backed up. Set to false for out of place recover
- passUnconditionalOverride boolean
The option to overwrite an existing virtual machine of the same name.
- powerOnVmAfterRestore boolean
The option to start the virtual machine after it is restored.
destinationClient object
destinationInfo object[]
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 63814,
"jobIds": [
"131574"
]
}
POST /v2/vsa/vm/:vmclientguid/recover
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/v2/vsa/vm/:vmClientGUID/recover' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"inPlaceRestore": true,
"passUnconditionalOverride": true,
"powerOnVmAfterRestore": true,
"destinationClient": {
"clientName": "string"
},
"destinationInfo": [
{
"vmware": {
"esxHost": "string",
"newName": "string",
"dataStore": "string",
"resourcePool": "string"
},
"vcloud": {
"newName": "string",
"esxHost": "string",
"dataStore": "string",
"vCloudOrgName": "string",
"vCDName": "string",
"vAppName": "string",
"vCloudOwner": "string"
},
"hyperv": {
"newName": "string",
"destinationPath": "string",
"registerwithFailover": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/v2/vsa/vm/:vmClientGUID/recover' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"inPlaceRestore": true,
"passUnconditionalOverride": true,
"powerOnVmAfterRestore": true,
"destinationClient": {
"clientName": "string"
},
"destinationInfo": [
{
"vmware": {
"esxHost": "string",
"newName": "string",
"dataStore": "string",
"resourcePool": "string"
},
"vcloud": {
"newName": "string",
"esxHost": "string",
"dataStore": "string",
"vCloudOrgName": "string",
"vCDName": "string",
"vAppName": "string",
"vCloudOwner": "string"
},
"hyperv": {
"newName": "string",
"destinationPath": "string",
"registerwithFailover": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/v2/vsa/vm/:vmClientGUID/recover' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"inPlaceRestore": true,
"passUnconditionalOverride": true,
"powerOnVmAfterRestore": true,
"destinationClient": {
"clientName": "string"
},
"destinationInfo": [
{
"vmware": {
"esxHost": "string",
"newName": "string",
"dataStore": "string",
"resourcePool": "string"
},
"vcloud": {
"newName": "string",
"esxHost": "string",
"dataStore": "string",
"vCloudOrgName": "string",
"vCDName": "string",
"vAppName": "string",
"vCloudOwner": "string"
},
"hyperv": {
"newName": "string",
"destinationPath": "string",
"registerwithFailover": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/v2/vsa/vm/:vmClientGUID/recover' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"inPlaceRestore": true,
"passUnconditionalOverride": true,
"powerOnVmAfterRestore": true,
"destinationClient": {
"clientName": "string"
},
"destinationInfo": [
{
"vmware": {
"esxHost": "string",
"newName": "string",
"dataStore": "string",
"resourcePool": "string"
},
"vcloud": {
"newName": "string",
"esxHost": "string",
"dataStore": "string",
"vCloudOrgName": "string",
"vCDName": "string",
"vAppName": "string",
"vCloudOwner": "string"
},
"hyperv": {
"newName": "string",
"destinationPath": "string",
"registerwithFailover": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/v2/vsa/vm/:vmClientGUID/recover' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"inPlaceRestore": true,
"passUnconditionalOverride": true,
"powerOnVmAfterRestore": true,
"destinationClient": {
"clientName": "string"
},
"destinationInfo": [
{
"vmware": {
"esxHost": "string",
"newName": "string",
"dataStore": "string",
"resourcePool": "string"
},
"vcloud": {
"newName": "string",
"esxHost": "string",
"dataStore": "string",
"vCloudOrgName": "string",
"vCDName": "string",
"vAppName": "string",
"vCloudOwner": "string"
},
"hyperv": {
"newName": "string",
"destinationPath": "string",
"registerwithFailover": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/v2/vsa/vm/:vmClientGUID/recover' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"inPlaceRestore": true,
"passUnconditionalOverride": true,
"powerOnVmAfterRestore": true,
"destinationClient": {
"clientName": "string"
},
"destinationInfo": [
{
"vmware": {
"esxHost": "string",
"newName": "string",
"dataStore": "string",
"resourcePool": "string"
},
"vcloud": {
"newName": "string",
"esxHost": "string",
"dataStore": "string",
"vCloudOrgName": "string",
"vCDName": "string",
"vAppName": "string",
"vCloudOwner": "string"
},
"hyperv": {
"newName": "string",
"destinationPath": "string",
"registerwithFailover": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/v2/vsa/vm/:vmClientGUID/recover' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"inPlaceRestore": true,
"passUnconditionalOverride": true,
"powerOnVmAfterRestore": true,
"destinationClient": {
"clientName": "string"
},
"destinationInfo": [
{
"vmware": {
"esxHost": "string",
"newName": "string",
"dataStore": "string",
"resourcePool": "string"
},
"vcloud": {
"newName": "string",
"esxHost": "string",
"dataStore": "string",
"vCloudOrgName": "string",
"vCDName": "string",
"vAppName": "string",
"vCloudOwner": "string"
},
"hyperv": {
"newName": "string",
"destinationPath": "string",
"registerwithFailover": "string"
}
}
]
}'