- About Veeam Backup for Microsoft 365 REST API
- Overview
- Changelog
- Authorization
- Accounts
- Amazon Archiver Appliance
- Amazon S3 Object Storage Buckets and Folders
- Applications
- Audit
- Audit Email Notification Settings
- Azure Blob Object Storage Containers and Folders
- Azure Service Accounts
- getGet Azure Service Accounts
- postAdd Azure Service Account
- getGet Azure Service Account Properties by Account ID
- putEdit Azure Service Account
- delRemove Azure Service Account
- postGet Device Code
- getGet Subscriptions
- getGet Subscription by ID
- getGet Resource Groups
- getGet Resource Group by Name
- getGet Locations
- getGet Location by Name
- getGet Virtual Machine Sizes
- getGet Virtual Machine Size by Name
- getGet Virtual Networks
- getGet Virtual Network by Name
- getGet Subnets
- getGet Subnet by Name
- Backup Accounts
- Backup and Backup Copy Job Session Operations
- Backup and Backup Copy Job Sessions
- Backup Applications
- Backup Copy Jobs
- Backup Jobs
- getGet Backup Jobs
- postCreate Backup Job
- getGet Backup Job
- putEdit Backup Job Settings
- delRemove Backup Job
- getGet Backup Copy Job
- getGet Backup Job Items
- postAdd Items to Backup Job
- delRemove Backup Job Items
- getGet Backup Job Item
- putEdit Backup Job Item
- getGet Excluded Items
- postAdd Items to Exclusions
- delRemove Excluded Items
- getGet Excluded Item
- putEdit Excluded Item
- postEnable Backup Job
- postDisable Backup Job
- postStart Backup Job
- postStop Backup Job
- postCreate Restore Session
- Backup Proxy Pools
- Backup Proxy Servers
- getGet Backup Proxy Servers
- postAdd Backup Proxy Server
- getGet Backup Proxy Server
- putEdit Backup Proxy Server Settings
- postRescan Backup Proxy Server
- postEnable Maintenance Mode for Backup Proxy Server
- postDisable Maintenance Mode for Backup Proxy Server
- postRemove Backup Proxy Server
- postRescan Backup Proxy Servers
- postCheck SSH Connection
- Backup Repositories
- getGet Backup Repositories
- postAdd Backup Repository
- getGet Backup Repository
- putEdit Backup Repository Settings
- delRemove Backup Repository
- getGet Backed-Up Organizations
- postSynchronize Cache
- postCreate Restore Session for Backup Repository by Repository ID
- postChange Owner for Backup Repository by Repository ID
- Backup Repository Change Owner Sessions
- Backup Repository Synchronization
- Configuration
- Data Protection Reports
- Data Retrieval Jobs
- Data Retrieval Session Operations
- Data Retrieval Sessions
- Encryption Passwords
- Events
- Excluded Mailbox Folders
- Global Exclusions from Retention Policy
- Group Data Backups
- Health
- Internet Proxy Server Settings
- Job Session History Settings
- License
- License Usage Report
- Licensed Users
- Mailbox Data Backups
- Mailbox Folders Restore
- Mailbox Items Restore
- getGet Mailbox Item
- getGet Mailbox Items
- postRestore Mailbox Items to Original Mailbox
- postRestore Mailbox Items to Another Mailbox
- postExport Mailbox Items
- postSave Mailbox Items
- postSend Mailbox Items to Original Mailbox
- postSend Mailbox Items to Another Mailbox
- postRestore Mailbox Item to Original Mailbox
- postRestore Mailbox Item to Another Mailbox
- postExport Mailbox Item
- postSave Mailbox Item
- postSend Mailbox Item to Original Mailbox
- postSend Mailbox Item to Another Mailbox
- postRestore Mailbox Items by Restore Operator
- Mailboxes Restore
- Management Mode
- OneDrive Data Backups
- OneDrive Documents Restore
- getGet OneDrive Documents
- getGet OneDrive Document
- getGet Previous Versions of OneDrive Document
- getGet Specific Version of OneDrive Document
- postRestore OneDrive Documents
- postCopy OneDrive Documents
- postSend OneDrive Documents
- postSave OneDrive Documents
- postRestore OneDrive Document
- postRestore Version of OneDrive Document
- postCopy OneDrive Document
- postCopy Version of OneDrive Document
- postSave OneDrive Document
- postSave Version of OneDrive Document
- postSend OneDrive Document
- postSend Version of OneDrive Document
- postRestore OneDrive Documents by Restore Operator
- OneDrive Folders Restore
- getGet OneDrive Folders
- getGet OneDrive Folder
- postRestore OneDrive Folders
- getGet Specific Version of OneDrive Folder
- postCopy OneDrive Folders
- postSave OneDrive Folders
- postSend OneDrive Folders
- getGet Previous Versions of OneDrive Folder
- postRestore OneDrive Folder
- postRestore Version of OneDrive Folder
- postCopy OneDrive Folder
- postCopy Version of OneDrive Folder
- postSave OneDrive Folder
- postSave Version of OneDrive Folder
- postSend OneDrive Folder
- postSend Version of OneDrive Folder
- postSearch for OneDrive Items in OneDrive Folder
- OneDrives of Organization User
- OneDrives Restore
- Organization Data Backups
- Organization Data Restore
- Organization Exclusions from Retention Policy
- Organization Group Members
- Organization Groups
- Organization Licensing
- Organization Sites
- Organization Teams
- Organization Users
- Organizations
- Processed Objects
- Protected Data
- Restore Operator Roles
- getGet All Restore Operator Roles
- getGet Restore Operator Role
- putEdit Restore Operator Role Settings
- delRemove Restore Operator Role
- getGet Restore Operators
- postAdd Restore Operators
- delRemove Restore Operators
- getGet Restore Operator
- getGet Objects to Manage
- postAdd Objects to Manage
- delRemove Objects to Manage
- getGet Object to Manage
- getGet Excluded Objects
- postAdd Excluded Objects
- delRemove Excluded Objects
- getGet Excluded Object
- getGet Restore Operator Roles by Organization ID
- postAdd Restore Operator Role
- Restore Points
- Restore Portal Settings
- Restore Session Events
- Restore Sessions
- S3 Compatible Object Storage Buckets and Folders
- SharePoint Attachments Restore
- SharePoint Data Backups
- SharePoint Documents Restore
- getGet SharePoint Documents
- getGet SharePoint Document
- getGet Specific Version of SharePoint Document
- getGet Previous Versions of SharePoint Document
- postRestore SharePoint Documents to Original Location
- postRestore SharePoint Documents to Another Location
- postRestore Version of SharePoint Document to Original Location
- postRestore Version of SharePoint Document to Another Location
- postRestore SharePoint Document to Original Location
- postRestore SharePoint Document to Another Location
- postSave SharePoint Documents
- postSave Version of SharePoint Document
- postSave SharePoint Document
- postSend SharePoint Documents
- postSend Version of SharePoint Document
- postSend SharePoint Document
- postRestore SharePoint Documents by Restore Operator
- SharePoint Folders Restore
- getGet SharePoint Folders
- getGet SharePoint Folder
- getGet Specific Version of SharePoint Folder
- getGet Previous Versions of SharePoint Folder
- postRestore SharePoint Folders to Original Location
- postRestore SharePoint Folders to Another Location
- postRestore SharePoint Folder to Original Location
- postRestore SharePoint Folder to Another Location
- postRestore Version of SharePoint Folder to Original Location
- postRestore Version of SharePoint Folder to Another Location
- postSave SharePoint Folders
- postSave SharePoint Folder
- postSave Version of SharePoint Folder
- postSend SharePoint Folders
- postSend SharePoint Folder
- postSend Version of SharePoint Folder
- postSearch for SharePoint Documents in SharePoint Folder
- SharePoint Items Restore
- getGet SharePoint Items
- getGet SharePoint Item
- getGet Specific Version of SharePoint Item
- getGet Previous Versions of SharePoint Item
- postRestore SharePoint Items to Original Location
- postRestore SharePoint Items to Another Location
- postRestore SharePoint Item to Original Location
- postRestore Version of SharePoint Item to Original Location
- postRestore SharePoint Item to Another Location
- postRestore Version of SharePoint Item to Another Location
- postRestore SharePoint Items by Restore Operator
- SharePoint Libraries Restore
- SharePoint Lists Restore
- SharePoint Sites Restore
- Synchronization of Organization Objects
- Team Data Backups
- Teams Channels Restore
- Teams Files Restore
- Teams Posts Restore
- Teams Restore
- Teams Tabs Restore
- User Data Backups
- Users Logged In to Restore Portal
- Veeam Backup for Microsoft 365 Email Notification Settings
- Veeam Explorer for Microsoft Exchange Email Settings
- Veeam Explorer for Microsoft OneDrive for Business Email Settings
- Veeam Explorer for Microsoft SharePoint Email Settings
- Veeam Explorer for Microsoft Teams Email Settings
- Version and Installation ID
This set of endpoints represents restore sessions and allows you to manage them as well as to create a restore session for a tenant Microsoft organization or for a restore operator.
Get Restore Sessions
Returns a collection of restore sessions.
query Parameters
| limit | integer <int32> Limits the maximum number of items that the server will return on a page. The maximum supported number of items per page is 10,000. The default value is 30. |
| offset | integer <int32> Excludes from a response page the first N items of a collection resource. The default value is 0. |
| startTimeFrom | string Specifies the start of the time period used to filter restore sessions by the session start time. In the response, the server will return restore sessions that started after the specified time. |
| startTimeTo | string Specifies the end of the time period used to filter restore sessions by the session start time. In the response, the server will return restore sessions that started prior to the specified time. |
| endTimeFrom | string Specifies the start of the time period used to filter restore sessions by the session end time. In the response, the server will return restore sessions that finished after the specified time. |
| endTimeTo | string Specifies the end of the time period used to filter restore sessions by the session end time. In the response, the server will return restore sessions that finished prior to the specified time. |
| orderAsc | boolean Defines whether the date and time are specified in ascending order. The default value is false. |
| orderBy | string Defines how restore sessions will be sorted. The default value is CreationTime. |
OK
Operation failure response.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- default
{- "offset": 0,
- "limit": 0,
- "setId": "83e19bc1-5428-42b5-88ea-b28354e481f3",
- "results": [
- {
- "id": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "organization": "string",
- "type": "Vex",
- "creationTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "state": "Working",
- "result": "Success",
- "initiatedBy": "string",
- "details": "string",
- "scopeName": "string",
- "clientHost": "string",
- "reason": "string",
- "eTag": 0,
- "_links": {
- "property1": {
- "href": "string"
}, - "property2": {
- "href": "string"
}
}
}
], - "_links": {
- "property1": {
- "href": "string"
}, - "property2": {
- "href": "string"
}
}
}Get Restore Session
Returns a resource representation of a restore session with the specified ID.
path Parameters
| restoreSessionId required | string <uuid> Specifies the identification number of the restore session. For more information on how to get this parameter, see Get Restore Sessions. |
OK
Operation failure response.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- default
{- "id": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "organization": "string",
- "type": "Vex",
- "creationTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "state": "Working",
- "result": "Success",
- "initiatedBy": "string",
- "details": "string",
- "scopeName": "string",
- "clientHost": "string",
- "reason": "string",
- "eTag": 0,
- "_links": {
- "property1": {
- "href": "string"
}, - "property2": {
- "href": "string"
}
}
}Stop Restore Session
Stops a restore session with the specified ID.
path Parameters
| restoreSessionId required | string <uuid> Specifies the identification number of the restore session. For more information on how to get this parameter, see Get Restore Sessions. |
No Content
Operation failure response.
- curl
- Python
- JavaScript
- C#
- Go
- default
{- "message": "string",
- "errorCode": "ProxyOffline",
- "stackTrace": "string"
}Get Restore Session Statistics
Returns statistics for a restore session with the specified ID.
path Parameters
| restoreSessionId required | string <uuid> Specifies the identification number of the restore session. For more information on how to get this parameter, see Get Restore Sessions. |
OK
Operation failure response.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- default
{- "totalItemsCount": 0,
- "restoredItemsCount": 0,
- "failedItemsCount": 0,
- "skippedItemsCount": 0,
- "warnings": [
- "string"
], - "errors": [
- "string"
], - "items": [
- {
- "id": "string",
- "itemRestoreDetailsType": "Item",
- "title": "string",
- "error": "string",
- "name": "string",
- "itemType": "TeamsTeam",
- "status": "Failed",
- "path": "string",
- "warnings": [
- "string"
], - "mailboxEmail": "string",
- "mailboxIsArchive": true,
- "mailboxIsPublic": true,
- "createdMailboxItemsCount": 0,
- "mergedMailboxItemsCount": 0,
- "failedMailboxItemsCount": 0,
- "skippedMailboxItemsCount": 0,
- "cannotContinueMailboxError": "string",
- "childItems": [
- { }
], - "oneDriveWebId": "00000000-0000-0000-0000-000000000000",
- "oneDriveSiteId": "00000000-0000-0000-0000-000000000000",
- "oneDriveUrl": "string"
}
]
}Get Device Code
Allows you to obtain a device code from Microsoft Identity platform to restore data of Microsoft 365 organizations added using modern app-only authentication.
path Parameters
| restoreSessionId required | string <uuid> Specifies the identification number of the restore session. For more information on how to get this parameter, see Get Restore Sessions. |
Request Body schema: application/jsonrequired
| targetApplicationId | string or null <uuid> Specifies the ID of the Microsoft Entra application that you want to use for data restore. |
| targetRegion | string or null Specifies a region of the Microsoft 365 organization that contains data you want to restore. Note: This property is only required when planning to restore to a custom location. |
| targetOrganizationName | string Specifies a name of the Microsoft 365 organization to which you want to restore data. Note: This property is only required when planning to restore to a custom location. |
OK
Operation failure response.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "targetApplicationId": "00000000-0000-0000-0000-000000000000",
- "targetRegion": "Worldwide",
- "targetOrganizationName": "string"
}- 200
- default
{- "userCode": "string",
- "verificationUrl": "string",
- "expiresIn": 0,
- "message": "string"
}Create Restore Session for Tenant Organization
Creates and starts a restore session to explore and restore data of a tenant Microsoft organization.
To use this resource, make sure to obtain a token using the same credentials that were used to add the organization instead of credentials of an administrative account. For organizations with modern app-only authentication, obtain a token using an assertion obtained from Microsoft Identity platform. For more information, see the Veeam Backup for Microsoft 365 REST API Reference, section Authorization for Tenants.
Request Body schema: application/jsonrequired
| dateTime | string or null <date-time> Specifies the date and time. |
| type | string or null Specifies a type of the restore session to start. |
| showDeleted | boolean or null Defines whether the restore session will show items that have been removed by the user before the specified date. |
| showAllVersions | boolean or null Defines whether the restore session will show all versions of items that have been modified by the user before the specified date. |
Created
Operation failure response.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "dateTime": "2019-08-24T14:15:22Z",
- "type": "Vex",
- "showDeleted": true,
- "showAllVersions": true
}- 201
- default
{- "id": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "organization": "string",
- "type": "Vex",
- "creationTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "state": "Working",
- "result": "Success",
- "initiatedBy": "string",
- "details": "string",
- "scopeName": "string",
- "clientHost": "string",
- "reason": "string",
- "eTag": 0,
- "_links": {
- "property1": {
- "href": "string"
}, - "property2": {
- "href": "string"
}
}
}Create Restore Session for Restore Operator
Creates and starts a restore session to explore and restore data using Restore Portal.
To use this resource, make sure to obtain a token using an assertion obtained from Microsoft Identity platform and log in to Veeam Backup for Microsoft 365 REST API as a restore operator. For more information, see the Veeam Backup for Microsoft 365 REST API Reference, section Authorization for Restore Operators.
Request Body schema: application/jsonrequired
| dateTime | string or null <date-time> Specifies the date and time. |
| type | string or null Specifies a type of the restore session to start. |
| showDeleted | boolean or null Defines whether the restore session will show items that have been removed by the user before the specified date. |
| showAllVersions | boolean or null Defines whether the restore session will show all versions of items that have been modified by the user before the specified date. |
object (RESTRbacItemComposed) x-anyOf: [{"$ref":"#/components/schemas/RESTRbacUserItem"},{"$ref":"#/components/schemas/RESTRbacSiteItem"},{"$ref":"#/components/schemas/RESTRbacGroupItem"},{"$ref":"#/components/schemas/RESTRbacTeamItem"}] | |
| repositoryId | string or null <uuid> Specifies the backup repository ID. |
| reason | string Specifies a reason for the restore operation. |
Created
Operation failure response.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "dateTime": "2019-08-24T14:15:22Z",
- "type": "Vex",
- "showDeleted": true,
- "showAllVersions": true,
- "scope": {
- "type": "Group",
- "user": {
- "id": "string",
- "onPremisesSid": "string",
- "displayName": "string",
- "name": "string",
- "type": "User"
}, - "id": "string",
- "site": {
- "id": "string",
- "url": "string",
- "title": "string",
- "parentUrl": "string",
- "isCloud": true,
- "isPersonal": true
}, - "group": {
- "id": "string",
- "onPremisesSid": "string",
- "displayName": "string",
- "name": "string",
- "type": "Office365"
}, - "team": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "description": "string",
- "displayName": "string",
- "mail": "string"
}
}, - "repositoryId": "5aa3e9fa-2d0a-4c21-ad54-43217e2bc9c0",
- "reason": "string"
}- 201
- default
{- "id": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "organization": "string",
- "type": "Vex",
- "creationTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "state": "Working",
- "result": "Success",
- "initiatedBy": "string",
- "details": "string",
- "scopeName": "string",
- "clientHost": "string",
- "reason": "string",
- "eTag": 0,
- "_links": {
- "property1": {
- "href": "string"
}, - "property2": {
- "href": "string"
}
}
}