SQL SLA-Based Backup Policies

The /policy/slaBased/sql resource collection represents SQL SLA-based backup policies configured in Veeam Backup for Microsoft Azure.

Get Collection of SLA-Based SQL Backup Policies

The HTTP GET request to the /policy/slaBased/sql endpoint retrieves a list of SLA-based SQL 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.

DatabaseId
string or null

Returns only backup policies that protect an SQL database with the specified ID.

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/policy/slaBased/sql
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Create SLA-Based SQL Backup Policy

The HTTP POST request to the /policy/slaBased/sql endpoint creates a new SLA-based SQL 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.

required
Array of objects (PolicyRegionFromClient) non-empty

Azure regions where the resources that will be backed up reside.

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 the service account whose permissions will be used to perform backups of Azure SQL databases.

slaPolicyTemplateId
required
string <uuid>

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

storagePolicyTemplateId
required
string <uuid>

Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to the storage template that will be assigned to the policy.

object or null (SqlPolicyBackupItemsFromClient)

[Applies if the SelectedItems value is specified for the backupType parameter] Specifies information on Azure resources to protect by the backup policy.

object or null (SqlPolicyExcludedItemsFromClient)

Specifies Azure resources to exclude from the backup scope.

stagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the unmanaged instances.

managedStagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the managed instances.

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.

object or null

Specifies SLA report notification settings for the backup policy.

createPrivateEndpointToWorkloadAutomatically
boolean or null

Defines whether the backup policy should create private endpoint to workload automatically.

object or null (SqlPolicyAuthenticationSettings)

Specifies authentication settings for SQL Servers.

Responses
201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

415

Client Error

post/api/v10/policy/slaBased/sql
Request samples
application/json
{
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "regions": [
    ],
  • "selectedItems": {
    },
  • "excludedItems": {
    },
  • "stagingServerId": "string",
  • "managedStagingServerId": "string",
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "slaPolicyNotificationSettings": {
    },
  • "isEnabled": true,
  • "createPrivateEndpointToWorkloadAutomatically": true,
  • "backupType": "AllSubscriptions",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1",
  • "storagePolicyTemplateId": "f3f86a0e-d99c-4ff1-84bf-5cef773966ef",
  • "authenticationSettings": {
    }
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "priority": 0,
  • "excludedItemsCount": 0,
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "backupStatus": "Canceled",
  • "archiveStatus": "Canceled",
  • "healthCheckStatus": "Canceled",
  • "sqlPolicyConfigurationCheckStatus": "Canceled",
  • "nextExecutionTime": "2019-08-24T14:15:22Z",
  • "isArchiveBackupConfigured": true,
  • "createPrivateEndpointToWorkloadAutomatically": true,
  • "storagePolicyTemplateId": "f3f86a0e-d99c-4ff1-84bf-5cef773966ef",
  • "_links": {},
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "slaPolicyNotificationSettings": {
    },
  • "isEnabled": true,
  • "backupType": "AllSubscriptions",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1",
  • "authenticationSettings": {
    }
}

Get SLA-Based SQL Backup Policy Data

The HTTP GET request to the /policy/slaBased/sql/{policyId} endpoint retrieves information on an SLA-based SQL 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/policy/slaBased/sql/{policyId}
Request samples
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "priority": 0,
  • "excludedItemsCount": 0,
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "backupStatus": "Canceled",
  • "archiveStatus": "Canceled",
  • "healthCheckStatus": "Canceled",
  • "sqlPolicyConfigurationCheckStatus": "Canceled",
  • "nextExecutionTime": "2019-08-24T14:15:22Z",
  • "isArchiveBackupConfigured": true,
  • "createPrivateEndpointToWorkloadAutomatically": true,
  • "storagePolicyTemplateId": "f3f86a0e-d99c-4ff1-84bf-5cef773966ef",
  • "_links": {},
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "slaPolicyNotificationSettings": {
    },
  • "isEnabled": true,
  • "backupType": "AllSubscriptions",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1",
  • "authenticationSettings": {
    }
}

Modify SLA-Based SQL Backup Policy

The HTTP PUT request to the /policy/slaBased/sql/{policyId} endpoint modifies an existing SLA-based SQL backup policy.

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.

required
Array of objects (PolicyRegionFromClient) non-empty

Azure regions where the resources that will be backed up reside.

slaPolicyTemplateId
required
string <uuid>

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

