Membuat topik.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:CreateTopic |
*Topic
*Topic
|
None |
|
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Topic |
string |
Yes |
Nama topik yang akan dibuat. Nama harus memenuhi persyaratan berikut:
Catatan
Untuk memeriksa apakah instans memiliki namespace, buka halaman Instance Details di konsol ApsaraMQ for RocketMQ. Informasi tersebut terdapat di bagian Basic Information. |
test |
| MessageType |
integer |
Yes |
Tipe pesan. Nilai valid:
Untuk informasi selengkapnya, lihat Tipe pesan. |
0 |
| Remark |
string |
No |
Deskripsi topik. |
测试 |
| InstanceId |
string |
No |
ID instans tempat topik berada. |
MQ_INST_188077086902****_BXSuW61e |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The ID of the request. This ID is unique and can be used for troubleshooting. |
B6949B58-223E-4B75-B4FE-7797C15E**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "B6949B58-223E-4B75-B4FE-7797C15E****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | %s | %s, please check and retry later |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.