RecoveryLocations

The /RecoveryLocations resource collection represents all recovery locations configured in Orchestrator. The collection includes resources that represent individual recovery locations and have specific system IDs.

NOTE
The range of data available in the Orchestrator REST API depends on permissions of the account used to access the API.

Get Collection of Recovery Locations

The HTTP GET request to the /RecoveryLocations endpoint retrieves a list of all configured recovery locations in Orchestrator.

SecurityuserAuth
Request
query Parameters
start
integer <int32> [ 0 .. 2147483647 ]

Excludes the first N items of a resource collection from the response.

limit
integer <int32> [ 0 .. 2147483647 ]

Specifies the maximum number of items of a resource collection to return in a response. If the value is 0, the response will include all items.

Array of objects (Expression)
Deprecated

Obsolete parameter. Use the actionFilters parameter instead.

Array of objects (SortQuery)

Defines the order of items of a resource collection in the response. To learn how to use the sort parameter, see the Veeam Recovery Orchestrator REST API Reference, section Sort Parameter.

Array of objects (Expression)

Returns only specific items of a resource collection in the response. To learn how to use the actionFilters parameter, see the Veeam Recovery Orchestrator REST API Reference, section ActionFilters Parameter.

search
string

Returns only items of a resource collection that contain the specified value in at least one the searchable fields. The search is case-insensitive and also returns partial matches.

Responses
200

OK

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

get/api/v13.2/RecoveryLocations
Request samples
Response samples
application/json
{
  • "total": 1,
  • "data": [
    ]
}

Get VMware vSphere Recovery Location Data

The HTTP GET request to the /RecoveryLocations/Restore/{id} endpoint retrieves a representation of a VMware vSphere recovery location with the specified ID.

SecurityuserAuth
Request
path Parameters
id
required
string <uuid>

System ID assigned to a recovery location.

Responses
200

OK

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

get/api/v13.2/RecoveryLocations/Restore/{id}
Request samples
Response samples
application/json
{
  • "computeGroups": [
    ],
  • "reIpRules": [
    ],
  • "vCenterNetworkMappingRules": [
    ],
  • "cpuPressureThreshold": 1,
  • "storagePressureThreshold": 1,
  • "instantVmRecovery": true,
  • "vbrServerId": "df630c31-4780-4e73-b434-6cf202d154be",
  • "repositoryRules": [
    ],
  • "backupLocation": "Any",
  • "enforceDataSovereignty": true,
  • "storageGroups": [
    ],
  • "physicalNetworkMappingRules": [
    ],
  • "id": "4862e7c9-2125-463a-b095-f87857cbcdd8",
  • "type": "Restore",
  • "name": "Dept01 RL",
  • "description": "Recovery location for dept01 VMs",
  • "isOriginal": false
}

Get Storage Recovery Location Data

The HTTP GET request to the /RecoveryLocations/Storage/{id} endpoint retrieves a representation of a storage recovery location with the specified ID.

SecurityuserAuth
Request
path Parameters
id
required
string <uuid>

System ID assigned to a recovery location.

Responses
200

OK

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

get/api/v13.2/RecoveryLocations/Storage/{id}
Request samples
Response samples
application/json
{
  • "computeGroups": [
    ],
  • "reIpRules": [
    ],
  • "networkMappingRules": [
    ],
  • "vendor": "NetApp",
  • "vCenterId": "a1b2c3d4-e5f6-4780-1234-56789abcdef0",
  • "vCenterName": "vcenter1.test.local",
  • "datacenterId": "12345678-90ab-cdef-1234-567890abcdef",
  • "datacenterName": "Datacenter1",
  • "storageSystems": [
    ],
  • "id": "4862e7c9-2125-463a-b095-f87857cbcdd8",
  • "type": "Storage",
  • "name": "Dept01 RL",
  • "description": "Recovery location for dept01 VMs",
  • "isOriginal": false
}

Get Microsoft Azure Recovery Location Data

The HTTP GET request to the /RecoveryLocations/Azure/{id} endpoint retrieves a representation of a Microsoft Azure recovery location with the specified ID.

SecurityuserAuth
Request
path Parameters
id
required
string <uuid>

System ID assigned to a recovery location.

Responses
200

OK

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

