Membuat rencana pemulihan bencana.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:CreateDisasterRecoveryPlan |
update |
*Instance
|
None | None |
Sintaks permintaan
POST /disaster_recovery HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| planName |
string |
No |
The name of the Global Replicator task. You must specify this parameter. |
xxx |
| planDesc |
string |
No |
The description of the Global Replicator task. |
xxx |
| planType |
string |
No |
The type of the Global Replicator task. You must specify this parameter. For more information, see Global Replicator. Valid values:
Valid values:
|
ACTIVE_ACTIVE |
| instances |
array<object> |
No |
The instances involved in the Global Replicator task. You must specify this parameter. |
|
|
array<object> |
No |
The instance involved in the Global Replicator task. |
||
| instanceType |
string |
No |
The instance type. Valid values:
Valid values:
Valid values:
|
ALIYUN_ROCKETMQ |
| regionId |
string |
No |
The region where the instance resides. |
cn-hangzhou |
| instanceId |
string |
No |
The instance ID. This parameter is required only if you set instanceType to ALIYUN_ROCKETMQ. |
rmq-cn-****** |
| instanceRole |
string |
No |
The instance role. Valid values:
Valid values:
|
PASSIVE |
| authType |
string |
No |
The authentication method. If you set instanceType to ALIYUN_ROCKETMQ and the instance is an ApsaraMQ for RocketMQ 4.0 instance, you do not need to specify this parameter.
Valid values:
Valid values:
|
ACL_AUTH |
| username |
string |
No |
The username used for authentication. This parameter is required only if you set authType to ACL_AUTH. |
xxx |
| password |
string |
No |
The password used for authentication. This parameter is required only if you set authType to ACL_AUTH. If you set instanceType to ALIYUN_ROCKETMQ, you do not need to specify this parameter. |
xxx |
| endpointUrl |
string |
No |
The instance endpoint. This parameter is required only if you set instanceType to EXTERNAL_ROCKETMQ. |
xxx |
| networkType |
string |
No |
The network type. This parameter is required only if you set instanceType to EXTERNAL_ROCKETMQ. Valid values:
Valid values:
|
TCP_INTERNET |
| vpcId |
string |
No |
The ID of the VPC with which the instance is associated. This parameter is required only if you set instanceType to EXTERNAL_ROCKETMQ and networkType to TCP_VPC. |
vpc-wz9qt50xhtj9krb****** |
| vSwitchId |
string |
No |
The ID of the vSwitch with which the instance is associated. This parameter is required only if you set instanceType to EXTERNAL_ROCKETMQ and networkType to TCP_VPC. |
vsw-uf6gwtbn6etadpv****** |
| messageProperty |
object |
No |
The message attribute. When you synchronize a message to the destination cluster, the system automatically adds the attribute to the message for SQL-based filtering. |
|
| propertyKey |
string |
No |
The attribute key. |
aaa |
| propertyValue |
string |
No |
The attribute value. |
bbb |
| securityGroupId |
string |
No |
The ID of the security group to which the instance belongs. This parameter is required only if you set instanceType to EXTERNAL_ROCKETMQ and networkType to TCP_VPC. |
sg-bp17hpmgz9****** |
| consumerGroupId |
string |
No |
The ID of the consumer group. |
GID_DS_XXX_YYY |
| autoSyncCheckpoint |
boolean |
No |
Specifies whether to enable automatic consumer progress synchronization. Catatan
This parameter takes effect only when you set Valid values:
Valid values:
|
true |
| syncCheckpointEnabled |
boolean |
No |
Specifies whether to enable consumer progress synchronization. Valid values:
Valid values:
|
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| requestId |
string |
Request ID |
C7E8AE3A-219B-52EE-BE32-4036F5xxxx |
| success |
boolean |
Indicates whether the operation was successful |
true |
| data |
integer |
The result, which is the backup plan ID |
1234 |
| code |
string |
Error code |
200 |
| message |
string |
Error message |
xxx |
| httpStatusCode |
integer |
HTTP status code |
200 |
| dynamicCode |
string |
Dynamic error code |
InstanceId |
| dynamicMessage |
string |
Dynamic error message |
instanceId |
| accessDeniedDetail |
string |
Access denied details, provided only in scenarios where access is denied due to lack of RAM permissions |
xxx |
Contoh
Respons sukses
JSONformat
{
"requestId": "C7E8AE3A-219B-52EE-BE32-4036F5xxxx",
"success": true,
"data": 1234,
"code": "200",
"message": "xxx",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId",
"accessDeniedDetail": "xxx"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.