Virtual Network Backup Policies

The /policies/vnet resource collection represents virtual network configuration backup policies configured in Veeam Backup for Microsoft Azure.

Get Collection of VNet Backup Policies

The HTTP GET request to the /policies/vnet endpoint retrieves a list of Virtual Network backup policies configured in Veeam Backup for Microsoft Azure.

SecurityBearer
Request
query Parameters
PolicyName
string or null

Returns a backup policy with the specified name.

LastJobStatus
Array of strings or null (JobStatus)

Returns only backup policies with the specified status of the latest session.

Enum: "Canceled" "Canceling" "Error" "NeverExecuted" "Running" "RunningWithError" "RunningWithWarning" "Success" "Warning" "Pending" "Unknown"
PolicyStatus
Array of strings or null (PolicyStatus)

Returns only backup policies with the specified status.

Enum: "Enabled" "Disabled" "Unknown"
RepositoryId
string or null

Returns only backup policies that store backup files in a repository with the specified ID.

Offset
integer <int32> >= 0

Specifies the first N items of a resource collection that will be excluded from the response.

Limit
integer <int32> >= -1

Specifies the maximum number of items of a resource collection that will be returned in the response.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

get/api/v10/policies/vnet
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Create VNet Backup Policy

The HTTP POST request to the /policies/vnet endpoint creates a new Virtual Network backup policy.

SecurityBearer
Request
Request Body schema: application/json
required
backupType
required
string or null (BackupTypeNullable)

Defines whether you want to include to the backup scope all resources residing in the specified Azure regions and to which the specified service account has access.

Enum: "AllSubscriptions" "SelectedItems" "Unknown"
isEnabled
required
boolean or null

Defines whether to enable the policy.

name
required
string [ 1 .. 255 ] characters

Specifies a name for the backup policy.

tenantId
required
string

Specifies a Microsoft Azure ID assigned to a tenant with which the service account used to protect Azure resources is associated.

serviceAccountId
required
string <uuid>

Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to a service account whose permissions will be used to perform Virtual Network backup.

object or null (VirtualNetworkPolicyBackupItemsFromClient)

Specifies information on Azure resources to protect by the backup policy.

object or null (VirtualNetworkPolicyExcludedItemsFromClient)

Specifies information on Azure resources to exclude from the backup policy scope.

description
string or null

Specifies a description for the backup policy.

object or null (RetrySettings)

Specifies the retry settings for the backup policy.

object or null (PolicyNotificationSettings)

Specifies the notification settings for the backup policy.

targetRepositoryId
string or null

System ID assigned to the repository in the Veeam Backup for Microsoft Azure REST API.

slaPolicyTemplateId
string <uuid>

System ID assigned in the Veeam Backup for Microsoft Azure REST API to the SLA template assigned to the policy.

Responses
201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

415

Client Error

post/api/v10/policies/vnet
Request samples
application/json
{
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "selectedItems": {
    },
  • "excludedItems": {
    },
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "isEnabled": true,
  • "backupType": "AllSubscriptions",
  • "targetRepositoryId": "string",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1"
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "priority": 0,
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "snapshotStatus": "Canceled",
  • "backupStatus": "Canceled",
  • "healthCheckStatus": "Canceled",
  • "nextExecutionTime": "2019-08-24T14:15:22Z",
  • "isArchiveBackupConfigured": true,
  • "_links": {},
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "isEnabled": true,
  • "backupType": "AllSubscriptions",
  • "targetRepositoryId": "string",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1"
}

Get SLA Compliance Information

The HTTP GET request to the /policies/vnet/slaReport endpoint retrieves a list of Virtual Network backup policies configured in Veeam Backup for Microsoft Azure and their SLA compliance information.

SecurityBearer
Request
query Parameters
PolicyName
string or null

Returns a backup policy with the specified name.

Offset
integer <int32> >= 0

Specifies the first N items of a resource collection that will be excluded from the response.

Limit
integer <int32> >= -1

Specifies the maximum number of items of a resource collection that will be returned in the response.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

get/api/v10/policies/vnet/slaReport
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Get Backup Policy Data

The HTTP GET request to the /policies/vnet/{policyId} endpoint retrieves information on a Virtual Network backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

get/api/v10/policies/vnet/{policyId}
Request samples
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "priority": 0,
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "snapshotStatus": "Canceled",
  • "backupStatus": "Canceled",
  • "healthCheckStatus": "Canceled",
  • "nextExecutionTime": "2019-08-24T14:15:22Z",
  • "isArchiveBackupConfigured": true,
  • "_links": {},
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "isEnabled": true,
  • "backupType": "AllSubscriptions",
  • "targetRepositoryId": "string",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1"
}

Modify Backup Policy

The HTTP PUT request to the /policies/vnet/{policyId} endpoint updates settings of a Virtual Network backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

Request Body schema: application/json
required
backupType
required
string or null (BackupTypeNullable)

Defines whether you want to include to the backup scope all resources residing in the specified Azure regions and to which the specified service account has access.

Enum: "AllSubscriptions" "SelectedItems" "Unknown"
isEnabled
required
boolean or null

Defines whether to enable the policy.

name
required
string [ 1 .. 255 ] characters

Specifies a name for the backup policy.

tenantId
string or null

Specifies a Microsoft Azure ID assigned to a tenant to which the protected Azure resources belong.

serviceAccountId
string or null <uuid>

Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to the service account whose permissions will be used to create backups of Virtual Network items.

object or null (VirtualNetworkPolicyBackupItemsFromClient)

Specifies information on Azure resources to protect by the backup policy.

object or null (VirtualNetworkPolicyExcludedItemsFromClient)

Specifies information on Azure resources to exclude from the backup policy scope.

description
string or null

Specifies a description for the backup policy.

