Getting Organization Repositories
This section explains how to get a list with used backup repositories for the specified organization.
Request
GET https://<hostname>:4443/v4/Organizations/{organizationId}/UsedRepositories |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be posted as URL.
Parameter | Type | Description |
---|---|---|
organizationId | string | An identification number of the organization. |
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
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). |
Example
Request: GET https://abc.tech.local:4443/v4/Organizations/a21a5622-7fb2-49ec-b2b2-393da59fbed2/UsedRepositories
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK [ { "usedSpaceBytes": 2671837184, "localCacheUsedSpaceBytes": 0, "objectStorageUsedSpaceBytes": 0, "isAvailable": true, "details": "", "_links": {"backupRepository": {"href": "https://delta.tech.local:4443/v4/backuprepositories/8f16b53c-1d81-4c0c-91c2-13726d08bfcf"}} }, { "usedSpaceBytes": 0, "localCacheUsedSpaceBytes": 4653056, "objectStorageUsedSpaceBytes": 2141048103, "isAvailable": true, "details": "", "_links": {"backupRepository": {"href": "https://delta.tech.local:4443/v4/backuprepositories/88c2d283-63db-475a-914b-94e0b592d3cd"}} } ] |