storagePolicyTemplateId
required
string <uuid>

Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to the storage template that will be assigned to the policy.

tenantId
string or null

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

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 perform backups of Azure SQL databases.

object or null (SqlPolicyBackupItemsFromClient)

[Applies if the SelectedItems value is specified for the backupType parameter] Specifies information on Azure resources to protect by the backup policy.

object or null (SqlPolicyExcludedItemsFromClient)

Specifies Azure resources to exclude from the backup scope.

stagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the unmanaged instances.

managedStagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the managed instances.

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.

object or null

Specifies SLA report notification settings for the backup policy.

createPrivateEndpointToWorkloadAutomatically
boolean or null

Defines whether the backup policy should create private endpoint to workload automatically.

object or null (SqlPolicyAuthenticationSettings)

Specifies authentication settings for SQL Servers.

Responses
200

OK

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

415

Client Error

put/api/v10/policy/slaBased/sql/{policyId}
Request samples
application/json
{
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "regions": [
    ],
  • "selectedItems": {
    },
  • "excludedItems": {
    },
  • "stagingServerId": "string",
  • "managedStagingServerId": "string",
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "slaPolicyNotificationSettings": {
    },
  • "isEnabled": true,
  • "createPrivateEndpointToWorkloadAutomatically": true,
  • "backupType": "AllSubscriptions",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1",
  • "storagePolicyTemplateId": "f3f86a0e-d99c-4ff1-84bf-5cef773966ef",
  • "authenticationSettings": {
    }
}
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "priority": 0,
  • "excludedItemsCount": 0,
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "backupStatus": "Canceled",
  • "archiveStatus": "Canceled",
  • "healthCheckStatus": "Canceled",
  • "sqlPolicyConfigurationCheckStatus": "Canceled",
  • "nextExecutionTime": "2019-08-24T14:15:22Z",
  • "isArchiveBackupConfigured": true,
  • "createPrivateEndpointToWorkloadAutomatically": true,
  • "storagePolicyTemplateId": "f3f86a0e-d99c-4ff1-84bf-5cef773966ef",
  • "_links": {},
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "slaPolicyNotificationSettings": {
    },
  • "isEnabled": true,
  • "backupType": "AllSubscriptions",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1",
  • "authenticationSettings": {
    }
}

Remove SLA-Based SQL Backup Policy

The HTTP DELETE request to the /policy/slaBased/sql/{policyId} endpoint removes a specific SLA-based 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 the SLA-based 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/policy/slaBased/sql/{policyId}
Request samples
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Create SLA-Based Backup Policy With Test Configuration Session

The HTTP POST request to the /policy/slaBased/sql/withTestConfigurationSession endpoint creates a new SLA-based SQL backup policy and runs the backup policy configuration check.

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.

required
Array of objects (PolicyRegionFromClient) non-empty

Azure regions where the resources that will be backed up reside.

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 the service account whose permissions will be used to perform backups of Azure SQL databases.

slaPolicyTemplateId
required
string <uuid>

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

storagePolicyTemplateId
required
string <uuid>

Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to the storage template that will be assigned to the policy.

object or null (SqlPolicyBackupItemsFromClient)

[Applies if the SelectedItems value is specified for the backupType parameter] Specifies information on Azure resources to protect by the backup policy.

object or null (SqlPolicyExcludedItemsFromClient)

Specifies Azure resources to exclude from the backup scope.

stagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the unmanaged instances.

managedStagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the managed instances.

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.

object or null

Specifies SLA report notification settings for the backup policy.

createPrivateEndpointToWorkloadAutomatically
boolean or null

Defines whether the backup policy should create private endpoint to workload automatically.

object or null (SqlPolicyAuthenticationSettings)

Specifies authentication settings for SQL Servers.

Responses
202

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

415

Client Error

