Add restore resources

2025-01-10 06:15:54  Updated

Purpose

You can call this operation to manually add the paths of restore resources.

Call description

Limitations

None.

Request path

POST /api/v2/ob/backup/restore/addRestoreSource

Request parameters

Parameter Type Required Example value Description
restoreClusterId Integer Yes 1001 The ID of the cluster to restore.
restoreSources Array Yes file:///obbackup/backup_3245/1704259760/incarnation_1/1002/data/backup_set_24_full_20240406, file:///obbackup/backup_3245/1704259760/incarnation_1/1002/clog/6_38_20240405 The set of paths of restore resources.

Response parameters

Parameter Type Description
successful Boolean Indicates whether the request is successful.
timestamp Datetime The timestamp when the server completed the request.
duration Integer The amount of time taken by the server to process the request, in milliseconds.
status Integer The HTTP status code.
traceId String The trace ID of the request. This trace ID is used for troubleshooting.
server String The address of the application server that responds to the request.

Examples

Sample request

restoreClusterId:14
restoreSources:file:///obbackup/backup_3245/1704259760/incarnation_1/1002/data/backup_set_24_full_20240406, file:///obbackup/backup_3245/1704259760/incarnation_1/1002/clog/6_38_20240405

Sample response

{
    "duration": 168,
    "server": "d21b8dbaea",
    "status": 200,
    "successful": true,
    "timestamp": "2024-04-25T19:23:27.372+08:00",
    "traceId": "9fcd1125284745fe"
}

Contact Us