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 berada. |
rmq-cn-7e22ody**** |
| topicName |
string |
Yes |
Nama topik yang akan dikueri. |
Topik_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. Setiap permintaan memiliki ID unik, yang dapat digunakan untuk memecahkan masalah. |
AF9A8B10-C426-530F-A0DD-96320B39**** |
| success |
boolean |
Apakah operasi berhasil. |
true. |
| data |
object |
Data tanggapan. |
|
| regionId |
string |
ID wilayah instans. |
cn-hangzhou. |
| instanceId |
string |
ID instans tempat topik berada. |
rmq-cn-7e22ody**** |
| topicName |
string |
Nama topik. |
Topik_test |
| messageType |
string |
Tipe paket topik. Valid values:
|
NORMAL. |
| status |
string |
Status topik. Nilai valid:
Valid values:
|
RUNNING. |
| remark |
string |
Keterangan topik. |
This is the remark for test. |
| createTime |
string |
Pengatur waktu saat topik dibuat. |
2022-08-01 20:05:50 |
| updateTime |
string |
Pengatur waktu saat topik terakhir kali diubah. |
2022-08-01 20:05:50 |
| maxSendTps |
integer |
Transaksi per detik (TPS) maksimum untuk mengirim paket. |
1000 |
| liteTopicExpiration |
integer |
Pengatur waktu kedaluwarsa topik lite. Unit: menit. |
60 |
| priority |
integer |
9 |
|
| code |
string |
Kode kesalahan. |
Topic.NotFound. |
| message |
string |
Paket kesalahan. |
Topik tidak ditemukan. |
| httpStatusCode |
integer |
Kode status HTTP. |
400 |
| dynamicCode |
string |
Kode kesalahan dinamis. |
TopicName. |
| dynamicMessage |
string |
Paket kesalahan dinamis. |
TopikName |
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,
"priority": 9
},
"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.