Replace a Reseller Backup Resource
You can change parameters of a backup resource by replacing it in Veeam Availability Console configuration.
Request
To replace a backup resource in Veeam Availability Console, send the PUT HTTPS request to the URL of the /resellers/{ID}/backupResources/{ID} resource.
HTTP Request
PUT https://<Availability-Console>:1281/v2/tenants/{ID}/backupResources/{ID} |
Request Headers
The request header must contain the authorization token for the current logon session.
Request Body
In the request body, the client must send the following properties for the cloud repository that will replace the existing one in Veeam Availability Console:
- backupRepositoryUid
- cloudConnectAgentUid
- cloudRepositoryFriendlyName
- quota
Response
The server returns the following response to the client.
Response Code
A successfully completed operation returns response code 201 Created.
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 status and a message for an action.
Example
The following example replaces backup resource with ID 4 in Veeam Availability Console configuration.
Request: PUT https://localhost:1281/v2/resellers/6/backupResources/4
Request Header: Content-Type: application/json Authorization: Bearer <Access-Token>
Request Body: { "backupRepositoryUid": "43c518a9-df1b-47c5-a510-f70e931220d0", "cloudConnectAgentUid": "2f39185f-8d04-42a5-83d1-3f18cf55a50d", "cloudRepositoryFriendlyName": "CloudRep8", "quota": { "storageGb": 300, "quotasIsUnlimited": true, "vms": 0, "workstations": 0, "servers": 0 } }
Response Code: 201
Response Body: "Replica resources have been replaced." |