Mengkueri atribut sebuah topik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mns:GetTopicAttributes |
get |
*Topik.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TopicName |
string |
Yes |
Nama topik. |
demo-topic |
| Tag |
array<object> |
No |
Daftar tag Sumber daya. |
|
|
object |
No |
Daftar tag. |
||
| Key |
string |
No |
Kunci tag. |
tag1 |
| Value |
string |
No |
Nilai tag. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
06273500-249F-5863-121D-74D51123**** |
| Code |
integer |
Kode tanggapan. |
200 |
| Status |
string |
Status tanggapan. |
Success |
| Message |
string |
Paket tanggapan. |
operation success |
| Success |
boolean |
Apakah permintaan berhasil. |
true |
| Data |
object |
Data tanggapan. |
|
| TopicName |
string |
Nama topik. |
demo-topic |
| MessageCount |
integer |
Jumlah paket dalam topik. |
0 |
| MaxMessageSize |
integer |
Panjang maksimum body paket yang dikirim ke topik. Unit: byte. |
65536 |
| MessageRetentionPeriod |
integer |
Durasi maksimum penyimpanan paket di topik. Setelah periode pengatur waktu yang ditentukan oleh parameter ini berlalu sejak paket dikirim ke topik, paket akan dihapus terlepas dari apakah paket berhasil didorong ke pengguna atau tidak. Unit: detik. |
86400 |
| CreateTime |
integer |
Pengatur waktu pembuatan topik. Nilai ini adalah stempel waktu UNIX yang menunjukkan jumlah milidetik yang telah berlalu sejak 1 Januari 1970, 00:00:00 UTC. |
1449554277 |
| LastModifyTime |
integer |
Pengatur waktu terakhir modifikasi atribut topik. Nilai ini adalah stempel waktu UNIX yang menunjukkan jumlah milidetik yang telah berlalu sejak 1 Januari 1970, 00:00:00 UTC. |
1449554460 |
| LoggingEnabled |
boolean |
Apakah fitur Manajemen Log diaktifkan. Nilai valid:
|
True |
| Tags |
array<object> |
Daftar tag Sumber daya. |
|
|
object |
Nilai tag yang sesuai dengan kunci tag. |
||
| TagKey |
string |
The key of the tag. |
tag1 |
| TagValue |
string |
The value of the tag. |
test |
| TopicType |
string |
Tipe topik. Nilai valid:
|
normal |
| TopicUrl |
string |
http:// 111111111****.mns.us-west-1.aliyuncs.com/topics/testTopic |
|
| TopicInnerUrl |
string |
http:// 111111111****.mns.us-west-1-internal.aliyuncs.com/topics/testTopic |
|
| EnableSSE |
boolean |
||
| SseType |
string |
||
| SseAlgorithm |
string |
||
| KmsKeyId |
string |
||
| EncryptionEnabled |
boolean |
Contoh
Respons sukses
JSONformat
{
"RequestId": "06273500-249F-5863-121D-74D51123****",
"Code": 200,
"Status": "Success",
"Message": "operation success",
"Success": true,
"Data": {
"TopicName": "demo-topic",
"MessageCount": 0,
"MaxMessageSize": 65536,
"MessageRetentionPeriod": 86400,
"CreateTime": 1449554277,
"LastModifyTime": 1449554460,
"LoggingEnabled": true,
"Tags": [
{
"TagKey": "tag1",
"TagValue": "test"
}
],
"TopicType": "normal",
"TopicUrl": "http:// 111111111****.mns.us-west-1.aliyuncs.com/topics/testTopic",
"TopicInnerUrl": "http:// 111111111****.mns.us-west-1-internal.aliyuncs.com/topics/testTopic",
"EnableSSE": false,
"SseType": "",
"SseAlgorithm": "",
"KmsKeyId": "",
"EncryptionEnabled": false
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.