Create recovery target
Select
SaaS
Customer Managed
This operation creates recovery target.
- application/json
Request Body required
- action integer
policy object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
entity object
{
"entity": {
"vmAllocPolicyId": 0
}
}
{
"entity": {
"vmAllocPolicyId": 9
}
}
POST /vmallocationpolicy
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/VMAllocationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"action": 0,
"policy": {
"vmNameEditType": 0,
"vmNameEditString": "string",
"resourcePoolPath": "string",
"createIsolatedNetwork": true,
"migrateVMs": true,
"isResourceGroupPolicy": true,
"enabled": true,
"networkList": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
],
"destinationHyperV": {
"clientId": 0,
"clientName": "string"
},
"dataStores": [
{
"dataStoreName": "string"
}
],
"proxyClientEntity": {
"clientId": 0,
"clientName": "string"
},
"dataCenter": {
"dataCenterName": "string"
},
"esxServers": [
{
"esxServerName": "string"
}
],
"entity": {
"vmAllocPolicyName": "string",
"policyType": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/VMAllocationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"action": 0,
"policy": {
"vmNameEditType": 0,
"vmNameEditString": "string",
"resourcePoolPath": "string",
"createIsolatedNetwork": true,
"migrateVMs": true,
"isResourceGroupPolicy": true,
"enabled": true,
"networkList": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
],
"destinationHyperV": {
"clientId": 0,
"clientName": "string"
},
"dataStores": [
{
"dataStoreName": "string"
}
],
"proxyClientEntity": {
"clientId": 0,
"clientName": "string"
},
"dataCenter": {
"dataCenterName": "string"
},
"esxServers": [
{
"esxServerName": "string"
}
],
"entity": {
"vmAllocPolicyName": "string",
"policyType": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/VMAllocationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"action": 0,
"policy": {
"vmNameEditType": 0,
"vmNameEditString": "string",
"resourcePoolPath": "string",
"createIsolatedNetwork": true,
"migrateVMs": true,
"isResourceGroupPolicy": true,
"enabled": true,
"networkList": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
],
"destinationHyperV": {
"clientId": 0,
"clientName": "string"
},
"dataStores": [
{
"dataStoreName": "string"
}
],
"proxyClientEntity": {
"clientId": 0,
"clientName": "string"
},
"dataCenter": {
"dataCenterName": "string"
},
"esxServers": [
{
"esxServerName": "string"
}
],
"entity": {
"vmAllocPolicyName": "string",
"policyType": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/VMAllocationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"action": 0,
"policy": {
"vmNameEditType": 0,
"vmNameEditString": "string",
"resourcePoolPath": "string",
"createIsolatedNetwork": true,
"migrateVMs": true,
"isResourceGroupPolicy": true,
"enabled": true,
"networkList": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
],
"destinationHyperV": {
"clientId": 0,
"clientName": "string"
},
"dataStores": [
{
"dataStoreName": "string"
}
],
"proxyClientEntity": {
"clientId": 0,
"clientName": "string"
},
"dataCenter": {
"dataCenterName": "string"
},
"esxServers": [
{
"esxServerName": "string"
}
],
"entity": {
"vmAllocPolicyName": "string",
"policyType": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/VMAllocationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"action": 0,
"policy": {
"vmNameEditType": 0,
"vmNameEditString": "string",
"resourcePoolPath": "string",
"createIsolatedNetwork": true,
"migrateVMs": true,
"isResourceGroupPolicy": true,
"enabled": true,
"networkList": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
],
"destinationHyperV": {
"clientId": 0,
"clientName": "string"
},
"dataStores": [
{
"dataStoreName": "string"
}
],
"proxyClientEntity": {
"clientId": 0,
"clientName": "string"
},
"dataCenter": {
"dataCenterName": "string"
},
"esxServers": [
{
"esxServerName": "string"
}
],
"entity": {
"vmAllocPolicyName": "string",
"policyType": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/VMAllocationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"action": 0,
"policy": {
"vmNameEditType": 0,
"vmNameEditString": "string",
"resourcePoolPath": "string",
"createIsolatedNetwork": true,
"migrateVMs": true,
"isResourceGroupPolicy": true,
"enabled": true,
"networkList": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
],
"destinationHyperV": {
"clientId": 0,
"clientName": "string"
},
"dataStores": [
{
"dataStoreName": "string"
}
],
"proxyClientEntity": {
"clientId": 0,
"clientName": "string"
},
"dataCenter": {
"dataCenterName": "string"
},
"esxServers": [
{
"esxServerName": "string"
}
],
"entity": {
"vmAllocPolicyName": "string",
"policyType": 0
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/VMAllocationPolicy' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"action": 0,
"policy": {
"vmNameEditType": 0,
"vmNameEditString": "string",
"resourcePoolPath": "string",
"createIsolatedNetwork": true,
"migrateVMs": true,
"isResourceGroupPolicy": true,
"enabled": true,
"networkList": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
],
"destinationHyperV": {
"clientId": 0,
"clientName": "string"
},
"dataStores": [
{
"dataStoreName": "string"
}
],
"proxyClientEntity": {
"clientId": 0,
"clientName": "string"
},
"dataCenter": {
"dataCenterName": "string"
},
"esxServers": [
{
"esxServerName": "string"
}
],
"entity": {
"vmAllocPolicyName": "string",
"policyType": 0
}
}
}'