Mencantumkan operasi migrasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:ListMigrationOperations |
list |
*Instance
|
None | None |
Sintaks permintaan
GET /migrations/{migrationId}/stages/{stageType}/operations HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| migrationId |
integer |
Yes |
ID migrasi. |
135 |
| stageType |
string |
Yes |
Jenis tahap migrasi. Valid values:
|
MIGRATE_MESSAGE |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| operationType |
string |
Yes |
Jenis operasi. Valid values:
|
MIGRATE_MESSAGE |
| filter |
string |
No |
Kondisi filter. Catatan
|
xx |
| instanceId |
string |
No |
ID instans. |
rmq-cn-zxu37eiqq0x |
| operationStatus |
array |
No |
Status operasi. |
|
|
string |
No |
Status operasi. |
DOING |
|
| businessStatus |
array |
No |
Status bisnis. |
|
|
string |
No |
Status bisnis. |
DOUBLE_READ |
|
| pageNumber |
integer |
Yes |
Nomor halaman. |
1 |
| pageSize |
integer |
Yes |
Jumlah entri per halaman. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Result<MyPage> |
||
| requestId |
string |
ID permintaan. |
C7E8AE3A-219B-52EE-BE32-4036F5F88833 |
| success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| data |
object |
Data yang dikembalikan. |
|
| pageNumber |
integer |
Nomor halaman. |
1 |
| pageSize |
integer |
Jumlah entri per halaman. |
10 |
| totalCount |
integer |
Jumlah total entri. |
1 |
| list |
array<object> |
Daftar entri. |
|
|
array<object> |
Daftar operasi migrasi. |
||
| operationId |
integer |
The migration operation ID. |
183 |
| migrationId |
integer |
The migration ID. |
1 |
| stageType |
string |
The type of the migration stage. Valid values:
|
MIGRATE_MESSAGE |
| operationType |
string |
The type of the operation. Valid values:
|
MIGRATE_MESSAGE |
| operationStatus |
string |
The status of the operation:
Valid values:
|
DOING |
| operationKey |
string |
The primary key of the operation object. Catatan
|
normal-topic-1 |
| businessStatus |
string |
The business status of the operation. Valid values:
|
DOUBLE_READ |
| operationParam |
object |
The operation parameters. |
|
| paramData |
any |
The parameter information. |
{ "action": "MIGRATE_FORWARD", "targetStage": "MIGRATE_FINISH" } |
| operationResult |
object |
The operation result. |
|
| resultData |
any |
The operation result. |
{ "checkStatus": "WAIT_CHECK", "sourceTopicStatus": "PERM_6", "targetTopicStatus": "PERM_4", "checkResult": {}, "migrateStage": "DOUBLE_READ" } |
| createTime |
string |
The time when the operation was created. |
2022-08-01 00:00:00 |
| updateTime |
string |
The time when the operation was last updated. |
2022-08-01 20:05:50 |
| code |
string |
Kode kesalahan. |
Instance.NotFound |
| message |
string |
Pesan kesalahan. |
The topic already exists. |
| httpStatusCode |
integer |
Kode status HTTP. |
200 |
| dynamicCode |
string |
Kode kesalahan dinamis. |
InstanceId |
| dynamicMessage |
string |
Pesan kesalahan dinamis. |
consumerGroupId |
Contoh
Respons sukses
JSONformat
{
"requestId": "C7E8AE3A-219B-52EE-BE32-4036F5F88833",
"success": true,
"data": {
"pageNumber": 1,
"pageSize": 10,
"totalCount": 1,
"list": [
{
"operationId": 183,
"migrationId": 1,
"stageType": "MIGRATE_MESSAGE",
"operationType": "MIGRATE_MESSAGE",
"operationStatus": "DOING",
"operationKey": "normal-topic-1",
"businessStatus": "DOUBLE_READ",
"operationParam": {
"paramData": "{\n \"action\": \"MIGRATE_FORWARD\",\n \"targetStage\": \"MIGRATE_FINISH\"\n}"
},
"operationResult": {
"resultData": "{\n \"checkStatus\": \"WAIT_CHECK\",\n \"sourceTopicStatus\": \"PERM_6\",\n \"targetTopicStatus\": \"PERM_4\",\n \"checkResult\": {},\n \"migrateStage\": \"DOUBLE_READ\"\n}"
},
"createTime": "2022-08-01 00:00:00",
"updateTime": "2022-08-01 20:05:50"
}
]
},
"code": "Instance.NotFound",
"message": "The topic already exists.",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "consumerGroupId"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.