- About Veeam Backup for Microsoft Azure REST API
- Overview
- How To
- Changelog
- Authorization
- Availability Sets
- Availability Zones
- Asynchronous Operations
- Azure Key Vaults
- Azure Network Security Groups
- Azure Regions
- Azure Resource Groups
- Service Accounts
- getGet Collection of Service Accounts
- getGet Service Account Data
- delRemove Service Account
- postVerify Service Account Permissions
- postExport Service Account Required Permissions
- postExport Permissions by Application
- postExport Permissions by Token
- postExport Collection of Service Accounts
- postGet List of Tenants by Token
- postGet List of Subscriptions by Application
- postGet List of Microsoft Entra Groups
- postValidate User
- postAdd Service Account Using Existing Application
- putEdit Service Account Created Using Existing Application
- putValidate Editing of Service Account Created Using Existing Application
- getGet Service Accounts Suitable for Worker Management
- putSpecify Service Account for Worker Management
- Azure SQL Elastic Pools
- Azure Storage Accounts
- Azure Subscriptions
- Azure Tags
- Microsoft Entra Tenants
- Azure Virtual Networks
- Azure VM Schedule-Based Backup Policies
- getGet Collection of Azure VM Schedule-Based Backup Policies
- postCreate Backup Policy
- getGet Backup Policy Data
- putModify Backup Policy
- delRemove Backup Policy
- getGet Resources Selected for Backup Policy
- getGet Azure Regions Specified in Policy Settings
- getGet Resources Excluded from Backup Policy
- postSet Backup Policy Priority
- postEnable Backup Policy
- postDisable Backup Policy
- postStart Backup Policy
- postStop Backup Policy
- postResets Backup Policy CBT
- postExport Backup Policies
- getGet Collection of Protected Items
- getGet Resources Protected by Backup Policy
- Azure VM SLA-Based Backup Policies
- getGet Collection of SLA-Based Backup Policies
- postCreate SLA-Based Backup Policy
- postExport Collection of SLA-Based Backup Policies
- getGet SLA-Based Backup Policy Data
- putModify SLA-Based Backup Policy
- delRemove SLA-Based Backup Policy
- getGet SLA Compliance Information
- getGet Resources Protected by SLA-Based Backup Policy
- getGet Azure Regions Specified in SLA-Based Backup Policy Settings
- getGet Resources Excluded from SLA-Based Backup Policy
- postSet SLA-Based Backup Policy Priority
- postEnable SLA-Based Backup Policy
- postDisable SLA-Based Backup Policy
- getGet Collection of Protected Items
- getGet Resources Protected by SLA-Based Backup Policy
- postCalculate Estimated Cost of SLA-Based Backup Policy
- postExport Estimation Cost Report
- Azure VM Policy Cost Estimation
- Azure VMs
- Azure VM Sizes
- Azure VMs Protected by Veeam Backup for Microsoft Azure
- getGet Collection of Protected Azure VMs
- getGet Protected Azure VM Data
- postExport Collection of Protected Azure VMs
- postRemove Backups of Protected Azure VM
- postRemove Snapshots of Protected Azure VM
- postRemove Backups of Protected Azure VMs
- postRemove Snapshots of Protected Azure VMs
- postRemove Manual Snapshots of Protected Azure VMs
- postRemove Manual Snapshots of Protected Azure VM
- Azure VM Restore Points
- getGet Azure VM Restore Points
- getGet Azure VM Restore Point Data
- delRemove Azure VM Restore Point
- postPerform Virtual Disk Restore
- postPerform Azure VM Restore
- postPerform Azure VM File-Level Restore
- postRetrieve Data from Archive
- postExtend Data Availability Period
- getGet Collection of Virtual Disk Snapshots
- postVirtual Disk Snapshots Rescan
- getGet Collection of Azure VM Snapshots
- Backup Repositories
- getGet Collection of Backup Repositories
- postAdd Backup Repository
- getGet Backup Repository Data
- putModify Backup Repository Settings
- delRemove Backup Repository
- postGet Backup Repository Metadata
- postVerify Backup Repository Password
- postExport Collection of Backup Repositories
- getValidate Repository Deletion
- Configuration
- Configuration Backup
- getGet Backup Appliance Statistics
- postCreate Configuration Backup
- getGet Configuration Backup Settings
- putModify Configuration Backup Settings
- postStart Configuration Backup Export
- getCheck Status of Configuration Backup Export
- postDownload Configuration Backup File
- getGet Configuration Backup Restore Points
- getGet Configuration Backup Restore Point Data
- delRemove Configuration Backup Restore Point
- Cosmos DB Accounts
- Cosmos DB Account Point-in-Time Restore Information
- Cosmos DB Accounts Protected by Veeam Backup for Microsoft Azure
- getGet Collection of Protected Cosmos DB Accounts
- getGet Protected Cosmos DB Account Data
- postExport Collection of Protected Cosmos DB Accounts
- postRemove Backups of Protected Cosmos DB Account
- postRemove Manual Backups of Protected Cosmos DB Account
- postRemove Continuous Backups of Protected Cosmos DB Account
- postPerform Cosmos DB Account Point-in-time Restore
- Cosmos DB Backup Policies
- getGet Collection of Cosmos DB Backup Policies
- postCreate Backup Policy
- getGet Backup Policy Data
- putModify Backup Policy
- delRemove Backup Policy
- getGet Resources Selected for Backup Policy
- getGet Azure Regions Specified in Policy Settings
- getGet Resources Excluded from Backup Policy
- postSet Backup Policy Priority
- postEnable Backup Policy
- postDisable Backup Policy
- postStart Backup Policy
- postStop Backup Policy
- postExport Backup Policies
- getGet Collection of Protected Items
- getGet Resources Protected by Backup Policy
- Cosmos DB Policy Cost Estimation
- Cosmos DB Restore Points
- File-Level Recovery
- File Share Backup Policies
- getGet Collection of File Share Backup Policies
- postCreate Backup Policy
- getGet Backup Policy Data
- putModify Backup Policy
- delRemove Backup Policy
- getGet Resources Selected for Backup Policy
- getGet Azure Regions Specified in Policy Settings
- getGet Resources Excluded from Backup Policy
- postSet Backup Policy Priority
- postEnable Backup Policy
- postDisable Backup Policy
- postStart Backup Policy
- postStop Backup Policy
- postExport Backup Policies
- getGet Collection of Protected Items
- getGet Resources Protected by Backup Policy
- File Share Policy Cost Estimation
- File Share Restore Points
- File Shares
- File Shares Protected by Veeam Backup for Microsoft Azure
- Job Sessions
- getGet Collection of Sessions
- getGet Retention Session Data
- getGet Backup Session Data
- getGet Health Check Session Data
- getGet Restore Session Data
- getGet SQL Restore Session Data
- getGet Azure VM File-Level Restore Session Data
- getGet File Share File-Level Restore Session Data
- getGet Virtual Network Configuration Restore Session Data
- getGet Session Data
- getGet Session Log Details
- postStop Session
- postExport Collection of Sessions
- getGet Cosmos DB Restore Session Data
- License
- License Agreements
- Overview
- Retention Settings
- Security Certificates
- SLA Details
- SLA Templates
- SMTP and Database Accounts
- Storage Templates
- SQL Backup Policies
- getGet Collection of SQL Backup Policies
- postCreate Backup Policy
- getGet Backup Policy Data
- putModify Backup Policy
- delRemove Backup Policy
- getGet Resources Selected for Backup Policy
- getGet Azure Regions Specified in Policy Settings
- getGet Resources Excluded from Backup Policy
- postSet Backup Policy Priority
- postCheck Configuration of Backup Policy
- postEnable Backup Policy
- postDisable Backup Policy
- postStart Backup Policy
- postStop Backup Policy
- postExport Backup Policies
- getGet Collection of Protected Items
- getGet Resources Protected by Backup Policy
- SQL Databases
- SQL Databases Protected by Veeam Backup for Microsoft Azure
- SQL Policy Cost Estimation
- SQL Restore Points
- SQL Servers
- SSO Settings
- System
- Users
- Virtual Network Configuration Backup Policy
- getGet Virtual Network Configuration Backup Policy
- putModify Virtual Network Configuration Backup Policy
- postStart Virtual Network Configuration Backup Policy
- postStop Virtual Network Configuration Backup Policy
- postEnable Virtual Network Configuration Backup Policy
- postDisable Virtual Network Configuration Backup Policy
- postExport Virtual Network Configuration Backup Policy
- Virtual Network Configuration Protected by Veeam Backup for Microsoft Azure
- Virtual Network Configuration Restore Points
- Workers
- getGet Collection of Worker Instances
- delRemove Worker Instance
- postExport Collection of Worker Instances
- getGet Worker Instance Statistics
- getGet Collection of Worker Configurations
- postAdd Worker Configuration
- getGet Worker Configuration Data
- putModify Worker Configuration
- delRemove Worker Configuration
- postExport Worker Configurations
- postSpecify Worker Location and Service Account
- getGet Collection of Worker Profiles
- postAdd Worker Profiles
- getGet Worker Profiles for Region
- putModify Worker Profiles
- delRemove Worker Profiles
- postExport Worker Profiles
- getGet Worker Custom Tags
- putModify Worker Custom Tags
The /cloudInfrastructure/cosmosDbAccounts
resource collection represents information required to perform point-in-time restore for Cosmos DB accounts.
Get Cosmos DB Account Restore Regions
The HTTP GET request to the /cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/availableRestoreRegions
endpoint retrieves list of regions to which a Cosmos DB account with the specified ID can be restored.
path Parameters
cosmosDbAccountId required | string Specifies the Cosmos DB account ID in Microsoft Azure. |
query Parameters
ServiceAccountId required | string <uuid> Returns only Azure regions to which a service account with the specified system ID has permissions. x-veeam-parameter-group: CosmosDbAccountRegionOptions |
Offset | integer <int32> >= 0 Specifies the first N items of a resource collection that will be excluded from the response. x-veeam-parameter-group: Veeam.Azure.REST.RequestQuery.V2.PageProperties |
Limit | integer <int32> >= -1 Specifies the maximum number of items of a resource collection that will be returned in the response. x-veeam-parameter-group: Veeam.Azure.REST.RequestQuery.V2.PageProperties |
OK
Bad Request
Unauthorized
Forbidden
Not Found
- curl
curl -i -X GET \ 'https://123.123.123.123/api/v8/cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/availableRestoreRegions?ServiceAccountId=497f6eca-6276-4993-bfeb-53cbbbba6f08&Offset=0&Limit=-1' \ -H 'Authorization: YOUR_API_KEY_HERE'
- 200
- 400
- 401
- 403
- 404
{- "offset": 0,
- "limit": 0,
- "totalCount": 0,
- "_links": {
}, - "results": [
- {
- "id": "string",
- "name": "string",
- "resourceId": "string"
}
]
}
Get Cosmos DB Account Restorable Items
The HTTP GET request to the /cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/availableRestoreResource
endpoint retrieves list of Cosmos DB account items available for restore.
This operation can only be performed to Cosmos DB accounts of the following kinds: NoSQL, MongoDB, Apache Gremlin and Table.
path Parameters
cosmosDbAccountId required | string Specifies the Cosmos DB account ID in Microsoft Azure. |
query Parameters
ServiceAccountId required | string <uuid> Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to a service account that will be used to perform the operation. x-veeam-parameter-group: CosmosDbAccountResourceOptions |
TargetRegionId required | string Returns only items that can be restored to the specified Azure region. x-veeam-parameter-group: CosmosDbAccountResourceOptions |
PointInTime required | string <date-time> Returns only items that can be restored to the specified date and time. x-veeam-parameter-group: CosmosDbAccountResourceOptions |
Offset | integer <int32> >= 0 Specifies the first N items of a resource collection that will be excluded from the response. x-veeam-parameter-group: Veeam.Azure.REST.RequestQuery.V2.PageProperties |
Limit | integer <int32> >= -1 Specifies the maximum number of items of a resource collection that will be returned in the response. x-veeam-parameter-group: Veeam.Azure.REST.RequestQuery.V2.PageProperties |
OK
Bad Request
Unauthorized
Forbidden
Not Found
- curl
curl -i -X GET \ 'https://123.123.123.123/api/v8/cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/availableRestoreResource?ServiceAccountId=497f6eca-6276-4993-bfeb-53cbbbba6f08&TargetRegionId=string&PointInTime=2019-08-24T14%3A15%3A22Z&Offset=0&Limit=-1' \ -H 'Authorization: YOUR_API_KEY_HERE'
- 200
- 400
- 401
- 403
- 404
{- "offset": 0,
- "limit": 0,
- "totalCount": 0,
- "_links": {
}, - "results": [
- {
- "name": "string",
- "resourceType": "string",
- "subresources": [
- {
- "name": "string",
- "resourceType": "string"
}
]
}
]
}
Get Cosmos DB Account Point-in-time Restore Period
The HTTP GET request to the /cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/availableRestoreTimeRange
endpoint retrieves a time period within which a restore point for the specified Cosmos DB account can be selected.
path Parameters
cosmosDbAccountId required | string Specifies the Cosmos DB account ID in Microsoft Azure. |
query Parameters
ServiceAccountId | string or null <uuid> Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to a service account that will be used to perform the operation. |
OK
Bad Request
Unauthorized
Forbidden
Not Found
- curl
curl -i -X GET \ 'https://123.123.123.123/api/v8/cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/availableRestoreTimeRange?ServiceAccountId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Authorization: YOUR_API_KEY_HERE'
- 200
- 400
- 401
- 403
- 404
{- "id": "string",
- "name": "string",
- "latestRestorableTimestamp": "2019-08-24T14:15:22Z",
- "earliestRestorableTimestamp": "2019-08-24T14:15:22Z"
}
Get Cosmos DB Account Databases
The HTTP GET request to the /cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/databases
endpoint retrieves a list of databases of a Cosmos DB account with the specified ID.
This operation can only be performed to Cosmos DB accounts of the following kinds: NoSQL, MongoDB and Apache Gremlin.
path Parameters
cosmosDbAccountId required | string Specifies the Cosmos DB account ID in Microsoft Azure. |
query Parameters
ServiceAccountId required | string <uuid> Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to a service account that will be used to perform the operation. |
Offset | integer <int32> >= 0 Specifies the first N items of a resource collection that will be excluded from the response. x-veeam-parameter-group: Veeam.Azure.REST.RequestQuery.V2.PageProperties |
Limit | integer <int32> >= -1 Specifies the maximum number of items of a resource collection that will be returned in the response. x-veeam-parameter-group: Veeam.Azure.REST.RequestQuery.V2.PageProperties |
OK
Bad Request
Unauthorized
Forbidden
Not Found
- curl
curl -i -X GET \ 'https://123.123.123.123/api/v8/cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/databases?ServiceAccountId=497f6eca-6276-4993-bfeb-53cbbbba6f08&Offset=0&Limit=-1' \ -H 'Authorization: YOUR_API_KEY_HERE'
- 200
- 400
- 401
- 403
- 404
{- "offset": 0,
- "limit": 0,
- "totalCount": 0,
- "_links": {
}, - "results": [
- {
- "databaseRid": "string",
- "name": "string",
- "deletionTime": "2019-08-24T14:15:22Z"
}
]
}
Calculate Cost of Cosmos DB Account Throughput
The HTTP POST request to the /cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/estimateThroughputCost
endpoint calculates the estimated hourly/daily/monthly cost of specific throughput settings configured for a Cosmos DB for MongoDB account with the specified ID.
path Parameters
cosmosDbAccountId required | string Specifies the Azure ID assigned to the Cosmos DB for MongoDB account. |
query Parameters
serviceAccountId required | string <uuid> Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to a service account that will be used to perform the operation. Note that the service account must have access to the subscription specified in the |
Request Body schema: application/jsonrequired
object (MongoDbEstimateThroughputCostSettings) Specifies throughput settings configured for an item managed by the Cosmos DB for MongoDB account. |
OK
Bad Request
Unauthorized
Forbidden
Not Found
- Payload
- curl
{- "mongoDbSettings": {
- "databaseName": "string",
- "collectionName": "string",
- "throughputSettings": {
- "MaxThroughput": 0,
- "Type": "Autoscale"
}, - "databases": [
- {
- "name": "string",
- "collections": [
- {
- "name": "string",
- "throughputSettings": {
- "MaxThroughput": 0,
- "Type": "Autoscale"
}
}
], - "throughputSettings": {
- "MaxThroughput": 0,
- "Type": "Autoscale"
}
}
]
}
}
- 200
- 400
- 401
- 403
- 404
{- "minHourlyPrice": 0,
- "maxHourlyPrice": 0,
- "minDailyPrice": 0,
- "maxDailyPrice": 0,
- "minMonthlyPrice": 0,
- "maxMonthlyPrice": 0,
- "minThroughput": 0,
- "maxThroughput": 0,
- "requestUnitPrice": 0,
- "regionCount": 0,
- "exceedsTotalThroughput": true
}
Get Cosmos DB Account Events
The HTTP GET request to the /cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/databases/{databaseRid}/resourceEvents
endpoint retrieves a list of create, replace and delete events for a specific database of a Cosmos DB account with the specified ID.
This operation can only be performed to Cosmos DB accounts of the following kinds: NoSQL, MongoDB, Apache Gremlin and Table.
path Parameters
cosmosDbAccountId required | string Specifies the Cosmos DB account ID in Microsoft Azure. |
query Parameters
ServiceAccountId required | string <uuid> Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to a service account that will be used to perform the operation. x-veeam-parameter-group: CosmosDbAccountResourceEventsOptions |
Offset | integer <int32> >= 0 Specifies the first N items of a resource collection that will be excluded from the response. x-veeam-parameter-group: Veeam.Azure.REST.RequestQuery.V2.PageProperties |
Limit | integer <int32> >= -1 Specifies the maximum number of items of a resource collection that will be returned in the response. x-veeam-parameter-group: Veeam.Azure.REST.RequestQuery.V2.PageProperties |
EventType | Array of strings or null (CosmosDbResourceEventType) Enum: "Create" "Recreate" "Delete" "Replace" "SystemOperation" x-veeam-parameter-group: CosmosDbAccountResourceEventsOptions |
databaseRid | string [Applies to Cosmos DB accounts of the following kinds only: NoSQL, MongoDB and Apache Gremlin] Specifies the resource ID assigned in Microsoft Azure to a database of the specified Cosmos DB account. x-veeam-parameter-group: CosmosDbAccountResourceEventsOptions |
FromTime | string <date-time> Returns only events occurred after the specified date and time. x-veeam-parameter-group: CosmosDbAccountResourceEventsOptions |
ToTime | string <date-time> Returns only events occurred before the specified date and time. x-veeam-parameter-group: CosmosDbAccountResourceEventsOptions |
OK
Bad Request
Unauthorized
Forbidden
Not Found
- curl
curl -i -X GET \ 'https://123.123.123.123/api/v8/cloudInfrastructure/cosmosDb/{cosmosDbAccountId}/resourceEvents?ServiceAccountId=497f6eca-6276-4993-bfeb-53cbbbba6f08&Offset=0&Limit=-1&EventType=Create&databaseRid=string&FromTime=2019-08-24T14%3A15%3A22Z&ToTime=2019-08-24T14%3A15%3A22Z' \ -H 'Authorization: YOUR_API_KEY_HERE'
- 200
- 400
- 401
- 403
- 404
{- "offset": 0,
- "limit": 0,
- "totalCount": 0,
- "_links": {
}, - "results": [
- {
- "EventDescription": "string",
- "EventTime": "2019-08-24T14:15:22Z"
}
]
}
Validate Cosmos DB Account Name
The HTTP POST request to the /cloudInfrastructure/cosmosDb/isNameTaken
endpoint checks whether a Cosmos DB account with the specified name already exists in the specified subscription.
query Parameters
accountName required | string Specifies a name that will be verified. |
subscriptionId required | string <uuid> Specifies the Microsoft Azure ID assigned to a subscription that will be checked for a Cosmos DB account with the specified name. |
serviceAccountId required | string <uuid> Specifies the system ID assigned in the Veeam Backup for Microsoft Azure REST API to a service account that will be used to perform the operation. Note that the service account must have access to the subscription specified in the |
OK
Bad Request
Unauthorized
Client Error
- curl
curl -i -X POST \ 'https://123.123.123.123/api/v8/cloudInfrastructure/cosmosDb/isNameTaken?accountName=string&subscriptionId=497f6eca-6276-4993-bfeb-53cbbbba6f08&serviceAccountId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Authorization: YOUR_API_KEY_HERE'
- 200
- 400
- 401
- 415
true