get/api/v13.2/RecoveryLocations/Azure/{id}
Request samples
Response samples
application/json
{
  • "backupLocation": "Any",
  • "vbrServerId": "df630c31-4780-4e73-b434-6cf202d154be",
  • "computeAccountId": "aabbccdd-eeff-0011-2233-445566778899",
  • "subscriptionId": "11223344-5566-7788-99aa-bbccddeeff00",
  • "regionType": "Global",
  • "regionId": "99887766-5544-3322-1100-ffeeddccbbaa",
  • "resourceGroupId": "66778899-aabb-ccdd-eeff-001122334455",
  • "hardwareRules": [
    ],
  • "repositoryRules": [
    ],
  • "proxyIds": [
    ],
  • "virtualNetworkMappingRules": [
    ],
  • "physicalNetworkMappingRules": [
    ],
  • "hyperVNetworkMappingRules": [
    ],
  • "isolatedNetworkId": "12344321-4321-4321-4321-123443211234",
  • "isolatedSubnetId": "abcddcba-dcba-dcba-dcba-abcddcbaabcd",
  • "id": "4862e7c9-2125-463a-b095-f87857cbcdd8",
  • "type": "Cloud",
  • "name": "Dept01 RL",
  • "description": "Recovery location for dept01 VMs",
  • "isOriginal": false
}

Get Microsoft Hyper-V Recovery Location Data

The HTTP GET request to the /RecoveryLocations/HyperV/{id} endpoint retrieves a representation of a Microsoft Hyper-V recovery location with the specified ID.

SecurityuserAuth
Request
path Parameters
id
required
string <uuid>

System ID assigned to a recovery location.

Responses
200

OK

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

get/api/v13.2/RecoveryLocations/HyperV/{id}
Request samples
Response samples
application/json
{
  • "backupLocation": "Any",
  • "enforceDataSovereignty": true,
  • "instantVmRecovery": true,
  • "scVmmId": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  • "scVmmName": "scvmm1.test.local",
  • "clusterId": "b1c2d3e4-6789-0abc-def1-234567890abc",
  • "clusterName": "cluster1",
  • "storages": [
    ],
  • "vmNetworkMappingRules": [
    ],
  • "hyperVNetworkMappingRules": [
    ],
  • "hvConnectionType": "ScVmm",
  • "vbrServerId": "df630c31-4780-4e73-b434-6cf202d154be",
  • "repositoryRules": [
    ],
  • "hostStoragePaths": null,
  • "id": "4862e7c9-2125-463a-b095-f87857cbcdd8",
  • "type": "HyperV",
  • "name": "Dept01 RL",
  • "description": "Recovery location for dept01 VMs",
  • "isOriginal": false
}

Create Recovery Location for Standalone Hyper-V Host

The HTTP POST request to the /RecoveryLocations/HyperV/DirectHost endpoint creates a new Microsoft Hyper-V recovery location for restoring VMware or Hyper-V VMs to a standalone Hyper-V host.

SecurityuserAuth
Request
Request Body schema: application/json
directHostId
required
string <uuid>

System ID assigned to a Microsoft Hyper-V host that is used as a recovery location.

hostStoragePaths
required
Array of strings or null

Paths to folders on the Microsoft Hyper-V host where recovered VMs will be stored.

name
required
string or null

Name of the recovery location.

required
object (DirectHostVmNetworkMappingRuleInfo)
description
string or null

Description of the recovery location.

backupLocation
string

Restore point source.

Enum: "Any" "Primary" "BackupCopies" "SobrCapacityTier" "Unknown"
enforceDataSovereignty
boolean

Defines whether VMs will be recovered across different locations in the Veeam Backup & Replication server when running recovery plans.

instantVmRecovery
boolean

Defines whether all processed VMs will be restored using the Instant VM Recovery feature.

Responses
200

OK

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

