Skip to main content

Create recovery target

Select

SaaS
Customer Managed

This operation creates recovery target.

Request Body required
  • action integer
  • policy object
  • vmNameEditType integer
  • vmNameEditString string
  • resourcePoolPath string
  • createIsolatedNetwork boolean
  • migrateVMs boolean
  • isResourceGroupPolicy boolean
  • enabled boolean
  • networkList object[]
  • sourceNetwork string
  • destinationNetwork string
  • destinationHyperV object
  • clientId integer
  • clientName string
  • dataStores object[]
  • dataStoreName string
  • proxyClientEntity object
  • clientId integer
  • clientName string
  • dataCenter object
  • dataCenterName string
  • esxServers object[]
  • esxServerName string
  • entity object
  • vmAllocPolicyName string
  • policyType integer
Responses

OK


Schema
  • entity object
  • vmAllocPolicyId integer
POST /vmallocationpolicy    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body required

{
"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
}
}
}'