Mengambil detail topik tertentu.
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 instans 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 |
Result |
||
| requestId |
string |
ID 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 wilayah tempat instans berada. |
cn-hangzhou |
| instanceId |
string |
ID instans tempat topik tersebut berada. |
rmq-cn-7e22ody**** |
| topicName |
string |
Nama topik. |
topic_test |
| messageType |
string |
Tipe pesan dari topik tersebut. Valid values:
|
NORMAL |
| status |
string |
Status topik. Nilai yang valid:
Valid values:
|
RUNNING |
| remark |
string |
Keterangan mengenai topik. |
This is the remark for test. |
| createTime |
string |
Waktu saat topik dibuat. |
2022-08-01 20:05:50 |
| updateTime |
string |
Waktu terakhir topik dimodifikasi. |
2022-08-01 20:05:50 |
| maxSendTps |
integer |
Transaksi per detik (TPS) maksimum untuk pengiriman pesan. |
1000 |
| liteTopicExpiration |
integer |
Waktu kedaluwarsa lite topic. Satuan: menit. |
60 |
| code |
string |
Kode kesalahan. |
Topic.NotFound |
| message |
string |
Pesan kesalahan. |
The topic cannot be found. |
| httpStatusCode |
integer |
Kode status HTTP. |
400 |
| dynamicCode |
string |
Kode kesalahan dinamis. |
TopicName |
| dynamicMessage |
string |
Pesan kesalahan 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.