This section provides the following topics:
- Input Data
- Output Data
- Error Code
Input Data
To disable or enable backup sets, a Post request is executed with the id of the backup set and the desired state.
Request Example
POST /v2/accounts/test_acc/computers/0000/backupsets/toggle
{
"backupSetId": 10,
"value": true
}
- backupSetId: the id of the target backup set; this can is obtained using a different REST API
- value: <bool>
¾ true: to enable the target backup set
¾ false: to disable the target backup set
Output Data
If the request is successful, the id of the newly created action is returned (actionId).
Operation Result
The id of the action is required for this operation.
GET /v2/accounts/test_acc/computers/0000/backupsets/<actionId>/info
Error Code
ErrorCode.BackupSetActions_NotFound - cannot find the backup set corresponding to the provided id.