VM Restore Operation
Select
To restore a virtual machine
Path Parameters
- vmGuid string required
GUID of VM to backup
Query Parameters
- mediaAgentName string
Media agent name
- mediaAgentId string
Media agent id
- fromTime string
Restore window UTC from time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd
- toTime date-time
Restore window UTC to time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd
- application/json
Request Body
- powerOnVmAfterRestore boolean
Default value:
false
Turn ON virtual machine after restore. Defaults to false.
- overwriteVM boolean
Default value:
false
Unconditionally overwrite VM during restore. Defaults to false.
- inPlaceRestore boolean required
Default value:
false
Flag to set if restore is in-place or out-of-place. Defaults to false.
- backupSource int32
Backup source information from where you want to restore. 0 (Automatic), 1 (Snap Copy), 2 (Primary), 3 to N (Aux Copy)
destination object
accessNode object
accessNodeGroup object
vmDestinationInfo object required
- transportMode string
Possible values: [
Auto
,SAN
,Hot_Add
,NAS
,NBD_SSL
,NBD
,EBS_DIRECT
,IMPORT
]Backup transport modes enum
- diskOption VMDiskOption
Possible values: [
ORIGINAL
,THICK_LAZY_ZERO
,THIN
,THICK_EAGER_ZERO
]Default value:
ORIGINAL
Disk options enum. VMware- ORIGINAL, THICK_EAGER_ZERO, THIN, THICK_EAGER_ZERO
- restoreFlavour
Possible values: [
NONE
,VIRTUAL_MACHINE
,PHYSICAL_VOLUME
,VMDK_FILES
,VIRTUAL_HARD_DISKS
,VDI_OBJECT
,DISK_ATTACH
,RESTORE_AS_FILE
,INSTANT_VM
]Type of restore for virtual machine
- isAttachToNewVM boolean
Default value:
false
Flag to set when performing attach disk restore to a new VM.
- notifyOnJobCompletion boolean
Default value:
false
Enable email notificaiton for job status. Defaults to false.
- reuseVMClient boolean
Reuse the existing VM client instance of creating new one after restore. Defaults to true for inplace restore and false for out of place restore.
- 200
- 404
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
- taskId int32
- jobIds string[]
JobIds for the immediate run request
{
"taskId": 0,
"jobIds": [
"string"
]
}
Requested Details not found
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
POST /v4/vm/:vmguid/restore
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VM/:vmGuid/restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"powerOnVmAfterRestore": false,
"overwriteVM": false,
"inPlaceRestore": false,
"backupSource": 2,
"destination": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"accessNodeGroup": {
"id": 0,
"name": "string"
},
"vmDestinationInfo": {
"googleCloud": {
"googleCloudVMInfoList": [
{
"instanceId": "123456789123456",
"name": "Defaults to source VM name",
"projectId": "string",
"zone": "asia-east1-a",
"region": "asia-east1",
"machineType": "c2d-highmem-8",
"createPublicIP": false,
"disks": [
{
"name": "string",
"newName": "string",
"type": "string",
"IOPS": 0,
"throughput": 0
}
],
"networkInterfaces": [
{
"name": "nic0",
"networkName": "default",
"subnetId": "Defaults to source subnet",
"networkId": "Defaults to source network self-link.",
"internalIP": "198.51.100.42",
"externalIP": "198.51.100.42"
}
],
"customMetadata": [
{
"name": "string",
"value": "string"
}
],
"nodeAffinities": [
{
"name": "string",
"value": "string"
}
],
"serviceAccount": {
"id": "string",
"name": "string",
"email": "string"
},
"encryptionKey": "kmsKeyName:projects/projectName/locations/global/keyRings/enc-key/cryptoKeys/enc-key-name",
"keyProtectionLevel": "SOFTWARE"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azure": {
"azureVMInfoList": [
{
"sourceVMGuid": "c1231de123-4309-41be-123123-123abc123",
"name": "Defaults to source VM name",
"targetVMGuid": "string",
"resourceGroup": "Defaults to source VM resource group name",
"region": "For azure region (West US 3) the region value will be westus3",
"availabilityZone": "Defaults to Auto",
"storageAccount": "Defaults to source storage account",
"vmSize": "Standard_A1",
"templateId": "string",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"disks": [
{
"storageAccount": "string",
"type": "string",
"name": "string",
"newName": "string"
}
],
"attachAndSwapOSDisk": false,
"skipOSDisk": false,
"guestCredentialID": {
"id": 0,
"name": "string"
},
"guestUsername": "string",
"guestPassword": "string",
"nics": [
{
"id": "string",
"networkId": "string",
"subnetId": "string",
"privateIpAddress": "198.51.100.42",
"publicIpAddress": "198.51.100.42",
"publicIpAddressId": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"aws": {
"awsInstanceInfoList": [
{
"instanceId": "i-0f90bef70bd90c9e0",
"instanceName": "Defaults to source instance name",
"targetInstanceId": "string",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"tenancy": "default",
"hostId": "string",
"affinity": "default",
"instanceSize": "t2.micro",
"amiId": "ami-02055306b406cf191",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"volumes": [
{
"id": "string",
"name": "string",
"type": "string",
"IOPS": 0,
"Throughput": 0,
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"diskTags": [
{
"name": "string",
"value": "string"
}
]
}
],
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"restoreSourceVolumeTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"nutanix": {
"nutanixVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"name": "string",
"storageContainer": "string",
"nics": [
{
"name": "string",
"networkName": "fb0ff3ad-b95e-43e2-a364-0c2c21931c68",
"destinationNetwork": "string",
"networkDisplayName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"openstack": {
"openstackInstanceInfoList": [
{
"sourceInstanceGuid": "cf6af80d-3275-4885-a405-75c6a991e2be",
"instanceName": "string",
"availabilityZone": "string",
"volumeType": "string",
"flavor": "string",
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"nics": [
{
"networkName": "string",
"networkId": "string",
"subnetId": "string"
}
],
"image": "334b25d3-0963-4d62-a5b9-fe89ff16c8f3"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oci": {
"ociInstanceInfoList": [
{
"instanceOcid": "ocid1.instance.oc1.iad.anuwcwrhn6b7cslfadzjxsj2gq",
"instanceName": "Defaults to source instance name",
"compartmentId": "ocid1.compartment.oc1..aaaaaaaahzr7c2odydamslgzka",
"availabilityDomain": "Defaults to source instance availability domain.",
"region": "Defaults to source instance region.",
"instanceShape": "VM.Standard.E4.Flex",
"createPublicIP": false,
"stagingBucket": "string",
"disks": [
{
"volumeName": "string"
}
],
"nics": [
{
"networkName": "string",
"vcnId": "string",
"subnetId": "string",
"privateIpAddress": "string"
}
],
"instanceTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"hyperv": {
"hyperVVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationHyperVHost": "Defaults to source VM host",
"destinationFolder": "Defaults to HyperV default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vcloud": {
"vCloudVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"vCloudOrgName": "string",
"orgVDCName": "string",
"vAppName": "string",
"vCloudOwner": "string",
"esxHost": "string",
"storagePolicy": "string",
"newName": "string",
"isStandAloneRestore": false,
"restoreVappConfig": false,
"addToFailoverCluster": false,
"vCloudCatalogName": "string",
"nics": [
{
"destinationNetwork": "string",
"sourceNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vmware": {
"vmwVMInfoList": [
{
"vmGuid": "502968a5-c99c-2fd2-1a95-e901afb4bb82",
"name": "string",
"hostname": "string",
"esxHost": "string",
"resourcePool": "string",
"folder": "/datacenter/vm/foldername",
"vmStoragePolicy": "string",
"datastore": "string",
"disks": [
{
"name": "scsi0-1-TestWin1_2.vmdk",
"datastore": "string"
}
],
"ipAddressSettings": {
"sourceIP": "string",
"sourceSubnetMask": "string",
"sourceDefaultGateway": "string",
"useDhcp": true,
"destinationIP": "string",
"destinationSubnetMask": "string",
"destinationDefaultGateway": "string",
"destinationPreferredDNS": "string",
"destinationAlternateDNS": "string"
},
"networkSettings": {
"sourceNetworkId": "string",
"sourceNetworkName": "string",
"destinationNetworkName": "string",
"destinationNetworkDisplayName": "VM Network"
},
"restoreSourceVMTags": true,
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"vmCustomAttributes": [
{
"name": "string",
"value": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"alibaba": {
"alibabaVMInfoList": [
{
"sourceVMGuid": "i-0xi45ghj1j2w49ta7pz8",
"name": "string",
"availabilityZone": "string",
"instanceType": "string",
"nics": [
{
"name": "string",
"subnetId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"xen": {
"xenVMInfoList": [
{
"sourceVMGuid": "8c95523b-861b-c20c-dff3-419af4514770",
"name": "string",
"destinationHost": "string",
"storageRepository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"fusionCompute": {
"fusionComputeVMInfoList": [
{
"sourceVMGuid": "f7519b4a-70cf-4310-9811-9c1bf6507ebc",
"name": "string",
"destinationHost": "string",
"datastore": "string"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oraclevm": {
"oraclevmInfoList": [
{
"sourceVMGuid": "0004fb0000060000200b586367b873c4",
"name": "string",
"destinationHypervisor": "string",
"repository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azureStackHCI": {
"azureStackHCIVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationAzureStackHCIHost": "Defaults to source VM host",
"destinationFolder": "Defaults to Azure Local default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"proxmox": {
"proxmoxVMInfoList": [
{
"sourceVMGuid": "100_d862bf05-d672-430b-a0b6-295200e30dec",
"newName": "string",
"node": "string",
"storage": "string",
"disks": [
{
"name": "string",
"storage": "string"
}
],
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"diskOption": "ORIGINAL",
"restoreFlavour": "NONE",
"isAttachToNewVM": false,
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VM/:vmGuid/restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"powerOnVmAfterRestore": false,
"overwriteVM": false,
"inPlaceRestore": false,
"backupSource": 2,
"destination": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"accessNodeGroup": {
"id": 0,
"name": "string"
},
"vmDestinationInfo": {
"googleCloud": {
"googleCloudVMInfoList": [
{
"instanceId": "123456789123456",
"name": "Defaults to source VM name",
"projectId": "string",
"zone": "asia-east1-a",
"region": "asia-east1",
"machineType": "c2d-highmem-8",
"createPublicIP": false,
"disks": [
{
"name": "string",
"newName": "string",
"type": "string",
"IOPS": 0,
"throughput": 0
}
],
"networkInterfaces": [
{
"name": "nic0",
"networkName": "default",
"subnetId": "Defaults to source subnet",
"networkId": "Defaults to source network self-link.",
"internalIP": "198.51.100.42",
"externalIP": "198.51.100.42"
}
],
"customMetadata": [
{
"name": "string",
"value": "string"
}
],
"nodeAffinities": [
{
"name": "string",
"value": "string"
}
],
"serviceAccount": {
"id": "string",
"name": "string",
"email": "string"
},
"encryptionKey": "kmsKeyName:projects/projectName/locations/global/keyRings/enc-key/cryptoKeys/enc-key-name",
"keyProtectionLevel": "SOFTWARE"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azure": {
"azureVMInfoList": [
{
"sourceVMGuid": "c1231de123-4309-41be-123123-123abc123",
"name": "Defaults to source VM name",
"targetVMGuid": "string",
"resourceGroup": "Defaults to source VM resource group name",
"region": "For azure region (West US 3) the region value will be westus3",
"availabilityZone": "Defaults to Auto",
"storageAccount": "Defaults to source storage account",
"vmSize": "Standard_A1",
"templateId": "string",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"disks": [
{
"storageAccount": "string",
"type": "string",
"name": "string",
"newName": "string"
}
],
"attachAndSwapOSDisk": false,
"skipOSDisk": false,
"guestCredentialID": {
"id": 0,
"name": "string"
},
"guestUsername": "string",
"guestPassword": "string",
"nics": [
{
"id": "string",
"networkId": "string",
"subnetId": "string",
"privateIpAddress": "198.51.100.42",
"publicIpAddress": "198.51.100.42",
"publicIpAddressId": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"aws": {
"awsInstanceInfoList": [
{
"instanceId": "i-0f90bef70bd90c9e0",
"instanceName": "Defaults to source instance name",
"targetInstanceId": "string",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"tenancy": "default",
"hostId": "string",
"affinity": "default",
"instanceSize": "t2.micro",
"amiId": "ami-02055306b406cf191",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"volumes": [
{
"id": "string",
"name": "string",
"type": "string",
"IOPS": 0,
"Throughput": 0,
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"diskTags": [
{
"name": "string",
"value": "string"
}
]
}
],
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"restoreSourceVolumeTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"nutanix": {
"nutanixVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"name": "string",
"storageContainer": "string",
"nics": [
{
"name": "string",
"networkName": "fb0ff3ad-b95e-43e2-a364-0c2c21931c68",
"destinationNetwork": "string",
"networkDisplayName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"openstack": {
"openstackInstanceInfoList": [
{
"sourceInstanceGuid": "cf6af80d-3275-4885-a405-75c6a991e2be",
"instanceName": "string",
"availabilityZone": "string",
"volumeType": "string",
"flavor": "string",
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"nics": [
{
"networkName": "string",
"networkId": "string",
"subnetId": "string"
}
],
"image": "334b25d3-0963-4d62-a5b9-fe89ff16c8f3"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oci": {
"ociInstanceInfoList": [
{
"instanceOcid": "ocid1.instance.oc1.iad.anuwcwrhn6b7cslfadzjxsj2gq",
"instanceName": "Defaults to source instance name",
"compartmentId": "ocid1.compartment.oc1..aaaaaaaahzr7c2odydamslgzka",
"availabilityDomain": "Defaults to source instance availability domain.",
"region": "Defaults to source instance region.",
"instanceShape": "VM.Standard.E4.Flex",
"createPublicIP": false,
"stagingBucket": "string",
"disks": [
{
"volumeName": "string"
}
],
"nics": [
{
"networkName": "string",
"vcnId": "string",
"subnetId": "string",
"privateIpAddress": "string"
}
],
"instanceTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"hyperv": {
"hyperVVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationHyperVHost": "Defaults to source VM host",
"destinationFolder": "Defaults to HyperV default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vcloud": {
"vCloudVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"vCloudOrgName": "string",
"orgVDCName": "string",
"vAppName": "string",
"vCloudOwner": "string",
"esxHost": "string",
"storagePolicy": "string",
"newName": "string",
"isStandAloneRestore": false,
"restoreVappConfig": false,
"addToFailoverCluster": false,
"vCloudCatalogName": "string",
"nics": [
{
"destinationNetwork": "string",
"sourceNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vmware": {
"vmwVMInfoList": [
{
"vmGuid": "502968a5-c99c-2fd2-1a95-e901afb4bb82",
"name": "string",
"hostname": "string",
"esxHost": "string",
"resourcePool": "string",
"folder": "/datacenter/vm/foldername",
"vmStoragePolicy": "string",
"datastore": "string",
"disks": [
{
"name": "scsi0-1-TestWin1_2.vmdk",
"datastore": "string"
}
],
"ipAddressSettings": {
"sourceIP": "string",
"sourceSubnetMask": "string",
"sourceDefaultGateway": "string",
"useDhcp": true,
"destinationIP": "string",
"destinationSubnetMask": "string",
"destinationDefaultGateway": "string",
"destinationPreferredDNS": "string",
"destinationAlternateDNS": "string"
},
"networkSettings": {
"sourceNetworkId": "string",
"sourceNetworkName": "string",
"destinationNetworkName": "string",
"destinationNetworkDisplayName": "VM Network"
},
"restoreSourceVMTags": true,
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"vmCustomAttributes": [
{
"name": "string",
"value": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"alibaba": {
"alibabaVMInfoList": [
{
"sourceVMGuid": "i-0xi45ghj1j2w49ta7pz8",
"name": "string",
"availabilityZone": "string",
"instanceType": "string",
"nics": [
{
"name": "string",
"subnetId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"xen": {
"xenVMInfoList": [
{
"sourceVMGuid": "8c95523b-861b-c20c-dff3-419af4514770",
"name": "string",
"destinationHost": "string",
"storageRepository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"fusionCompute": {
"fusionComputeVMInfoList": [
{
"sourceVMGuid": "f7519b4a-70cf-4310-9811-9c1bf6507ebc",
"name": "string",
"destinationHost": "string",
"datastore": "string"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oraclevm": {
"oraclevmInfoList": [
{
"sourceVMGuid": "0004fb0000060000200b586367b873c4",
"name": "string",
"destinationHypervisor": "string",
"repository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azureStackHCI": {
"azureStackHCIVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationAzureStackHCIHost": "Defaults to source VM host",
"destinationFolder": "Defaults to Azure Local default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"proxmox": {
"proxmoxVMInfoList": [
{
"sourceVMGuid": "100_d862bf05-d672-430b-a0b6-295200e30dec",
"newName": "string",
"node": "string",
"storage": "string",
"disks": [
{
"name": "string",
"storage": "string"
}
],
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"diskOption": "ORIGINAL",
"restoreFlavour": "NONE",
"isAttachToNewVM": false,
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VM/:vmGuid/restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"powerOnVmAfterRestore": false,
"overwriteVM": false,
"inPlaceRestore": false,
"backupSource": 2,
"destination": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"accessNodeGroup": {
"id": 0,
"name": "string"
},
"vmDestinationInfo": {
"googleCloud": {
"googleCloudVMInfoList": [
{
"instanceId": "123456789123456",
"name": "Defaults to source VM name",
"projectId": "string",
"zone": "asia-east1-a",
"region": "asia-east1",
"machineType": "c2d-highmem-8",
"createPublicIP": false,
"disks": [
{
"name": "string",
"newName": "string",
"type": "string",
"IOPS": 0,
"throughput": 0
}
],
"networkInterfaces": [
{
"name": "nic0",
"networkName": "default",
"subnetId": "Defaults to source subnet",
"networkId": "Defaults to source network self-link.",
"internalIP": "198.51.100.42",
"externalIP": "198.51.100.42"
}
],
"customMetadata": [
{
"name": "string",
"value": "string"
}
],
"nodeAffinities": [
{
"name": "string",
"value": "string"
}
],
"serviceAccount": {
"id": "string",
"name": "string",
"email": "string"
},
"encryptionKey": "kmsKeyName:projects/projectName/locations/global/keyRings/enc-key/cryptoKeys/enc-key-name",
"keyProtectionLevel": "SOFTWARE"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azure": {
"azureVMInfoList": [
{
"sourceVMGuid": "c1231de123-4309-41be-123123-123abc123",
"name": "Defaults to source VM name",
"targetVMGuid": "string",
"resourceGroup": "Defaults to source VM resource group name",
"region": "For azure region (West US 3) the region value will be westus3",
"availabilityZone": "Defaults to Auto",
"storageAccount": "Defaults to source storage account",
"vmSize": "Standard_A1",
"templateId": "string",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"disks": [
{
"storageAccount": "string",
"type": "string",
"name": "string",
"newName": "string"
}
],
"attachAndSwapOSDisk": false,
"skipOSDisk": false,
"guestCredentialID": {
"id": 0,
"name": "string"
},
"guestUsername": "string",
"guestPassword": "string",
"nics": [
{
"id": "string",
"networkId": "string",
"subnetId": "string",
"privateIpAddress": "198.51.100.42",
"publicIpAddress": "198.51.100.42",
"publicIpAddressId": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"aws": {
"awsInstanceInfoList": [
{
"instanceId": "i-0f90bef70bd90c9e0",
"instanceName": "Defaults to source instance name",
"targetInstanceId": "string",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"tenancy": "default",
"hostId": "string",
"affinity": "default",
"instanceSize": "t2.micro",
"amiId": "ami-02055306b406cf191",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"volumes": [
{
"id": "string",
"name": "string",
"type": "string",
"IOPS": 0,
"Throughput": 0,
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"diskTags": [
{
"name": "string",
"value": "string"
}
]
}
],
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"restoreSourceVolumeTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"nutanix": {
"nutanixVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"name": "string",
"storageContainer": "string",
"nics": [
{
"name": "string",
"networkName": "fb0ff3ad-b95e-43e2-a364-0c2c21931c68",
"destinationNetwork": "string",
"networkDisplayName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"openstack": {
"openstackInstanceInfoList": [
{
"sourceInstanceGuid": "cf6af80d-3275-4885-a405-75c6a991e2be",
"instanceName": "string",
"availabilityZone": "string",
"volumeType": "string",
"flavor": "string",
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"nics": [
{
"networkName": "string",
"networkId": "string",
"subnetId": "string"
}
],
"image": "334b25d3-0963-4d62-a5b9-fe89ff16c8f3"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oci": {
"ociInstanceInfoList": [
{
"instanceOcid": "ocid1.instance.oc1.iad.anuwcwrhn6b7cslfadzjxsj2gq",
"instanceName": "Defaults to source instance name",
"compartmentId": "ocid1.compartment.oc1..aaaaaaaahzr7c2odydamslgzka",
"availabilityDomain": "Defaults to source instance availability domain.",
"region": "Defaults to source instance region.",
"instanceShape": "VM.Standard.E4.Flex",
"createPublicIP": false,
"stagingBucket": "string",
"disks": [
{
"volumeName": "string"
}
],
"nics": [
{
"networkName": "string",
"vcnId": "string",
"subnetId": "string",
"privateIpAddress": "string"
}
],
"instanceTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"hyperv": {
"hyperVVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationHyperVHost": "Defaults to source VM host",
"destinationFolder": "Defaults to HyperV default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vcloud": {
"vCloudVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"vCloudOrgName": "string",
"orgVDCName": "string",
"vAppName": "string",
"vCloudOwner": "string",
"esxHost": "string",
"storagePolicy": "string",
"newName": "string",
"isStandAloneRestore": false,
"restoreVappConfig": false,
"addToFailoverCluster": false,
"vCloudCatalogName": "string",
"nics": [
{
"destinationNetwork": "string",
"sourceNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vmware": {
"vmwVMInfoList": [
{
"vmGuid": "502968a5-c99c-2fd2-1a95-e901afb4bb82",
"name": "string",
"hostname": "string",
"esxHost": "string",
"resourcePool": "string",
"folder": "/datacenter/vm/foldername",
"vmStoragePolicy": "string",
"datastore": "string",
"disks": [
{
"name": "scsi0-1-TestWin1_2.vmdk",
"datastore": "string"
}
],
"ipAddressSettings": {
"sourceIP": "string",
"sourceSubnetMask": "string",
"sourceDefaultGateway": "string",
"useDhcp": true,
"destinationIP": "string",
"destinationSubnetMask": "string",
"destinationDefaultGateway": "string",
"destinationPreferredDNS": "string",
"destinationAlternateDNS": "string"
},
"networkSettings": {
"sourceNetworkId": "string",
"sourceNetworkName": "string",
"destinationNetworkName": "string",
"destinationNetworkDisplayName": "VM Network"
},
"restoreSourceVMTags": true,
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"vmCustomAttributes": [
{
"name": "string",
"value": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"alibaba": {
"alibabaVMInfoList": [
{
"sourceVMGuid": "i-0xi45ghj1j2w49ta7pz8",
"name": "string",
"availabilityZone": "string",
"instanceType": "string",
"nics": [
{
"name": "string",
"subnetId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"xen": {
"xenVMInfoList": [
{
"sourceVMGuid": "8c95523b-861b-c20c-dff3-419af4514770",
"name": "string",
"destinationHost": "string",
"storageRepository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"fusionCompute": {
"fusionComputeVMInfoList": [
{
"sourceVMGuid": "f7519b4a-70cf-4310-9811-9c1bf6507ebc",
"name": "string",
"destinationHost": "string",
"datastore": "string"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oraclevm": {
"oraclevmInfoList": [
{
"sourceVMGuid": "0004fb0000060000200b586367b873c4",
"name": "string",
"destinationHypervisor": "string",
"repository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azureStackHCI": {
"azureStackHCIVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationAzureStackHCIHost": "Defaults to source VM host",
"destinationFolder": "Defaults to Azure Local default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"proxmox": {
"proxmoxVMInfoList": [
{
"sourceVMGuid": "100_d862bf05-d672-430b-a0b6-295200e30dec",
"newName": "string",
"node": "string",
"storage": "string",
"disks": [
{
"name": "string",
"storage": "string"
}
],
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"diskOption": "ORIGINAL",
"restoreFlavour": "NONE",
"isAttachToNewVM": false,
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VM/:vmGuid/restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"powerOnVmAfterRestore": false,
"overwriteVM": false,
"inPlaceRestore": false,
"backupSource": 2,
"destination": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"accessNodeGroup": {
"id": 0,
"name": "string"
},
"vmDestinationInfo": {
"googleCloud": {
"googleCloudVMInfoList": [
{
"instanceId": "123456789123456",
"name": "Defaults to source VM name",
"projectId": "string",
"zone": "asia-east1-a",
"region": "asia-east1",
"machineType": "c2d-highmem-8",
"createPublicIP": false,
"disks": [
{
"name": "string",
"newName": "string",
"type": "string",
"IOPS": 0,
"throughput": 0
}
],
"networkInterfaces": [
{
"name": "nic0",
"networkName": "default",
"subnetId": "Defaults to source subnet",
"networkId": "Defaults to source network self-link.",
"internalIP": "198.51.100.42",
"externalIP": "198.51.100.42"
}
],
"customMetadata": [
{
"name": "string",
"value": "string"
}
],
"nodeAffinities": [
{
"name": "string",
"value": "string"
}
],
"serviceAccount": {
"id": "string",
"name": "string",
"email": "string"
},
"encryptionKey": "kmsKeyName:projects/projectName/locations/global/keyRings/enc-key/cryptoKeys/enc-key-name",
"keyProtectionLevel": "SOFTWARE"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azure": {
"azureVMInfoList": [
{
"sourceVMGuid": "c1231de123-4309-41be-123123-123abc123",
"name": "Defaults to source VM name",
"targetVMGuid": "string",
"resourceGroup": "Defaults to source VM resource group name",
"region": "For azure region (West US 3) the region value will be westus3",
"availabilityZone": "Defaults to Auto",
"storageAccount": "Defaults to source storage account",
"vmSize": "Standard_A1",
"templateId": "string",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"disks": [
{
"storageAccount": "string",
"type": "string",
"name": "string",
"newName": "string"
}
],
"attachAndSwapOSDisk": false,
"skipOSDisk": false,
"guestCredentialID": {
"id": 0,
"name": "string"
},
"guestUsername": "string",
"guestPassword": "string",
"nics": [
{
"id": "string",
"networkId": "string",
"subnetId": "string",
"privateIpAddress": "198.51.100.42",
"publicIpAddress": "198.51.100.42",
"publicIpAddressId": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"aws": {
"awsInstanceInfoList": [
{
"instanceId": "i-0f90bef70bd90c9e0",
"instanceName": "Defaults to source instance name",
"targetInstanceId": "string",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"tenancy": "default",
"hostId": "string",
"affinity": "default",
"instanceSize": "t2.micro",
"amiId": "ami-02055306b406cf191",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"volumes": [
{
"id": "string",
"name": "string",
"type": "string",
"IOPS": 0,
"Throughput": 0,
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"diskTags": [
{
"name": "string",
"value": "string"
}
]
}
],
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"restoreSourceVolumeTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"nutanix": {
"nutanixVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"name": "string",
"storageContainer": "string",
"nics": [
{
"name": "string",
"networkName": "fb0ff3ad-b95e-43e2-a364-0c2c21931c68",
"destinationNetwork": "string",
"networkDisplayName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"openstack": {
"openstackInstanceInfoList": [
{
"sourceInstanceGuid": "cf6af80d-3275-4885-a405-75c6a991e2be",
"instanceName": "string",
"availabilityZone": "string",
"volumeType": "string",
"flavor": "string",
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"nics": [
{
"networkName": "string",
"networkId": "string",
"subnetId": "string"
}
],
"image": "334b25d3-0963-4d62-a5b9-fe89ff16c8f3"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oci": {
"ociInstanceInfoList": [
{
"instanceOcid": "ocid1.instance.oc1.iad.anuwcwrhn6b7cslfadzjxsj2gq",
"instanceName": "Defaults to source instance name",
"compartmentId": "ocid1.compartment.oc1..aaaaaaaahzr7c2odydamslgzka",
"availabilityDomain": "Defaults to source instance availability domain.",
"region": "Defaults to source instance region.",
"instanceShape": "VM.Standard.E4.Flex",
"createPublicIP": false,
"stagingBucket": "string",
"disks": [
{
"volumeName": "string"
}
],
"nics": [
{
"networkName": "string",
"vcnId": "string",
"subnetId": "string",
"privateIpAddress": "string"
}
],
"instanceTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"hyperv": {
"hyperVVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationHyperVHost": "Defaults to source VM host",
"destinationFolder": "Defaults to HyperV default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vcloud": {
"vCloudVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"vCloudOrgName": "string",
"orgVDCName": "string",
"vAppName": "string",
"vCloudOwner": "string",
"esxHost": "string",
"storagePolicy": "string",
"newName": "string",
"isStandAloneRestore": false,
"restoreVappConfig": false,
"addToFailoverCluster": false,
"vCloudCatalogName": "string",
"nics": [
{
"destinationNetwork": "string",
"sourceNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vmware": {
"vmwVMInfoList": [
{
"vmGuid": "502968a5-c99c-2fd2-1a95-e901afb4bb82",
"name": "string",
"hostname": "string",
"esxHost": "string",
"resourcePool": "string",
"folder": "/datacenter/vm/foldername",
"vmStoragePolicy": "string",
"datastore": "string",
"disks": [
{
"name": "scsi0-1-TestWin1_2.vmdk",
"datastore": "string"
}
],
"ipAddressSettings": {
"sourceIP": "string",
"sourceSubnetMask": "string",
"sourceDefaultGateway": "string",
"useDhcp": true,
"destinationIP": "string",
"destinationSubnetMask": "string",
"destinationDefaultGateway": "string",
"destinationPreferredDNS": "string",
"destinationAlternateDNS": "string"
},
"networkSettings": {
"sourceNetworkId": "string",
"sourceNetworkName": "string",
"destinationNetworkName": "string",
"destinationNetworkDisplayName": "VM Network"
},
"restoreSourceVMTags": true,
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"vmCustomAttributes": [
{
"name": "string",
"value": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"alibaba": {
"alibabaVMInfoList": [
{
"sourceVMGuid": "i-0xi45ghj1j2w49ta7pz8",
"name": "string",
"availabilityZone": "string",
"instanceType": "string",
"nics": [
{
"name": "string",
"subnetId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"xen": {
"xenVMInfoList": [
{
"sourceVMGuid": "8c95523b-861b-c20c-dff3-419af4514770",
"name": "string",
"destinationHost": "string",
"storageRepository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"fusionCompute": {
"fusionComputeVMInfoList": [
{
"sourceVMGuid": "f7519b4a-70cf-4310-9811-9c1bf6507ebc",
"name": "string",
"destinationHost": "string",
"datastore": "string"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oraclevm": {
"oraclevmInfoList": [
{
"sourceVMGuid": "0004fb0000060000200b586367b873c4",
"name": "string",
"destinationHypervisor": "string",
"repository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azureStackHCI": {
"azureStackHCIVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationAzureStackHCIHost": "Defaults to source VM host",
"destinationFolder": "Defaults to Azure Local default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"proxmox": {
"proxmoxVMInfoList": [
{
"sourceVMGuid": "100_d862bf05-d672-430b-a0b6-295200e30dec",
"newName": "string",
"node": "string",
"storage": "string",
"disks": [
{
"name": "string",
"storage": "string"
}
],
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"diskOption": "ORIGINAL",
"restoreFlavour": "NONE",
"isAttachToNewVM": false,
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VM/:vmGuid/restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"powerOnVmAfterRestore": false,
"overwriteVM": false,
"inPlaceRestore": false,
"backupSource": 2,
"destination": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"accessNodeGroup": {
"id": 0,
"name": "string"
},
"vmDestinationInfo": {
"googleCloud": {
"googleCloudVMInfoList": [
{
"instanceId": "123456789123456",
"name": "Defaults to source VM name",
"projectId": "string",
"zone": "asia-east1-a",
"region": "asia-east1",
"machineType": "c2d-highmem-8",
"createPublicIP": false,
"disks": [
{
"name": "string",
"newName": "string",
"type": "string",
"IOPS": 0,
"throughput": 0
}
],
"networkInterfaces": [
{
"name": "nic0",
"networkName": "default",
"subnetId": "Defaults to source subnet",
"networkId": "Defaults to source network self-link.",
"internalIP": "198.51.100.42",
"externalIP": "198.51.100.42"
}
],
"customMetadata": [
{
"name": "string",
"value": "string"
}
],
"nodeAffinities": [
{
"name": "string",
"value": "string"
}
],
"serviceAccount": {
"id": "string",
"name": "string",
"email": "string"
},
"encryptionKey": "kmsKeyName:projects/projectName/locations/global/keyRings/enc-key/cryptoKeys/enc-key-name",
"keyProtectionLevel": "SOFTWARE"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azure": {
"azureVMInfoList": [
{
"sourceVMGuid": "c1231de123-4309-41be-123123-123abc123",
"name": "Defaults to source VM name",
"targetVMGuid": "string",
"resourceGroup": "Defaults to source VM resource group name",
"region": "For azure region (West US 3) the region value will be westus3",
"availabilityZone": "Defaults to Auto",
"storageAccount": "Defaults to source storage account",
"vmSize": "Standard_A1",
"templateId": "string",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"disks": [
{
"storageAccount": "string",
"type": "string",
"name": "string",
"newName": "string"
}
],
"attachAndSwapOSDisk": false,
"skipOSDisk": false,
"guestCredentialID": {
"id": 0,
"name": "string"
},
"guestUsername": "string",
"guestPassword": "string",
"nics": [
{
"id": "string",
"networkId": "string",
"subnetId": "string",
"privateIpAddress": "198.51.100.42",
"publicIpAddress": "198.51.100.42",
"publicIpAddressId": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"aws": {
"awsInstanceInfoList": [
{
"instanceId": "i-0f90bef70bd90c9e0",
"instanceName": "Defaults to source instance name",
"targetInstanceId": "string",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"tenancy": "default",
"hostId": "string",
"affinity": "default",
"instanceSize": "t2.micro",
"amiId": "ami-02055306b406cf191",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"volumes": [
{
"id": "string",
"name": "string",
"type": "string",
"IOPS": 0,
"Throughput": 0,
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"diskTags": [
{
"name": "string",
"value": "string"
}
]
}
],
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"restoreSourceVolumeTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"nutanix": {
"nutanixVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"name": "string",
"storageContainer": "string",
"nics": [
{
"name": "string",
"networkName": "fb0ff3ad-b95e-43e2-a364-0c2c21931c68",
"destinationNetwork": "string",
"networkDisplayName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"openstack": {
"openstackInstanceInfoList": [
{
"sourceInstanceGuid": "cf6af80d-3275-4885-a405-75c6a991e2be",
"instanceName": "string",
"availabilityZone": "string",
"volumeType": "string",
"flavor": "string",
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"nics": [
{
"networkName": "string",
"networkId": "string",
"subnetId": "string"
}
],
"image": "334b25d3-0963-4d62-a5b9-fe89ff16c8f3"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oci": {
"ociInstanceInfoList": [
{
"instanceOcid": "ocid1.instance.oc1.iad.anuwcwrhn6b7cslfadzjxsj2gq",
"instanceName": "Defaults to source instance name",
"compartmentId": "ocid1.compartment.oc1..aaaaaaaahzr7c2odydamslgzka",
"availabilityDomain": "Defaults to source instance availability domain.",
"region": "Defaults to source instance region.",
"instanceShape": "VM.Standard.E4.Flex",
"createPublicIP": false,
"stagingBucket": "string",
"disks": [
{
"volumeName": "string"
}
],
"nics": [
{
"networkName": "string",
"vcnId": "string",
"subnetId": "string",
"privateIpAddress": "string"
}
],
"instanceTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"hyperv": {
"hyperVVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationHyperVHost": "Defaults to source VM host",
"destinationFolder": "Defaults to HyperV default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vcloud": {
"vCloudVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"vCloudOrgName": "string",
"orgVDCName": "string",
"vAppName": "string",
"vCloudOwner": "string",
"esxHost": "string",
"storagePolicy": "string",
"newName": "string",
"isStandAloneRestore": false,
"restoreVappConfig": false,
"addToFailoverCluster": false,
"vCloudCatalogName": "string",
"nics": [
{
"destinationNetwork": "string",
"sourceNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vmware": {
"vmwVMInfoList": [
{
"vmGuid": "502968a5-c99c-2fd2-1a95-e901afb4bb82",
"name": "string",
"hostname": "string",
"esxHost": "string",
"resourcePool": "string",
"folder": "/datacenter/vm/foldername",
"vmStoragePolicy": "string",
"datastore": "string",
"disks": [
{
"name": "scsi0-1-TestWin1_2.vmdk",
"datastore": "string"
}
],
"ipAddressSettings": {
"sourceIP": "string",
"sourceSubnetMask": "string",
"sourceDefaultGateway": "string",
"useDhcp": true,
"destinationIP": "string",
"destinationSubnetMask": "string",
"destinationDefaultGateway": "string",
"destinationPreferredDNS": "string",
"destinationAlternateDNS": "string"
},
"networkSettings": {
"sourceNetworkId": "string",
"sourceNetworkName": "string",
"destinationNetworkName": "string",
"destinationNetworkDisplayName": "VM Network"
},
"restoreSourceVMTags": true,
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"vmCustomAttributes": [
{
"name": "string",
"value": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"alibaba": {
"alibabaVMInfoList": [
{
"sourceVMGuid": "i-0xi45ghj1j2w49ta7pz8",
"name": "string",
"availabilityZone": "string",
"instanceType": "string",
"nics": [
{
"name": "string",
"subnetId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"xen": {
"xenVMInfoList": [
{
"sourceVMGuid": "8c95523b-861b-c20c-dff3-419af4514770",
"name": "string",
"destinationHost": "string",
"storageRepository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"fusionCompute": {
"fusionComputeVMInfoList": [
{
"sourceVMGuid": "f7519b4a-70cf-4310-9811-9c1bf6507ebc",
"name": "string",
"destinationHost": "string",
"datastore": "string"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oraclevm": {
"oraclevmInfoList": [
{
"sourceVMGuid": "0004fb0000060000200b586367b873c4",
"name": "string",
"destinationHypervisor": "string",
"repository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azureStackHCI": {
"azureStackHCIVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationAzureStackHCIHost": "Defaults to source VM host",
"destinationFolder": "Defaults to Azure Local default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"proxmox": {
"proxmoxVMInfoList": [
{
"sourceVMGuid": "100_d862bf05-d672-430b-a0b6-295200e30dec",
"newName": "string",
"node": "string",
"storage": "string",
"disks": [
{
"name": "string",
"storage": "string"
}
],
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"diskOption": "ORIGINAL",
"restoreFlavour": "NONE",
"isAttachToNewVM": false,
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VM/:vmGuid/restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"powerOnVmAfterRestore": false,
"overwriteVM": false,
"inPlaceRestore": false,
"backupSource": 2,
"destination": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"accessNodeGroup": {
"id": 0,
"name": "string"
},
"vmDestinationInfo": {
"googleCloud": {
"googleCloudVMInfoList": [
{
"instanceId": "123456789123456",
"name": "Defaults to source VM name",
"projectId": "string",
"zone": "asia-east1-a",
"region": "asia-east1",
"machineType": "c2d-highmem-8",
"createPublicIP": false,
"disks": [
{
"name": "string",
"newName": "string",
"type": "string",
"IOPS": 0,
"throughput": 0
}
],
"networkInterfaces": [
{
"name": "nic0",
"networkName": "default",
"subnetId": "Defaults to source subnet",
"networkId": "Defaults to source network self-link.",
"internalIP": "198.51.100.42",
"externalIP": "198.51.100.42"
}
],
"customMetadata": [
{
"name": "string",
"value": "string"
}
],
"nodeAffinities": [
{
"name": "string",
"value": "string"
}
],
"serviceAccount": {
"id": "string",
"name": "string",
"email": "string"
},
"encryptionKey": "kmsKeyName:projects/projectName/locations/global/keyRings/enc-key/cryptoKeys/enc-key-name",
"keyProtectionLevel": "SOFTWARE"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azure": {
"azureVMInfoList": [
{
"sourceVMGuid": "c1231de123-4309-41be-123123-123abc123",
"name": "Defaults to source VM name",
"targetVMGuid": "string",
"resourceGroup": "Defaults to source VM resource group name",
"region": "For azure region (West US 3) the region value will be westus3",
"availabilityZone": "Defaults to Auto",
"storageAccount": "Defaults to source storage account",
"vmSize": "Standard_A1",
"templateId": "string",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"disks": [
{
"storageAccount": "string",
"type": "string",
"name": "string",
"newName": "string"
}
],
"attachAndSwapOSDisk": false,
"skipOSDisk": false,
"guestCredentialID": {
"id": 0,
"name": "string"
},
"guestUsername": "string",
"guestPassword": "string",
"nics": [
{
"id": "string",
"networkId": "string",
"subnetId": "string",
"privateIpAddress": "198.51.100.42",
"publicIpAddress": "198.51.100.42",
"publicIpAddressId": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"aws": {
"awsInstanceInfoList": [
{
"instanceId": "i-0f90bef70bd90c9e0",
"instanceName": "Defaults to source instance name",
"targetInstanceId": "string",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"tenancy": "default",
"hostId": "string",
"affinity": "default",
"instanceSize": "t2.micro",
"amiId": "ami-02055306b406cf191",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"volumes": [
{
"id": "string",
"name": "string",
"type": "string",
"IOPS": 0,
"Throughput": 0,
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"diskTags": [
{
"name": "string",
"value": "string"
}
]
}
],
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"restoreSourceVolumeTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"nutanix": {
"nutanixVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"name": "string",
"storageContainer": "string",
"nics": [
{
"name": "string",
"networkName": "fb0ff3ad-b95e-43e2-a364-0c2c21931c68",
"destinationNetwork": "string",
"networkDisplayName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"openstack": {
"openstackInstanceInfoList": [
{
"sourceInstanceGuid": "cf6af80d-3275-4885-a405-75c6a991e2be",
"instanceName": "string",
"availabilityZone": "string",
"volumeType": "string",
"flavor": "string",
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"nics": [
{
"networkName": "string",
"networkId": "string",
"subnetId": "string"
}
],
"image": "334b25d3-0963-4d62-a5b9-fe89ff16c8f3"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oci": {
"ociInstanceInfoList": [
{
"instanceOcid": "ocid1.instance.oc1.iad.anuwcwrhn6b7cslfadzjxsj2gq",
"instanceName": "Defaults to source instance name",
"compartmentId": "ocid1.compartment.oc1..aaaaaaaahzr7c2odydamslgzka",
"availabilityDomain": "Defaults to source instance availability domain.",
"region": "Defaults to source instance region.",
"instanceShape": "VM.Standard.E4.Flex",
"createPublicIP": false,
"stagingBucket": "string",
"disks": [
{
"volumeName": "string"
}
],
"nics": [
{
"networkName": "string",
"vcnId": "string",
"subnetId": "string",
"privateIpAddress": "string"
}
],
"instanceTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"hyperv": {
"hyperVVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationHyperVHost": "Defaults to source VM host",
"destinationFolder": "Defaults to HyperV default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vcloud": {
"vCloudVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"vCloudOrgName": "string",
"orgVDCName": "string",
"vAppName": "string",
"vCloudOwner": "string",
"esxHost": "string",
"storagePolicy": "string",
"newName": "string",
"isStandAloneRestore": false,
"restoreVappConfig": false,
"addToFailoverCluster": false,
"vCloudCatalogName": "string",
"nics": [
{
"destinationNetwork": "string",
"sourceNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vmware": {
"vmwVMInfoList": [
{
"vmGuid": "502968a5-c99c-2fd2-1a95-e901afb4bb82",
"name": "string",
"hostname": "string",
"esxHost": "string",
"resourcePool": "string",
"folder": "/datacenter/vm/foldername",
"vmStoragePolicy": "string",
"datastore": "string",
"disks": [
{
"name": "scsi0-1-TestWin1_2.vmdk",
"datastore": "string"
}
],
"ipAddressSettings": {
"sourceIP": "string",
"sourceSubnetMask": "string",
"sourceDefaultGateway": "string",
"useDhcp": true,
"destinationIP": "string",
"destinationSubnetMask": "string",
"destinationDefaultGateway": "string",
"destinationPreferredDNS": "string",
"destinationAlternateDNS": "string"
},
"networkSettings": {
"sourceNetworkId": "string",
"sourceNetworkName": "string",
"destinationNetworkName": "string",
"destinationNetworkDisplayName": "VM Network"
},
"restoreSourceVMTags": true,
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"vmCustomAttributes": [
{
"name": "string",
"value": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"alibaba": {
"alibabaVMInfoList": [
{
"sourceVMGuid": "i-0xi45ghj1j2w49ta7pz8",
"name": "string",
"availabilityZone": "string",
"instanceType": "string",
"nics": [
{
"name": "string",
"subnetId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"xen": {
"xenVMInfoList": [
{
"sourceVMGuid": "8c95523b-861b-c20c-dff3-419af4514770",
"name": "string",
"destinationHost": "string",
"storageRepository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"fusionCompute": {
"fusionComputeVMInfoList": [
{
"sourceVMGuid": "f7519b4a-70cf-4310-9811-9c1bf6507ebc",
"name": "string",
"destinationHost": "string",
"datastore": "string"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oraclevm": {
"oraclevmInfoList": [
{
"sourceVMGuid": "0004fb0000060000200b586367b873c4",
"name": "string",
"destinationHypervisor": "string",
"repository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azureStackHCI": {
"azureStackHCIVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationAzureStackHCIHost": "Defaults to source VM host",
"destinationFolder": "Defaults to Azure Local default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"proxmox": {
"proxmoxVMInfoList": [
{
"sourceVMGuid": "100_d862bf05-d672-430b-a0b6-295200e30dec",
"newName": "string",
"node": "string",
"storage": "string",
"disks": [
{
"name": "string",
"storage": "string"
}
],
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"diskOption": "ORIGINAL",
"restoreFlavour": "NONE",
"isAttachToNewVM": false,
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VM/:vmGuid/restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"powerOnVmAfterRestore": false,
"overwriteVM": false,
"inPlaceRestore": false,
"backupSource": 2,
"destination": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"accessNodeGroup": {
"id": 0,
"name": "string"
},
"vmDestinationInfo": {
"googleCloud": {
"googleCloudVMInfoList": [
{
"instanceId": "123456789123456",
"name": "Defaults to source VM name",
"projectId": "string",
"zone": "asia-east1-a",
"region": "asia-east1",
"machineType": "c2d-highmem-8",
"createPublicIP": false,
"disks": [
{
"name": "string",
"newName": "string",
"type": "string",
"IOPS": 0,
"throughput": 0
}
],
"networkInterfaces": [
{
"name": "nic0",
"networkName": "default",
"subnetId": "Defaults to source subnet",
"networkId": "Defaults to source network self-link.",
"internalIP": "198.51.100.42",
"externalIP": "198.51.100.42"
}
],
"customMetadata": [
{
"name": "string",
"value": "string"
}
],
"nodeAffinities": [
{
"name": "string",
"value": "string"
}
],
"serviceAccount": {
"id": "string",
"name": "string",
"email": "string"
},
"encryptionKey": "kmsKeyName:projects/projectName/locations/global/keyRings/enc-key/cryptoKeys/enc-key-name",
"keyProtectionLevel": "SOFTWARE"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azure": {
"azureVMInfoList": [
{
"sourceVMGuid": "c1231de123-4309-41be-123123-123abc123",
"name": "Defaults to source VM name",
"targetVMGuid": "string",
"resourceGroup": "Defaults to source VM resource group name",
"region": "For azure region (West US 3) the region value will be westus3",
"availabilityZone": "Defaults to Auto",
"storageAccount": "Defaults to source storage account",
"vmSize": "Standard_A1",
"templateId": "string",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"disks": [
{
"storageAccount": "string",
"type": "string",
"name": "string",
"newName": "string"
}
],
"attachAndSwapOSDisk": false,
"skipOSDisk": false,
"guestCredentialID": {
"id": 0,
"name": "string"
},
"guestUsername": "string",
"guestPassword": "string",
"nics": [
{
"id": "string",
"networkId": "string",
"subnetId": "string",
"privateIpAddress": "198.51.100.42",
"publicIpAddress": "198.51.100.42",
"publicIpAddressId": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"aws": {
"awsInstanceInfoList": [
{
"instanceId": "i-0f90bef70bd90c9e0",
"instanceName": "Defaults to source instance name",
"targetInstanceId": "string",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"tenancy": "default",
"hostId": "string",
"affinity": "default",
"instanceSize": "t2.micro",
"amiId": "ami-02055306b406cf191",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"volumes": [
{
"id": "string",
"name": "string",
"type": "string",
"IOPS": 0,
"Throughput": 0,
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"diskTags": [
{
"name": "string",
"value": "string"
}
]
}
],
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"restoreSourceVolumeTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"nutanix": {
"nutanixVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"name": "string",
"storageContainer": "string",
"nics": [
{
"name": "string",
"networkName": "fb0ff3ad-b95e-43e2-a364-0c2c21931c68",
"destinationNetwork": "string",
"networkDisplayName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"openstack": {
"openstackInstanceInfoList": [
{
"sourceInstanceGuid": "cf6af80d-3275-4885-a405-75c6a991e2be",
"instanceName": "string",
"availabilityZone": "string",
"volumeType": "string",
"flavor": "string",
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"nics": [
{
"networkName": "string",
"networkId": "string",
"subnetId": "string"
}
],
"image": "334b25d3-0963-4d62-a5b9-fe89ff16c8f3"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oci": {
"ociInstanceInfoList": [
{
"instanceOcid": "ocid1.instance.oc1.iad.anuwcwrhn6b7cslfadzjxsj2gq",
"instanceName": "Defaults to source instance name",
"compartmentId": "ocid1.compartment.oc1..aaaaaaaahzr7c2odydamslgzka",
"availabilityDomain": "Defaults to source instance availability domain.",
"region": "Defaults to source instance region.",
"instanceShape": "VM.Standard.E4.Flex",
"createPublicIP": false,
"stagingBucket": "string",
"disks": [
{
"volumeName": "string"
}
],
"nics": [
{
"networkName": "string",
"vcnId": "string",
"subnetId": "string",
"privateIpAddress": "string"
}
],
"instanceTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"hyperv": {
"hyperVVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationHyperVHost": "Defaults to source VM host",
"destinationFolder": "Defaults to HyperV default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vcloud": {
"vCloudVMInfoList": [
{
"sourceVMGuid": "598af882-7b59-4713-8633-7f3b31f84e7b",
"vCloudOrgName": "string",
"orgVDCName": "string",
"vAppName": "string",
"vCloudOwner": "string",
"esxHost": "string",
"storagePolicy": "string",
"newName": "string",
"isStandAloneRestore": false,
"restoreVappConfig": false,
"addToFailoverCluster": false,
"vCloudCatalogName": "string",
"nics": [
{
"destinationNetwork": "string",
"sourceNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"vmware": {
"vmwVMInfoList": [
{
"vmGuid": "502968a5-c99c-2fd2-1a95-e901afb4bb82",
"name": "string",
"hostname": "string",
"esxHost": "string",
"resourcePool": "string",
"folder": "/datacenter/vm/foldername",
"vmStoragePolicy": "string",
"datastore": "string",
"disks": [
{
"name": "scsi0-1-TestWin1_2.vmdk",
"datastore": "string"
}
],
"ipAddressSettings": {
"sourceIP": "string",
"sourceSubnetMask": "string",
"sourceDefaultGateway": "string",
"useDhcp": true,
"destinationIP": "string",
"destinationSubnetMask": "string",
"destinationDefaultGateway": "string",
"destinationPreferredDNS": "string",
"destinationAlternateDNS": "string"
},
"networkSettings": {
"sourceNetworkId": "string",
"sourceNetworkName": "string",
"destinationNetworkName": "string",
"destinationNetworkDisplayName": "VM Network"
},
"restoreSourceVMTags": true,
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"vmCustomAttributes": [
{
"name": "string",
"value": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"alibaba": {
"alibabaVMInfoList": [
{
"sourceVMGuid": "i-0xi45ghj1j2w49ta7pz8",
"name": "string",
"availabilityZone": "string",
"instanceType": "string",
"nics": [
{
"name": "string",
"subnetId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"xen": {
"xenVMInfoList": [
{
"sourceVMGuid": "8c95523b-861b-c20c-dff3-419af4514770",
"name": "string",
"destinationHost": "string",
"storageRepository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"fusionCompute": {
"fusionComputeVMInfoList": [
{
"sourceVMGuid": "f7519b4a-70cf-4310-9811-9c1bf6507ebc",
"name": "string",
"destinationHost": "string",
"datastore": "string"
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"oraclevm": {
"oraclevmInfoList": [
{
"sourceVMGuid": "0004fb0000060000200b586367b873c4",
"name": "string",
"destinationHypervisor": "string",
"repository": "string",
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string",
"sourceNetworkId": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"azureStackHCI": {
"azureStackHCIVmInfoList": [
{
"vmGuid": "F8DD42FB-2977-4FCA-8FF4-E1CDDE3B9CC6",
"vmName": "Defaults to source VM name",
"datastore": "string",
"destinationAzureStackHCIHost": "Defaults to source VM host",
"destinationFolder": "Defaults to Azure Local default folder for OOP restore and defaults to source VM folder for in-place restore",
"networkAdapter": "Defaults to source VM network adapter if available else '\''Not Connected'\''",
"disks": [
{
"diskName": "string",
"diskDestinationPath": "string"
}
],
"nics": [
{
"networkName": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
},
"proxmox": {
"proxmoxVMInfoList": [
{
"sourceVMGuid": "100_d862bf05-d672-430b-a0b6-295200e30dec",
"newName": "string",
"node": "string",
"storage": "string",
"disks": [
{
"name": "string",
"storage": "string"
}
],
"nics": [
{
"sourceNetwork": "string",
"destinationNetwork": "string"
}
]
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"diskOption": "ORIGINAL",
"restoreFlavour": "NONE",
"isAttachToNewVM": false,
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'