object or null (RetrySettings)

Specifies the retry settings for the backup policy.

object or null (PolicyNotificationSettings)

Specifies the notification settings for the backup policy.

targetRepositoryId
string or null

System ID assigned to the repository in the Veeam Backup for Microsoft Azure REST API.

slaPolicyTemplateId
string <uuid>

System ID assigned in the Veeam Backup for Microsoft Azure REST API to the SLA template assigned to the policy.

Responses
200

OK

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

415

Client Error

put/api/v10/policies/vnet/{policyId}
Request samples
application/json
{
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "selectedItems": {
    },
  • "excludedItems": {
    },
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "isEnabled": true,
  • "backupType": "AllSubscriptions",
  • "targetRepositoryId": "string",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1"
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "priority": 0,
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "snapshotStatus": "Canceled",
  • "backupStatus": "Canceled",
  • "healthCheckStatus": "Canceled",
  • "nextExecutionTime": "2019-08-24T14:15:22Z",
  • "isArchiveBackupConfigured": true,
  • "_links": {},
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "isEnabled": true,
  • "backupType": "AllSubscriptions",
  • "targetRepositoryId": "string",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1"
}

Remove Backup Policy

The HTTP DELETE request to the /policies/vnet/{policyId} endpoint deletes a specific Virtual Network backup policy from the Veeam Backup for Microsoft Azure configuration database.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict

delete/api/v10/policies/vnet/{policyId}
Request samples
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Get Resources Selected for Backup Policy

The HTTP GET request to the /policies/vnet/{policyId}/selectedItems endpoint retrieves information on resources protected by a Virtual Network backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

query Parameters
Offset
integer <int32> >= 0

Specifies the first N items of a resource collection that will be excluded from the response.

Limit
integer <int32> >= -1

Specifies the maximum number of items of a resource collection that will be returned in the response.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

get/api/v10/policies/vnet/{policyId}/selectedItems
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Get Resources Excluded from Backup Policy

The HTTP GET request to the /policies/vnet/{policyId}/excludedItems endpoint retrieves information on resources excluded from the Virtual Network backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

query Parameters
Offset
integer <int32> >= 0

Specifies the first N items of a resource collection that will be excluded from the response.

Limit
integer <int32> >= -1

Specifies the maximum number of items of a resource collection that will be returned in the response.

NameSearchPattern
string or null

Returns only those items of a resource collection whose names match the specified search pattern in the parameter value.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

get/api/v10/policies/vnet/{policyId}/excludedItems
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Get Resources Protected by Backup Policy

The HTTP GET request to the /policies/vnet/{policyId}/protectedItems endpoint retrieves a list of Virtual Network items protected by a backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

query Parameters
Offset
integer <int32> >= 0

Specifies the first N items of a resource collection that will be excluded from the response.

Limit
integer <int32> >= -1

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

Responses
200

OK

401

Unauthorized

403

Forbidden

get/api/v10/policies/vnet/{policyId}/protectedItems
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Set Backup Policy Priority

The HTTP POST request to the /policies/vnet/orderPriorities endpoint sets the priority order for Virtual Network backup policies.

SecurityBearer
Request
Request Body schema: application/json
Array
string <uuid>

Specifies system IDs assigned in the Veeam Backup for Microsoft Azure REST API to backup policies in the specified order.

Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

415

Client Error

post/api/v10/policies/vnet/orderPriorities
Request samples
application/json
[
  • "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Enable Backup Policy

The HTTP POST request to the /policies/vnet/{policyId}/enable endpoint enables a disabled Virtual Network backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

post/api/v10/policies/vnet/{policyId}/enable
Request samples
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Disable Backup Policy

The HTTP POST request to the /policies/vnet/{policyId}/disable endpoint disables an enabled Virtual Network backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

post/api/v10/policies/vnet/{policyId}/disable
Request samples
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Start Backup Policy

The HTTP POST request to the /policies/vnet/{policyId}/start endpoint launches a Virtual Network backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

Responses
202

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict

post/api/v10/policies/vnet/{policyId}/start
Request samples
Response samples
application/json
[
  • {
    }
]

Stop Backup Policy

The HTTP POST request to the /policies/vnet/{policyId}/stop endpoint stops execution of a Virtual Network backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to a backup policy in the Veeam Backup for Microsoft Azure REST API.

Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

post/api/v10/policies/vnet/{policyId}/stop
Request samples
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Export Backup Policies

The HTTP POST request to the /policies/vnet/export endpoint exports a list of Virtual Network backup policies created in Veeam Backup for Microsoft Azure to a .CSV or an .XML file.

SecurityBearer
Request
header Parameters
Accept
string or null

Specifies a media type of representation of the exported data. The default value is text/csv media type.

Request Body schema: application/json
policyIds
Array of strings or null <uuid>

Returns only information on the policies with the specified IDs.

policyName
string or null

Returns a backup policy with the specified name.

lastJobStatus
Array of strings or null (JobStatus)

Returns only backup policies with the specified status of the latest session.

Enum: "Canceled" "Canceling" "Error" "NeverExecuted" "Running" "RunningWithError" "RunningWithWarning" "Success" "Warning" "Pending" "Unknown"
policyStatus
Array of strings or null (PolicyStatus)

Returns only backup policies with the specified status.

Enum: "Enabled" "Disabled" "Unknown"
Responses
200

OK

401

Unauthorized

403

Forbidden

post/api/v10/policies/vnet/export
Request samples
application/json
{
  • "policyIds": [
    ],
  • "policyName": "string",
  • "lastJobStatus": [
    ],
  • "policyStatus": [
    ]
}
Response samples
application/problem+json
{
  • "extensions": { },
  • "status": 0,
  • "title": "string",
  • "detail": "string",
  • "type": "string"
}