You can get a representation of a collection of all cloud repository resources available for a company or department with the specified ID.
Request
To get all company or department cloud repository resources in Veeam Availability Console, send the GET HTTPS request to the URL of the /Tenants/{ID}/BackupResources collection.
HTTP Request
GET https://<Availability-Console>:1281/v2/Tenants/{ID}/BackupResources |
Request Headers
The request header must contain the authorization token for the current logon session.
Response
The server returns the following response to the client.
Response Code
A successfully completed operation returns response code 200 Success.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the request body message: application/json; charset=utf-8 |
Response Body
In the response body, Veeam Availability Console returns a representation of the /Tenants/{ID}/BackupResources collection.
Example
The following request returns all cloud repository resources available in Veeam Availability Console for a company with ID 2.
Request: GET https://localhost:1281/v2/Tenants/2/BackupResources
Request Header: Authorization: Bearer <Access-Token>
Response Code: 200 Success
Response Body: [ { "id": 1, "cloudRepositoryName": "Delta Cloud Vol01", "storageQuota": 300, "storageQuotaUnits": "GB", "vMsQuota": 0, "trafficQuota": 0, "trafficQuotaUnits": "GB", "wanAccelerationEnabled": true, "usedStorageQuota": 10.6, "usedStorageQuotaUnits": "GB", "usedTrafficQuota": 1.9, "usedTrafficQuotaUnits": "MB", "_links": { "self": { "href": "https://vac.tech.local:1281/v2/tenants/2/backupResources/1" }, "backupRepositories": { "href": "https://vac.tech.local:1281/v2/backupRepositories/7" }, "wanAccelerators": { "href": "https://vac.tech.local:1281/v2/wanAccelerators/4512013c-376b-47db-8837-286399790ca8" } } }, { "id": 2, "cloudRepositoryName": "Delta Cloud Vol02", "storageQuota": 500, "storageQuotaUnits": "GB", "vMsQuota": 0, "trafficQuota": 0, "trafficQuotaUnits": "GB", "wanAccelerationEnabled": true, "usedStorageQuota": 11.7, "usedStorageQuotaUnits": "GB", "usedTrafficQuota": 12.2, "usedTrafficQuotaUnits": "KB", "_links": { "self": { "href": "https://vac.tech.local:1281/v2/tenants/2/backupResources/2" }, "backupRepositories": { "href": "https://vac.tech.local:1281/v2/backupRepositories/7" }, "wanAccelerators": { "href": "https://vac.tech.local:1281/v2/wanAccelerators/4512013c-376b-47db-8837-286399790ca8" } } } ] |