Menambahkan pemetaan topik ke tugas Global Replicator.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:AddDisasterRecoveryItem |
update |
*Topic
|
None | None |
Sintaks permintaan
POST /disaster_recovery/{planId}/items HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| planId |
integer |
Yes |
ID rencana cadangan. |
1300000016 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Struktur badan permintaan. Wajib. |
|
| topics |
array<object> |
No |
Topics included in the backup mapping. Required. |
|
|
object |
No |
Topics included in the backup mapping |
||
| regionId |
string |
No |
Region ID |
cn-hangzhou |
| instanceType |
string |
No |
Instance type
Valid values:
|
ALIYUN_ROCKETMQ |
| instanceId |
string |
No |
Instance ID, an instance ID will be automatically generated when |
rmq-cn-em93y94xxx |
| topicName |
string |
No |
Disaster recovery topic name, required |
Topic_xxx |
consumerGroupId
deprecated
|
string |
No |
Consumer group ID, required for ACTIVE_ACTIVE bidirectional backup |
GID_xxx |
| deliveryOrderType |
string |
No |
The order in which messages are delivered to the target instance. The parameter values are as follows:
Valid values:
|
Concurrently |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| requestId |
string |
Request ID |
AF9A8B10-C426-530F-A0DD-96320B39**** |
| success |
boolean |
Whether the operation was successful |
true |
| data |
integer |
Return result, mapping task ID |
1300000016 |
| 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, only in the scenario where the user is denied access due to RAM not having permission |
xxx |
Contoh
Respons sukses
JSONformat
{
"requestId": "AF9A8B10-C426-530F-A0DD-96320B39****",
"success": true,
"data": 1300000016,
"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.