post/api/v10/policy/slaBased/sql/withTestConfigurationSession
Request samples
application/json
{
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "regions": [
    ],
  • "selectedItems": {
    },
  • "excludedItems": {
    },
  • "stagingServerId": "string",
  • "managedStagingServerId": "string",
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "slaPolicyNotificationSettings": {
    },
  • "isEnabled": true,
  • "createPrivateEndpointToWorkloadAutomatically": true,
  • "backupType": "AllSubscriptions",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1",
  • "storagePolicyTemplateId": "f3f86a0e-d99c-4ff1-84bf-5cef773966ef",
  • "authenticationSettings": {
    }
}
Response samples
application/json
{
  • "id": "string",
  • "type": "BackupRetention",
  • "localizedType": "string",
  • "executionStartTime": "2019-08-24T14:15:22Z",
  • "executionStopTime": "2019-08-24T14:15:22Z",
  • "executionDuration": "string",
  • "status": "Canceled",
  • "traceId": "string",
  • "eventIds": [
    ],
  • "timezones": [
    ],
  • "regions": [
    ],
  • "tenantIds": [
    ],
  • "backupJobInfo": {
    },
  • "healthCheckJobInfo": {
    },
  • "policyConfigurationCheckJobInfo": {
    },
  • "restoreJobInfo": {
    },
  • "fileLevelRestoreJobInfo": {
    },
  • "fileShareFileLevelRestoreJobInfo": {
    },
  • "repositoryJobInfo": {
    },
  • "restorePointDataRetrievalJobInfo": {
    },
  • "retentionJobInfo": {
    },
  • "_links": {}
}

Modify SLA-Based Backup Policy With Test Configuration Session

The HTTP PUT request to the /policy/slaBased/sql/withTestConfigurationSession/{policyId} endpoint updates settings of an SLA-based SQL backup policy with the specified ID and runs the backup policy configuration check.

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.

required
Array of objects (PolicyRegionFromClient) non-empty

Azure regions where the resources that will be backed up reside.

slaPolicyTemplateId
required
string <uuid>

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

storagePolicyTemplateId
required
string <uuid>

Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to the storage template that will be assigned to the policy.

tenantId
string or null

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

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 perform backups of Azure SQL databases.

object or null (SqlPolicyBackupItemsFromClient)

[Applies if the SelectedItems value is specified for the backupType parameter] Specifies information on Azure resources to protect by the backup policy.

object or null (SqlPolicyExcludedItemsFromClient)

Specifies Azure resources to exclude from the backup scope.

stagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the unmanaged instances.

managedStagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the managed instances.

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.

object or null

Specifies SLA report notification settings for the backup policy.

createPrivateEndpointToWorkloadAutomatically
boolean or null

Defines whether the backup policy should create private endpoint to workload automatically.

object or null (SqlPolicyAuthenticationSettings)

Specifies authentication settings for SQL Servers.

Responses
202

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

415

Client Error

put/api/v10/policy/slaBased/sql/withTestConfigurationSession/{policyId}
Request samples
application/json
{
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "regions": [
    ],
  • "selectedItems": {
    },
  • "excludedItems": {
    },
  • "stagingServerId": "string",
  • "managedStagingServerId": "string",
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "slaPolicyNotificationSettings": {
    },
  • "isEnabled": true,
  • "createPrivateEndpointToWorkloadAutomatically": true,
  • "backupType": "AllSubscriptions",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1",
  • "storagePolicyTemplateId": "f3f86a0e-d99c-4ff1-84bf-5cef773966ef",
  • "authenticationSettings": {
    }
}
Response samples
application/json
{
  • "id": "string",
  • "type": "BackupRetention",
  • "localizedType": "string",
  • "executionStartTime": "2019-08-24T14:15:22Z",
  • "executionStopTime": "2019-08-24T14:15:22Z",
  • "executionDuration": "string",
  • "status": "Canceled",
  • "traceId": "string",
  • "eventIds": [
    ],
  • "timezones": [
    ],
  • "regions": [
    ],
  • "tenantIds": [
    ],
  • "backupJobInfo": {
    },
  • "healthCheckJobInfo": {
    },
  • "policyConfigurationCheckJobInfo": {
    },
  • "restoreJobInfo": {
    },
  • "fileLevelRestoreJobInfo": {
    },
  • "fileShareFileLevelRestoreJobInfo": {
    },
  • "repositoryJobInfo": {
    },
  • "restorePointDataRetrievalJobInfo": {
    },
  • "retentionJobInfo": {
    },
  • "_links": {}
}

Export SLA-Based Backup Policies

The HTTP POST request to the /policy/slaBased/sql/export endpoint exports a list of SLA-based SQL 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>

Specifies the system IDs assigned in the Veeam Backup for Microsoft Azure REST API to the SQL backup policies whose data will be exported.

policyName
string or null

Exports only data on the backup policy with the specified name.

lastJobStatus
Array of strings or null (JobStatus)

Exports only data on the 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)

Exports only data on the backup policies with the specified statuses.

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

