Getting Organization Repositories
You can get a list of used backup repositories for the specified organization.
Request
GET https://<hostname>:4443/v6/Organizations/{organizationId}/UsedRepositories |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameter must be specified in the URL of the request:
Parameter | Type | Description |
---|---|---|
organizationId | string | Specifies the identification number of the Microsoft 365 organization. For more information on how to get this parameter, see Getting Organizations. |
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
The response body contains the following properties:
Property | Type | Description |
---|---|---|
usedSpaceBytes | integer | Specifies the occupied space in Bytes. |
localCacheUsedSpaceBytes | integer | Specifies the space occupied by cache if the backup repository is extended with object storage. |
objectStorageUsedSpaceBytes | integer | Specifies the occupied space in object storage in bites. |
isAvailable | boolean | Defines whether the backup repository is available for backup and restore. |
details | string | Specifies details about the backup repository. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Example
The example shows how to get information about used backup repositories for the the Microsoft 365 organization with the ID 7665cf30-ee89-4d0d-a343-2776da77ed79.
Request: GET https://abc.tech.local:4443/v6/Organizations/7665cf30-ee89-4d0d-a343-2776da77ed79/usedRepositories
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "offset": 0, "limit": 30, "_links": { "self": { "href": "/v6/Organizations/7665cf30-ee89-4d0d-a343-2776da77ed79/usedRepositories?offset=0&limit=30" } }, "results": [ { "usedSpaceBytes": 0, "localCacheUsedSpaceBytes": 3473408, "objectStorageUsedSpaceBytes": 2499432773, "isAvailable": true, "details": "", "_links": { "backupRepository": { "href": "/v6/backuprepositories/cfe34111-3331-45c0-babf-0be32e030444" } } }, { "usedSpaceBytes": 0, "localCacheUsedSpaceBytes": 0, "objectStorageUsedSpaceBytes": 2348310138, "isAvailable": true, "details": "", "_links": { "backupRepository": { "href": "/v6/backuprepositories/880cb276-127e-4da1-96c1-0d97ecdecd4d" } } }, { "usedSpaceBytes": 9559506944, "localCacheUsedSpaceBytes": 0, "objectStorageUsedSpaceBytes": 0, "isAvailable": true, "details": "", "_links": { "backupRepository": { "href": "/v6/backuprepositories/e412ad5a-a100-462b-8fca-85d7c6415f06" } } } ], "setId": "00000000-0000-0000-0000-000000000000" } |