附录
更新时间:2023-11-29
对象定义
BackupRecord
| 参数名称 | 类型 | 描述 |
|---|---|---|
| id | string | 备份ID |
| target | string | 备份存储源 |
| backupAllTable | boolean | 是否备份所有的表 |
| tables | string | 创建备份时,指定的表信息 |
| mode | string | 备份模式,取值参见 BackupRecord_mode |
| status | string | 备份状态,取值参见 BackupRecord_status |
| result | string | 备份结果,取值参见 BackupRecord_result |
| errMsg | string | 备份失败原因 |
| startTime | string | 备份开始时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间) |
| endTime | string | 备份结束时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间) |
| size | int64 | 备份大小,单位:字节 |
| description | string | 备注信息 |
RestoreRecord
| 参数名称 | 类型 | 描述 |
|---|---|---|
| id | string | 恢复记录ID |
| instanceId | string | 备份所属实例ID |
| backupId | string | 备份ID |
| restoreAllTable | boolean | 是否恢复所有的表 |
| tables | string | 恢复数据库时,指定的表信息 |
| status | string | 恢复状态,取值参见 RestoreRecord_status |
| result | string | 恢复结果,取值参见 RestoreRecord_result |
| errMsg | string | 恢复失败原因 |
| startTime | string | 恢复开始时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间) |
| endTime | string | 恢复结束时间,格式为yyyy-MM-ddTHH:mm:ssZ(UTC时间) |
编码定义
BackupRecord_mode
| 编码 | 描述 |
|---|---|
| Automated | 系统备份 |
| Manual | 手动备份 |
BackupRecord_status
| 编码 | 描述 |
|---|---|
| INIT | 初始化 |
| BACKUPING | 备份中 |
| FINISHED | 已完成 |
| DELETING | 删除中 |
| DELETED | 已删除 |
| TO_BE_DELETED | 待删除 |
BackupRecord_result
| 编码 | 描述 |
|---|---|
| UNKOWN | 未知 |
| SUCCEED | 成功 |
| FAILED | 失败 |
RestoreRecord_status
| 编码 | 描述 |
|---|---|
| INIT | 初始化 |
| RESTORING | 恢复中 |
| FINISHED | 已完成 |
RestoreRecord_result
| 编码 | 描述 |
|---|---|
| UNKOWN | 未知 |
| SUCCEED | 成功 |
| FAILED | 失败 |