OK

401

Unauthorized

403

Forbidden

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

Calculate Estimated Cost of SLA-Based SQL Backup Policy

The HTTP POST request to the /policy/slaBased/sql/estimateCost endpoint calculates the estimated monthly cost for protecting Azure SQL databases by an SLA-based backup policy.

SecurityBearer
Request
query Parameters
ResourceNameFilter
string or null

Returns only costs for protecting a SQL database 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.

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"
required
Array of objects (PolicyRegionFromClient) non-empty

Azure regions where the resources that will be backed up reside.

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 the service account whose permissions will be used to perform backups of Azure SQL databases.

slaPolicyTemplateId
required
string <uuid>

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

storagePolicyTemplateId
required
string <uuid>

Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to the storage template that will be assigned to the policy.

object or null (SqlPolicyBackupItemsFromClient)

[Applies if the SelectedItems value is specified for the backupType parameter] Specifies information on Azure resources to protect by the backup policy.

object or null (SqlPolicyExcludedItemsFromClient)

Specifies Azure resources to exclude from the backup scope.

stagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the unmanaged instances.

managedStagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the managed instances.

name
string [ 1 .. 255 ] characters

Specifies a name for the backup policy.

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.

object or null

Specifies SLA report notification settings for the backup policy.

isEnabled
boolean or null

Defines whether to enable the policy.

createPrivateEndpointToWorkloadAutomatically
boolean or null

Defines whether the backup policy should create a private endpoint to the workload automatically.

object or null (SqlPolicyAuthenticationSettings)

Specifies authentication settings for SQL Servers.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

415

Client Error

post/api/v10/policy/slaBased/sql/estimateCost
Request samples
application/json
{
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "regions": [
    ],
  • "selectedItems": {
    },
  • "excludedItems": {
    },
  • "stagingServerId": "string",
  • "managedStagingServerId": "string",
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "slaPolicyNotificationSettings": {
    },
  • "isEnabled": true,
  • "createPrivateEndpointToWorkloadAutomatically": true,
  • "backupType": "AllSubscriptions",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1",
  • "storagePolicyTemplateId": "f3f86a0e-d99c-4ff1-84bf-5cef773966ef",
  • "authenticationSettings": {
    }
}
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ],
  • "metadata": {
    }
}

Export SLA-Based SQL Cost Estimation Report

The HTTP POST request to the /policy/slaBased/sql/estimateCost/export endpoint exports the SLA-based SQL backup policy cost estimation report 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
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"
required
Array of objects (PolicyRegionFromClient) non-empty

Azure regions where the resources that will be backed up reside.

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 the service account whose permissions will be used to perform backups of Azure SQL databases.

slaPolicyTemplateId
required
string <uuid>

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

storagePolicyTemplateId
required
string <uuid>

Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to the storage template that will be assigned to the policy.

object or null (SqlPolicyBackupItemsFromClient)

[Applies if the SelectedItems value is specified for the backupType parameter] Specifies information on Azure resources to protect by the backup policy.

object or null (SqlPolicyExcludedItemsFromClient)

Specifies Azure resources to exclude from the backup scope.

stagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the unmanaged instances.

managedStagingServerId
string or null

Specifies the Microsoft Azure ID assigned to a staging server configured for the managed instances.

name
string [ 1 .. 255 ] characters

Specifies a name for the backup policy.

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.

object or null

Specifies SLA report notification settings for the backup policy.

isEnabled
boolean or null

Defines whether to enable the policy.

createPrivateEndpointToWorkloadAutomatically
boolean or null

Defines whether the backup policy should create a private endpoint to the workload automatically.

object or null (SqlPolicyAuthenticationSettings)

Specifies authentication settings for SQL Servers.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

415

Client Error

post/api/v10/policy/slaBased/sql/estimateCost/export
Request samples
application/json
{
  • "tenantId": "string",
  • "serviceAccountId": "a814cf67-aaac-43ae-acb4-8d34e82a4b4c",
  • "regions": [
    ],
  • "selectedItems": {
    },
  • "excludedItems": {
    },
  • "stagingServerId": "string",
  • "managedStagingServerId": "string",
  • "name": "string",
  • "description": "string",
  • "retrySettings": {
    },
  • "policyNotificationSettings": {
    },
  • "slaPolicyNotificationSettings": {
    },
  • "isEnabled": true,
  • "createPrivateEndpointToWorkloadAutomatically": true,
  • "backupType": "AllSubscriptions",
  • "slaPolicyTemplateId": "73daf31b-f31a-40dd-b109-5f0980ce57a1",
  • "storagePolicyTemplateId": "f3f86a0e-d99c-4ff1-84bf-5cef773966ef",
  • "authenticationSettings": {
    }
}
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Start SLA-Based SQL Backup Policy

