All Products
Search
Document Center

ApsaraMQ for RocketMQ:GetDisasterRecoveryPlan

Last Updated:Jul 31, 2025

Queries the details of a Global Replicator task.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
rocketmq:GetDisasterRecoveryPlanget
*Instance
acs:rocketmq:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request syntax

GET /disaster_recovery/{planId} HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
planIdlongYes

The ID of the Global Replicator task.

1234

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

requestIdstring

The request ID.

7358418D-83BD-507A-8079-611C63E0xxx
successboolean

Indicates whether the request was successful.

true
dataobject

The returned data.

planIdlong

The ID of the Global Replicator task.

1300000016
planNamestring

The name of the Global Replicator task.

xxx
planDescstring

The description of the Global Replicator task.

xxxx
planTypestring

The type of the Global Replicator task. Valid values:

  • ACTIVE_PASSIVE: one-way backup
  • ACTIVE_ACTIVE: two-way backup
ACTIVE_PASSIVE
planStatusstring

The status of the Global Replicator task. Valid values:

  • CREATED
  • RUNNING
  • DELETED
RUNNING
extInfoobject

The extended information.

string

The extended information.

xxxx
instancesarray<object>

The instances involved in the Global Replicator task.

instanceobject

The instance involved in the Global Replicator task.

instanceTypestring

The instance type.

ALIYUN_ROCKETMQ
regionIdstring

The ID of the region where the instance resides.

cn-shanghai
instanceIdstring

The instance ID.

rmq-cn-gpz3qtcdxxx
instanceRolestring

The instance role.

ACTIVE
authTypestring

The authentication type.

ACL_AUTH
usernamestring

The username used for authentication.

xxx
passwordstring

The password used for authentication.

xxx
endpointUrlstring

The endpoint.

xxx
networkTypestring

The network type.

TCP_INTERNET
vpcIdstring

The virtual private cloud (VPC) ID.

vpc-wz9qt50xhtj9krb******
vSwitchIdstring

The vSwitch ID.

vsw-uf6gwtbn6etadpv******
messagePropertyobject

The message attribute.

propertyKeystring

The attribute key.

xxx
propertyValuestring

The attribute value.

xxx
securityGroupIdstring

The security group ID.

sg-bp17hpmgz9******
consumerGroupIdstring

The consumer Group ID.

GID_DS_XXX_YYY
createTimestring

The time when the query task was created.

2022-08-01 20:05:50
updateTimestring

The time when the query task was last modified.

2022-08-01 20:05:50
autoSyncCheckpointboolean

Indicates whether automatic consumer progress synchronization is enabled.

Note This parameter takes effect only when syncCheckpointEnabled is set to true.

Valid values:

  • true
  • false
true
syncCheckpointEnabledboolean

Indicates whether consumer progress synchronization is enabled.

Valid values:

  • true
  • false
true
codestring

The error code.

200
messagestring

The error message.

xxx
httpStatusCodeinteger

The response code.

200
dynamicCodestring

The dynamic error code.

InstanceId
dynamicMessagestring

The dynamic error message.

instanceId
accessDeniedDetailstring

The details about the access denial. This parameter is returned only if the access is denied because the Resource Access Management (RAM) user does not have the required permissions.

xxx

Examples

Sample success responses

JSONformat

{
  "requestId": "7358418D-83BD-507A-8079-611C63E0xxx",
  "success": true,
  "data": {
    "planId": 1300000016,
    "planName": "xxx",
    "planDesc": "xxxx",
    "planType": "ACTIVE_PASSIVE",
    "planStatus": "RUNNING",
    "extInfo": {
      "key": "xxxx"
    },
    "instances": [
      {
        "instanceType": "ALIYUN_ROCKETMQ",
        "regionId": "cn-shanghai",
        "instanceId": "rmq-cn-gpz3qtcdxxx",
        "instanceRole": "ACTIVE",
        "authType": "ACL_AUTH",
        "username": "xxx",
        "password": "xxx",
        "endpointUrl": "xxx",
        "networkType": "TCP_INTERNET",
        "vpcId": "vpc-wz9qt50xhtj9krb******\n",
        "vSwitchId": "vsw-uf6gwtbn6etadpv******\n",
        "messageProperty": {
          "propertyKey": "xxx",
          "propertyValue": "xxx"
        },
        "securityGroupId": "sg-bp17hpmgz9******\n",
        "consumerGroupId": "GID_DS_XXX_YYY"
      }
    ],
    "createTime": "2022-08-01 20:05:50",
    "updateTime": "2022-08-01 20:05:50",
    "autoSyncCheckpoint": true,
    "syncCheckpointEnabled": true
  },
  "code": 200,
  "message": "xxx",
  "httpStatusCode": 200,
  "dynamicCode": "InstanceId",
  "dynamicMessage": "instanceId",
  "accessDeniedDetail": "xxx"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history