VMGroup Restore Operation
Select
To restore the virtual machines in vmgroup
Path Parameters
- VmGroupId int32 required
Id of the VMgroup 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
- 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
- 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/vmgroup/:vmgroupid/restore
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VmGroup/:VmGroupId/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,
"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",
"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",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"nics": [
{
"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",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"instanceSize": "t2.micro",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"restoreFlavour": "NONE",
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VmGroup/:VmGroupId/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,
"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",
"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",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"nics": [
{
"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",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"instanceSize": "t2.micro",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"restoreFlavour": "NONE",
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VmGroup/:VmGroupId/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,
"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",
"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",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"nics": [
{
"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",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"instanceSize": "t2.micro",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"restoreFlavour": "NONE",
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VmGroup/:VmGroupId/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,
"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",
"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",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"nics": [
{
"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",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"instanceSize": "t2.micro",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"restoreFlavour": "NONE",
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VmGroup/:VmGroupId/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,
"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",
"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",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"nics": [
{
"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",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"instanceSize": "t2.micro",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"restoreFlavour": "NONE",
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VmGroup/:VmGroupId/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,
"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",
"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",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"nics": [
{
"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",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"instanceSize": "t2.micro",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"restoreFlavour": "NONE",
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VmGroup/:VmGroupId/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,
"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",
"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",
"diskType": "Standard_LRS",
"createPublicIP": false,
"restoreAsManagedVM": true,
"securityGroupId": "Defaults to source configuration",
"diskEncryptionSetTypeId": "string",
"diskEncryptionSetId": "string",
"nics": [
{
"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",
"zone": "Defaults to source instance availability zone.",
"region": "string",
"instanceSize": "t2.micro",
"volumeType": "string",
"encryptionKey": {
"isEncrypted": true,
"encryptionKey": "string",
"diskEncryptionSetId": "string",
"diskEncryptionSetTypeId": "string"
},
"nics": [
{
"vpcId": "string",
"networkName": "string",
"subnetId": "string",
"eniId": "string"
}
],
"securityGroups": [
{
"groupId": "string",
"groupName": "string"
}
],
"vmTags": [
{
"name": "string",
"value": "string"
}
],
"restoreSourceVMTags": true,
"keyPairs": [
{
"keyId": "string",
"keyName": "string"
}
],
"restoreSourceNetworkConfig": true
}
],
"namePrefix": "string",
"nameSuffix": "string"
}
},
"transportMode": "Auto",
"restoreFlavour": "NONE",
"notifyOnJobCompletion": false,
"reuseVMClient": true
}'