The HTTP POST request to the /policy/slaBased/sql/{policyId}/start endpoint launches the SQL SLA-based 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/policy/slaBased/sql/{policyId}/start
Request samples
Response samples
application/json
[
  • {
    }
]

Get Manual Start Settings of SLA-Based SQL Backup Policy

The HTTP GET request to the /policy/slaBased/sql/{policyId}/start endpoint retrieves the retention settings that will be applied to restore points created when you start the SQL SLA-based backup policy with the specified ID manually.

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

get/api/v10/policy/slaBased/sql/{policyId}/start
Request samples
Response samples
application/json
{
  • "storeFor": 0,
  • "storeForUnit": "Minute"
}

Check Whether SLA-Based SQL Backup Policies Can Be Started Manually

The HTTP GET request to the /policy/slaBased/sql/startEnabled endpoint checks whether SQL SLA-based backup policies can be started manually.

SecurityBearer
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

get/api/v10/policy/slaBased/sql/startEnabled
Request samples
Response samples
application/json
true

Enable SLA-Based SQL Backup Policy

The HTTP POST request to the /policy/slaBased/sql/{policyId}/enable endpoint enables a disabled SLA-based SQL 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/policy/slaBased/sql/{policyId}/enable
Request samples
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Disable SLA-Based SQL Backup Policy

The HTTP POST request to the /policy/slaBased/sql/{policyId}/disable endpoint disables an enabled SLA-based SQL 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/policy/slaBased/sql/{policyId}/disable
Request samples
Response samples
application/problem+json
{
  • "detail": "string",
  • "errors": {
    },
  • "status": 0,
  • "title": "string",
  • "traceId": "string",
  • "type": "string"
}

Get Azure Regions Specified in SLA-Based SQL Backup Policy Settings

The HTTP GET request to the /policy/slaBased/sql/{policyId}/regions endpoint retrieves a list of Azure regions added to the SLA-based SQL backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to the 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/policy/slaBased/sql/{policyId}/regions
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Get Collection of Protected Items

The HTTP GET request to the /policy/slaBased/sql/protectedItems endpoint retrieves a list of Azure SQL databases that are protected by SLA-based backup policies configured in Veeam Backup for Microsoft Azure.

SecurityBearer
Request
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

401

Unauthorized

403

Forbidden

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

Get Resources Protected by SLA-Based SQL Backup Policy

The HTTP GET request to the /policy/slaBased/sql/{policyId}/protectedItems endpoint retrieves a list of Azure SQL databases protected by the SLA-based backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to the 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

401

Unauthorized

403

Forbidden

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

Get Resources Selected for SLA-Based SQL Backup Policy

The HTTP GET request to the /policy/slaBased/sql/{policyId}/selectedItems endpoint retrieves information on resources selected for the SLA-based SQL backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to the 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/policy/slaBased/sql/{policyId}/selectedItems
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Get Resources Excluded from SLA-Based SQL Backup Policy

The HTTP GET request to the /policy/slaBased/sql/{policyId}/excludedItems endpoint retrieves a list of Azure SQL databases excluded from the SLA-based SQL backup policy with the specified ID.

SecurityBearer
Request
path Parameters
policyId
required
string <uuid>

Specifies the system ID assigned to the 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/policy/slaBased/sql/{policyId}/excludedItems
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}

Set Backup Policy Priority

The HTTP POST request to the /policy/slaBased/sql/orderPriorities endpoint sets the priority order for SLA-based SQL backup policies.

SecurityBearer
Request
Request Body schema: application/json
required
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/policy/slaBased/sql/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"
}

Get SLA Compliance Information

The HTTP GET request to the /policy/slaBased/sql/slaReport endpoint retrieves a list of SLA-based backup policies configured in Veeam Backup for Microsoft Azure and their SLA compliance information.

SecurityBearer
Request
query Parameters
PolicyName
string or null

Returns only backup policies 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/policy/slaBased/sql/slaReport
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "_links": {},
  • "results": [
    ]
}