Mengambil detail pesan tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:GetMessageDetail |
get |
*Topic
|
None | None |
Sintaks permintaan
GET /instances/{instanceId}/topics/{topicName}/messages/{messageId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
rmq-cn-lbj31fs790d |
| topicName |
string |
Yes |
Nama topik. |
flink_test |
| messageId |
string |
Yes |
ID pesan. |
0A792FDB001F7591083D30ADB1DA11D5 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil |
||
| requestId |
string |
ID permintaan. |
FAEBD71F-E839-52F9-BD7B-8F1290525841 |
| success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| data |
object |
Data yang dikembalikan. |
|
| regionId |
string |
ID region. |
cn-hangzhou |
| instanceId |
string |
ID instans. |
rmq-cn-7e22ody**** |
| topicName |
string |
Nama topik. |
topic_test |
| messageId |
string |
ID pesan. |
01BE87E485F0C7808C04543CAF00000001 |
| bornTime |
string |
Waktu pesan dibuat. |
2023-03-22 12:17:08 |
| storeTime |
string |
Waktu pesan disimpan. |
2023-03-22 12:17:08 |
| body |
string |
Isi pesan. |
{} |
| bodySize |
integer |
Ukuran isi pesan. |
123 |
| bornHost |
string |
Host yang membuat pesan. |
xxx.xx.xxx.xx |
| storeHost |
string |
Host yang menyimpan pesan. |
xxx.xx.xxx.xx |
| messageType |
string |
Tipe pesan. |
NORMAL |
| messageTag |
string |
Tag pesan. |
xx |
| messageGroup |
string |
Kunci sharding. Parameter ini hanya dikembalikan untuk pesan terurut. |
xx |
| messageKeys |
array |
Kunci bisnis pesan. |
|
|
string |
Sebuah kunci bisnis. |
xx |
|
| userProperties |
object |
Properti pesan yang ditentukan pengguna. |
|
|
string |
Sebuah properti yang ditentukan pengguna. |
xxx |
|
| systemProperties |
object |
Properti sistem default pesan. |
|
|
string |
Sebuah properti sistem default. |
xx |
|
| liteTopicName |
string |
Nama topik ringan. |
abc |
| code |
string |
Kode kesalahan. |
Topic.NotFound |
| message |
string |
Pesan kesalahan. |
Parameter instanceId is mandatory for this action . |
| httpStatusCode |
integer |
Kode status HTTP. |
200 |
| dynamicCode |
string |
Kode kesalahan dinamis. |
InstanceId |
| dynamicMessage |
string |
Pesan kesalahan dinamis. |
instanceId |
Contoh
Respons sukses
JSONformat
{
"requestId": "FAEBD71F-E839-52F9-BD7B-8F1290525841",
"success": true,
"data": {
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"topicName": "topic_test",
"messageId": "01BE87E485F0C7808C04543CAF00000001",
"bornTime": "2023-03-22 12:17:08",
"storeTime": "2023-03-22 12:17:08",
"body": "{}",
"bodySize": 123,
"bornHost": "xxx.xx.xxx.xx",
"storeHost": "xxx.xx.xxx.xx",
"messageType": "NORMAL",
"messageTag": "xx",
"messageGroup": "xx",
"messageKeys": [
"xx"
],
"userProperties": {
"key": "xxx"
},
"systemProperties": {
"key": "xx"
},
"liteTopicName": "abc"
},
"code": "Topic.NotFound",
"message": "Parameter instanceId is mandatory for this action .",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.