This is an archive version of the document. To get the most up-to-date information, see the current version.

Getting Organization Repositories

You can get a list with used backup repositories for the specified organization.

Request

GET https://<hostname>:4443/v5/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 Office 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 contains the following information:

Property

Type

Description

usedSpaceBytes

integer

Shows the occupied space in Bytes.

localCacheUsedSpaceBytes

integer

Shows the space occupied by cache if the backup repository is extended with object storage.

objectStorageUsedSpaceBytes

integer

Shows the occupied space in object storage in bites.

isAvailable

boolean

Shows if the backup repository is available for backup and restore.

details

string

Shows details about the backup repository.

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

Examples

Example 1

Request:

GET https://abc.tech.local:4443/v5/Organizations/a21a5622-7fb2-49ec-b2b2-393da59fbed2/UsedRepositories

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

[

     {

     "usedSpaceBytes": 2671837184,

     "localCacheUsedSpaceBytes": 0,

     "objectStorageUsedSpaceBytes": 0,

     "isAvailable": true,

     "details": "",

     "_links": {"backupRepository": {"href": "https://delta.tech.local:4443/v5/backuprepositories/8f16b53c-1d81-4c0c-91c2-13726d08bfcf"}}

  },

     {

     "usedSpaceBytes": 0,

     "localCacheUsedSpaceBytes": 4653056,

     "objectStorageUsedSpaceBytes": 2141048103,

     "isAvailable": true,

     "details": "",

     "_links": {"backupRepository": {"href": "https://delta.tech.local:4443/v5/backuprepositories/88c2d283-63db-475a-914b-94e0b592d3cd"}}

  }

]