获取恢复任务记录详情
更新时间 2025-09-18 11:21:46
最近更新时间: 2025-09-18 11:21:46
接口功能介绍
获取恢复任务记录详情
接口约束
恢复记录存在
URI
GET /RDS2/v2/open-api/recovery/record-details
路径参数 无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
id | 是 | Long | 记录主键Id | 123 | |
outerProdInstId | 是 | String | 实例ID | 81f7728662dd11ec810800155d307d5b |
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
project-id | 否 | String | 项目id | b829cb71308746a094853c21d5aac0a1 | |
inst-id | 否 | String | 实例id (和参数outerProdInstId保持一致) | 264729201196525109 | |
regionId | 是 | String | 资源池regionId,比如实例在资源池A,则需要填写A资源池的regionId。 | 81f7728662dd11ec810800155d307d5b |
请求体body参数 无
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | Integer | 返回码 | 0 | |
message | String | 返回消息 | ||
returnObj | Object | 返回结果 | returnObj | |
error | String | 错误码。当接口失败时才返回具体错误编码,成功不返回或者为空 | MYSQL_10002 | |
表 returnObj |
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
data | Array of Strings | 返回内容 |
枚举参数
无
请求示例
请求url
/RDS2/v2/open-api/recovery/record-details?outerProdInstId=81f7728662dd11ec810800155d307d5b&id=1
请求头header
无
请求体body
无
响应示例
{
"returnObj":{
"data":[
"The KMS pre checking is passed ",
"The host connectivity pre checking is passed ",
"The engine version pre checking is passed ",
"The storage space pre checking is passed ",
"The VPC pre checking is passed ",
"The firewall pre checking is passed ",
"The instance status pre checking is passed ",
"clear firewall rules is passed ",
"Recovery process:",
"checkAndInitTables failed. tables:[\"test1\"] are not exist in database:test_db at the recovery time."
]
},
"statusCode":0,
"message":"success"
}
状态码
请参考 状态码
错误码
请参考 错误码