post/api/v13.2/RecoveryLocations/HyperV/DirectHost
Request samples
application/json
{
  • "name": "string",
  • "description": "string",
  • "directHostId": "7f7162b6-a88b-4262-a0ca-d5554c9dfaaa",
  • "vmNetworkMappingRule": {
    },
  • "backupLocation": "Any",
  • "enforceDataSovereignty": true,
  • "instantVmRecovery": true,
  • "hostStoragePaths": [
    ]
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

Create Restore Recovery Location

The HTTP POST request to the /RecoveryLocations/Restore creates a restore recovery location and returns its system ID.

SecurityuserAuth
Request
Request Body schema: application/json
computeGroupIds
required
Array of strings or null <uuid>

System IDs assigned to compute resource groups used in the recovery location. Specify at least one group to proceed.

name
required
string or null

Name of a recovery location.

storageGroupIds
required
Array of strings or null <uuid>

System IDs assigned to storage resource groups used in the recovery location. Specify at least one group to proceed.

storagePressureThreshold
required
integer <int32> [ 1 .. 100 ]

Datastore capacity level (in percent).

description
string or null

Description of the recovery location.

instantVmRecovery
boolean

Defines whether Instant VM Recovery is enabled for the recovery location.

enforceDataSovereignty
boolean

Defines whether data sovereignty is enforced for the recovery location.

backupLocation
string

Restore point source.

Enum: "Any" "Primary" "BackupCopies" "SobrCapacityTier" "Unknown"
vbrServerId
string or null <uuid>

System ID assigned to a backup server specified for the recovery location.

backupRepositoryIds
Array of strings or null <uuid>

System IDs assigned to backup repositories specified for the recovery location.

Array of objects or null (RecoveryReIpRuleInfo)

Re-IP rules specified for the recovery location.

Array of objects or null (NetworkMappingRuleCreateInfo)

Virtual network mapping rules configured for the recovery location. Specify at least one network mapping rule (of any type) to proceed.

Array of objects or null (PhysicalNetworkMappingRuleCreateInfo)

Physical network mapping rules configured for the recovery location. Specify at least one network mapping rule (of any type) to proceed.

Responses
200

OK

400

Bad request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

post/api/v13.2/RecoveryLocations/Restore
Request samples
application/json
{
  • "name": "Restore Location",
  • "description": "Created via public API",
  • "computeGroupIds": [
    ],
  • "storageGroupIds": [
    ],
  • "storagePressureThreshold": 80,
  • "instantVmRecovery": false,
  • "enforceDataSovereignty": false,
  • "backupLocation": "Any",
  • "vbrServerId": null,
  • "backupRepositoryIds": null,
  • "reIpRules": null,
  • "vCenterNetworkMappingRules": [
    ],
  • "physicalNetworkMappingRules": null
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

Create Storage Recovery Location

The HTTP POST request /RecoveryLocations/Storage creates a storage recovery location and returns its system ID.

SecurityuserAuth
Request
Request Body schema: application/json
computeGroupIds
required
Array of strings or null <uuid>

System IDs assigned to compute resource groups specified for the recovery location. You must specify at least one ID to proceed.

datacenterId
required
string <uuid>

System ID assigned to a datacenter specified for the recovery location.

name
required
string or null

Name of a recovery location.

storageSystemIds
required
Array of strings or null <uuid>

System IDs assigned to storage systems used in the recovery location. Orchestrator will process the systems in the order you specify them. You must specify at least one system to proceed.

vCenterId
required
string <uuid>

System ID assigned to a vCenter Server specified for the recovery location.

vendor
required
string

Vendor of storage systems included in the storage recovery location.

Enum: "NetApp" "HPE" "Unknown"
description
string or null

Description of the recovery location.

Array of objects or null (RecoveryReIpRuleInfo)

Re-IP rules specified for the recovery location.

Array of objects or null (NetworkMappingRuleCreateInfo)

Virtual network mapping rules configured for the recovery location.

Responses
200

OK

400

Bad request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

post/api/v13.2/RecoveryLocations/Storage
Request samples
application/json
{
  • "name": "Storage Location",
  • "description": "Created via public API",
  • "vendor": "NetApp",
  • "vCenterId": "3c447118-4146-4b40-b93a-3d6c43124418",
  • "datacenterId": "4a447118-4146-4b40-b93a-3d6c43124418",
  • "computeGroupIds": [
    ],
  • "storageSystemIds": [
    ],
  • "reIpRules": null,
  • "networkMappingRules": [
    ]
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

Create Hyper-V Recovery Location

The HTTP POST request /RecoveryLocations/HyperV creates a Hyper-V recovery location for a standalone or SCVMM-managed cluster and returns its system ID. To create a recovery location for a standalone Microsoft Hyper-V host, use the /RecoveryLocations/HyperV/DirectHost endpoint.

SecurityuserAuth
Request
Request Body schema: application/json
clusterId
required
string <uuid>

System ID assigned to a Microsoft Hyper-V cluster specified for the recovery location.

hvConnectionType
required
string

Type of the Microsoft Hyper-V connection. The supported values are Cluster and ScVmm.

Enum: "ScVmm" "Cluster" "DirectHost"
name
required
string or null

Name of a recovery location.

storageIds
required
Array of strings or null <uuid> non-empty

System IDs assigned to CSV disks used in the recovery location. Specify at least one ID to proceed.

description
string or null

Description of the recovery location.

scVmmId
string or null <uuid>

System ID assigned to an SCVMM server that manages the cluster.

backupLocation
string

Restore point source.

Enum: "Any" "Primary" "BackupCopies" "SobrCapacityTier" "Unknown"
enforceDataSovereignty
boolean

Defines whether data sovereignty is enforced for the recovery location.

instantVmRecovery
boolean

Defines whether Instant VM Recovery is enabled for the recovery location.

vbrServerId
string or null <uuid>

System ID assigned to a backup server specified for the recovery location.

backupRepositoryIds
Array of strings or null <uuid>

System IDs assigned to backup repositories specified for the recovery location.

hostStoragePaths
Array of strings or null

Paths to storage folders on the cluster hosts where recovered VM will be stored.

Array of objects or null (NetworkMappingRuleCreateInfo)

Network mapping rules for vSphere VMs. Specify at least one network mapping rule (of any type) to proceed.

Array of objects or null (NetworkMappingRuleCreateInfo)

Network mapping rules for Hyper-V VMs. Specify at least one network mapping rule (of any type) to proceed.

Responses
200

OK

400

Bad request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

post/api/v13.2/RecoveryLocations/HyperV
Request samples
application/json
{
  • "name": "Hyper-V Location",
  • "description": "Created via public API",
  • "hvConnectionType": "Cluster",
  • "clusterId": "6a447118-4146-4b40-b93a-3d6c43124418",
  • "scVmmId": null,
  • "backupLocation": "Any",
  • "enforceDataSovereignty": false,
  • "instantVmRecovery": false,
  • "vbrServerId": null,
  • "backupRepositoryIds": null,
  • "hostStoragePaths": [
    ],
  • "storageIds": [
    ],
  • "vmNetworkMappingRules": [
    ],
  • "hyperVNetworkMappingRules": null
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

Create Microsoft Azure Recovery Location

The HTTP POST request to the /RecoveryLocations/Azure endpoint creates a Microsoft Azure recovery location and returns its system ID.

SecurityuserAuth
Request
Request Body schema: application/json
computeAccountId
required
string <uuid>

System ID assigned to a Microsoft Azure compute account specified for the recovery location.

required
Array of objects or null (AzureHardwareRuleCreateInfo) non-empty

Hardware configuration rules for recovered VMs. Orchestrator will process the rules in the order you specify them. Specify at least one rule to proceed.

name
required
string or null

Name of the recovery location.

regionId
required
string <uuid>

System ID assigned to a Microsoft Azure region specified for the recovery location.

resourceGroupId
required
string <uuid>

System ID assigned to a Microsoft Azure resource group specified for the recovery location.

subscriptionId
required
string <uuid>

System ID assigned to a Microsoft Azure subscription specified for the recovery location.

vbrServerId
required
string <uuid>

System ID assigned to a backup server specified for the recovery location.

description
string or null

Description of the recovery location.

backupLocation
string

Restore point source.

Enum: "Any" "Primary" "BackupCopies" "SobrCapacityTier" "Unknown"
regionType
string

Type of the Microsoft Azure region.

Enum: "Global" "Germany" "China" "Government" "Unknown"
backupRepositoryIds
Array of strings or null <uuid>

System IDs assigned to backup repositories specified for the recovery location.

proxyIds
Array of strings or null <uuid>

System IDs assigned to the Microsoft Azure proxies specified for the recovery location.

Array of objects or null (AzureNetworkMappingRuleCreateInfo)

Information on network mapping rules configured for vSphere VMs. Specify at least one network mapping rule (of any type) to proceed.

Array of objects or null (AzurePhysicalNetworkMappingRuleCreateInfo)

Information on network mapping rules configured for Veeam agents. Specify at least one network mapping rule (of any type) to proceed.

Array of objects or null (AzureNetworkMappingRuleCreateInfo)

Information on network mapping rules configured for Hyper-V VMs. Specify at least one network mapping rule (of any type) to proceed.

isolatedNetworkId
string or null <uuid>

[Required if the isolatedSubnetId property is specified] System ID assigned to an isolated Microsoft Azure virtual network used for testing.

isolatedSubnetId
string or null <uuid>

[Required if the isolatedNetworkId property is specified] System ID assigned to an isolated Microsoft Azure subnet used for testing.

Responses
200

OK

400

Bad request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

post/api/v13.2/RecoveryLocations/Azure
Request samples
application/json
{
  • "name": "Azure Location",
  • "description": "Created via public API",
  • "backupLocation": "Any",
  • "vbrServerId": "1c447118-4146-4b40-b93a-3d6c43124418",
  • "computeAccountId": "2c447118-4146-4b40-b93a-3d6c43124418",
  • "subscriptionId": "3c447118-4146-4b40-b93a-3d6c43124418",
  • "regionType": "Global",
  • "regionId": "4c447118-4146-4b40-b93a-3d6c43124418",
  • "resourceGroupId": "5c447118-4146-4b40-b93a-3d6c43124418",
  • "hardwareRules": [
    ],
  • "backupRepositoryIds": null,
  • "proxyIds": null,
  • "virtualNetworkMappingRules": [
    ],
  • "physicalNetworkMappingRules": null,
  • "hyperVNetworkMappingRules": null,
  • "isolatedNetworkId": null,
  • "isolatedSubnetId": null
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}

Delete Recovery Location

The HTTP DELETE request to the /RecoveryLocations/{id} endpoint deletes a recovery location with the specified ID.

SecurityuserAuth
Request
path Parameters
id
required
string <uuid>

System ID assigned to a recovery location.

Responses
204

No Content

401

Unauthorized request. The authorization header has been expected but not found (or found but expired).

500

Internal server error.

delete/api/v13.2/RecoveryLocations/{id}
Request samples