Getting Backup Repository Properties by Backup Repository ID
This section explains how to get a list with properties for the specified backup repository.
Request
GET https://<hostname>/api/v1/repositories/{repositoryId} |
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 | Description |
repositoryId | The identification number of the backup repository. Can be obtained as described in Getting Backup Repositories. |
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 |
|---|---|---|
id | integer | Shows the identification number of the backup repository. |
name | string | Shows the name of the backup repository. |
description | string | Shows the description of the backup repository. |
azureStorageAccountId | string | Shows the identification number of the Azure storage account. |
azureStorageAccountName | string | Shows the name of the Azure storage account. |
azureStorageFolder | Shows the name of the folder that is used as a backup repository. | |
azureStorageContainer | Shows the name of the container that contains the repository folder. | |
enableEncryption | boolean | Shows if the encryption is enabled. |
hint | string | Shows the password hint. |
regionId | string | Shows the identification number of the Azure region. |
regionName | string | Shows the name of the Azure region. |
azureConnectionId | integer | Shows the identification number of the Azure connection. |
environment | string | Shows the Azure environment. |
status | string | Shows the status of the backup repository. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Property | Type | Description |
|---|---|---|
name | string | Shows the name of the Azure container or folder. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Example
Request: GET https://abc.ukwest.cloudapp.azure.com/api/v1/repositories/2
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "id": 2, "name": "Backup Repository", "description": "", "azureStorageAccountId": "6s9rdnmvdsnmebudp49abg8gg44k3t4huhka9anrca1smd9u8wwo", "azureStorageAccountName": "twstorageaccounttim", "azureStorageFolder": { "name": "OSRv1", "_links": {} }, "azureStorageContainer": { "name": "container2", "_links": {} }, "enableEncryption": true, "hint": "123", "regionId": "westeurope", "regionName": "westeurope", "azureConnectionId": 9, "environment": "Global", "status": "Ready", "_links": {} } |