DescribeRecoveryPlan - 查询恢复计划详情

查询恢复计划详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
hdr:DescribeRecoveryPlanget
*全部资源
*

请求参数

名称类型必填描述示例值
RecoveryPlanIdstring

恢复计划 ID。

rp-xxxxxxxxxxxxxxxxxx

返回参数

名称类型描述示例值
object
Statusstring

恢复计划状态。其中,

  • creating:创建中
  • updating:更新中
  • deleting:删除中
  • failed:失败
  • init:已初始化
  • running:执行中
init
Directionstring

恢复计划的方向,支持 forward

forward
RequestIdstring

请求 ID。

6F3884EC-AECB-52EF-AFE3-BC13A9688DEB
Successboolean

是否成功。

True
Codestring

返回码。

200
Messagestring

返回信息。

successful
Namestring

恢复计划名称。

test
Contentstring

恢复计划详情。

{ "groups": [ { "name": "Group-1", "id": "Group-1", "servers": [ { "name": "sr-xxxxxxxxxxxxxxxxxx", "serverId": "sr-xxxxxxxxxxxxxxxxxx", "testFailoverAction": { "eipAddressId": "", "recoveryPostScriptContent": "", "recoveryPostScriptType": "POWERSHELL", "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo", "recoveryCpu": 2, "recoveryMemory": 4294967296, "recoveryUseEssd": false, "recoveryUseSsd": false, "recoveryReserveIp": false, "recoveryUseDhcp": true, "recoveryIpAddress": "", "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx" }, "testCleanupAction": {}, "changeRecoveryPointAction": { "eipAddressId": "", "recoveryPostScriptContent": "", "recoveryPostScriptType": "POWERSHELL", "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr", "recoveryCpu": 2, "recoveryMemory": 4294967296, "recoveryUseEssd": false, "recoveryUseSsd": false, "recoveryReserveIp": false, "recoveryUseDhcp": true, "recoveryIpAddress": "", "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx" }, "forcedFailoverAction": { "eipAddressId": "", "recoveryPostScriptContent": "", "recoveryPostScriptType": "POWERSHELL", "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo", "recoveryCpu": 2, "recoveryMemory": 4294967296, "recoveryUseEssd": false, "recoveryUseSsd": false, "recoveryReserveIp": false, "recoveryUseDhcp": true, "recoveryIpAddress": "", "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx" } } ] } ] }
RecoveryPlanIdstring

恢复计划 ID。

rp-xxxxxxxxxxxxxxxxxx

示例

正常返回示例

JSON格式

{
  "Status": "init",
  "Direction": "forward",
  "RequestId": "6F3884EC-AECB-52EF-AFE3-BC13A9688DEB",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "Name": "test",
  "Content": "{\n    \"groups\": [\n        {\n            \"name\": \"Group-1\",\n            \"id\": \"Group-1\",\n            \"servers\": [\n                {\n                    \"name\": \"sr-xxxxxxxxxxxxxxxxxx\",\n                    \"serverId\": \"sr-xxxxxxxxxxxxxxxxxx\",\n                    \"testFailoverAction\": {\n                        \"eipAddressId\": \"\",\n                        \"recoveryPostScriptContent\": \"\",\n                        \"recoveryPostScriptType\": \"POWERSHELL\",\n                        \"recoveryInstanceName\": \"HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo\",\n                        \"recoveryCpu\": 2,\n                        \"recoveryMemory\": 4294967296,\n                        \"recoveryUseEssd\": false,\n                        \"recoveryUseSsd\": false,\n                        \"recoveryReserveIp\": false,\n                        \"recoveryUseDhcp\": true,\n                        \"recoveryIpAddress\": \"\",\n                        \"recoveryNetwork\": \"vsw-xxxxxxxxxxxxxxxxxx\"\n                    },\n                    \"testCleanupAction\": {},\n                    \"changeRecoveryPointAction\": {\n                        \"eipAddressId\": \"\",\n                        \"recoveryPostScriptContent\": \"\",\n                        \"recoveryPostScriptType\": \"POWERSHELL\",\n                        \"recoveryInstanceName\": \"HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr\",\n                        \"recoveryCpu\": 2,\n                        \"recoveryMemory\": 4294967296,\n                        \"recoveryUseEssd\": false,\n                        \"recoveryUseSsd\": false,\n                        \"recoveryReserveIp\": false,\n                        \"recoveryUseDhcp\": true,\n                        \"recoveryIpAddress\": \"\",\n                        \"recoveryNetwork\": \"vsw-xxxxxxxxxxxxxxxxxx\"\n                    },\n                    \"forcedFailoverAction\": {\n                        \"eipAddressId\": \"\",\n                        \"recoveryPostScriptContent\": \"\",\n                        \"recoveryPostScriptType\": \"POWERSHELL\",\n                        \"recoveryInstanceName\": \"HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo\",\n                        \"recoveryCpu\": 2,\n                        \"recoveryMemory\": 4294967296,\n                        \"recoveryUseEssd\": false,\n                        \"recoveryUseSsd\": false,\n                        \"recoveryReserveIp\": false,\n                        \"recoveryUseDhcp\": true,\n                        \"recoveryIpAddress\": \"\",\n                        \"recoveryNetwork\": \"vsw-xxxxxxxxxxxxxxxxxx\"\n                    }\n                }\n            ]\n        }\n    ]\n}",
  "RecoveryPlanId": "rp-xxxxxxxxxxxxxxxxxx"
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2024-01-09API 内部配置变更,不影响调用查看变更详情