Mengambil detail dari topik yang ditentukan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:GetTopic |
get |
*Topic
|
None | None |
Sintaks permintaan
GET /instances/{instanceId}/topics/{topicName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID dari instance tempat topik tersebut berada. |
rmq-cn-7e22ody**** |
| topicName |
string |
Yes |
Nama topik. |
topic_test |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil |
||
| requestId |
string |
ID dari permintaan. ID ini unik untuk setiap permintaan. Gunakan ID ini untuk memecahkan masalah. |
AF9A8B10-C426-530F-A0DD-96320B39**** |
| success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| data |
object |
Data yang dikembalikan. |
|
| regionId |
string |
ID dari region tempat instance tersebut berada. |
cn-hangzhou |
| instanceId |
string |
ID dari instance tempat topik tersebut berada. |
rmq-cn-7e22ody**** |
| topicName |
string |
Nama topik. |
topic_test |
| messageType |
string |
Tipe pesan dari topik. Valid values:
|
NORMAL |
| status |
string |
Status topik. Nilai yang valid:
Valid values:
|
RUNNING |
| remark |
string |
Catatan pada topik. |
This is the remark for test. |
| createTime |
string |
Waktu saat topik dibuat. |
2022-08-01 20:05:50 |
| updateTime |
string |
Waktu saat topik terakhir kali diubah. |
2022-08-01 20:05:50 |
| maxSendTps |
integer |
Transaksi maksimum per detik (TPS) untuk mengirim pesan. |
1000 |
| liteTopicExpiration |
integer |
Waktu kedaluwarsa dari lite topic. Satuan: menit. |
60 |
| code |
string |
Kode error. |
Topic.NotFound |
| message |
string |
Pesan error. |
The topic cannot be found. |
| httpStatusCode |
integer |
Kode status HTTP. |
400 |
| dynamicCode |
string |
Kode error dinamis. |
TopicName |
| dynamicMessage |
string |
Pesan error dinamis. |
topicName |
Contoh
Respons sukses
JSONformat
{
"requestId": "AF9A8B10-C426-530F-A0DD-96320B39****",
"success": true,
"data": {
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"topicName": "topic_test",
"messageType": "NORMAL",
"status": "RUNNING",
"remark": "This is the remark for test.\n",
"createTime": "2022-08-01 20:05:50",
"updateTime": "2022-08-01 20:05:50",
"maxSendTps": 1000,
"liteTopicExpiration": 60
},
"code": "Topic.NotFound",
"message": "The topic cannot be found.",
"httpStatusCode": 400,
"dynamicCode": "TopicName",
"dynamicMessage": "topicName"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.