查询恢复记录列表
更新时间:2023-11-29
说明
- 查询指定实例的恢复记录列表
请求结构
Plain Text
1GET /v{version}/instance/{instanceId}/restoreRecord?marker={marker}&maxKeys={maxKeys} HTTP/1.1
2HOST: hbase.bj.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必须 | 参数位置 | 描述 |
|---|---|---|---|---|
| version | string | 是 | URL参数 | API版本号,当前取值1 |
| instanceId | string | 是 | URL参数 | 指定实例Id |
| marker | string | 否 | Query参数 | 批量获取列表的查询的起始位置,是一个由系统生成的字符串 |
| maxKeys | int | 否 | Query参数 | 每页包含的最大数量,可选10/20/30,默认10 |
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| marker | string | 批量获取列表的查询的起始位置,是一个由系统生成的字符串 |
| maxKeys | int | 每页包含的最大数量 |
| isTruncated | boolean | true表示后面还有数据,false表示已经是最后一页 |
| nextMarker | string | 获取下一页所需要传递的marker值。当isTruncated为false时,该域不出现 |
| result | List<RestoreRecord> | 备份信息列表。参见 API参考/备份接口/附录/RestoreRecord |
请求示例
Plain Text
1GET /v1/instance/hb-abc123/restoreRecord HTTP/1.1
2HOST: hbase.bj.baidubce.com
3Authorization: authorization string
返回示例
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Content-Type: application/json;charset=UTF-8
4{
5 "nextMarker": nextBackupId,
6 "marker": currentBackupId,
7 "maxKeys": maxPageCount,
8 "isTruncated": is_truncated,
9 "restoreRecords": [{
10 "backupId": "backup-TcWW9N",
11 "endTime": "2023-02-24T02:58:21Z",
12 "errMsg": "",
13 "id": "restore-eOydUW",
14 "restoreAllTable": true,
15 "result": "SUCCEED",
16 "startTime": "2023-02-24T02:56:47Z",
17 "status": "FINISHED",
18 "tables": ""
19 },
20 {
21 "backupId": "backup-TcWW9N",
22 "endTime": "2023-02-24T03:02:51Z",
23 "errMsg": "",
24 "id": "restore-dnjKi0",
25 "restoreAllTable": false,
26 "result": "SUCCEED",
27 "startTime": "2023-02-24T03:02:16Z",
28 "status": "FINISHED",
29 "tables": "ns2:table1/ns3:table"
30 }
31 ]
32}
