Skip to main content

Retrieve Microsoft 365 Devices

Thread needs solution
Beginner
Posts: 1
Comments: 0

I'm playing around with the API. I find it hard to retrieve a good overview of all possible API Calls. It's like there are 5 different API documentations and only one contains information of all the api calls. (https://developer.acronis.com/doc/account-management/v2)

I can retrieve all Child Tenants. But I want to retrieve a list of Microsoft 365 Devices that are protected. Surely there should be an Device endpoint for the API. I found something but it looks to be API V1 which is giving me 404 errors.

I need the following information:

Amount of Microsoft 365 Seats -> available / in use
Each mailbox name that is actively backupped.

How/where do I fetch this information?

0 Users found this helpful
Acronis engineer
Posts: 0
Comments: 53

Hello Gerben,

The only official web page with all the public Acronis APIs is at: https://developer.acronis.com/doc/
The Account Management API is at: https://developer.acronis.com/doc/account-management/v2/guide/index
Endpoints at: https://developer.acronis.com/doc/account-management/v2/reference/index…

Microsoft 365 Seats usages are fetched with GET /tenants/{tenant_id}/usages endpoint: https://developer.acronis.com/doc/account-management/v2/reference/index…

With applied filters for Per Gigabyte model: /tenants/{tenant_id}/usages?editions=pck_per_gigabyte&usage_names=mailboxes

With applied filters for Per Workload model: /tenants/{tenant_id}/usages?editions=pck_per_workload&usage_names=mailboxes

Each mailbox name that is actively backed up cannot be fetched with the available public APIs, there is no public endpoint to provide such granularity.

With Resource Management API, or GET /api/resource_management/{version}/resources endpoint you can fetch devices: https://developer.acronis.com/doc/resource-policy-management/v4/referen…

Using the type filter you can retrieve the devices where running Microsoft Office 365 applications, server itself and the resource of type mailboxes with:

GET /api/resource_management/v4/resources?type=resource.group.msexchange_mailboxes,resource.group.msexchange_online_server

We cannot go any deeper with the currently available public API.

I hope this is helpful.