Memperbarui izin pada sebuah topik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:UpdateCustomAuthPermission |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Cloud Message Queue MQTT versi. |
post-cn-0pp12gl**** |
| IdentityType |
string |
Yes |
Tipe identitas. Nilai yang valid:
|
USER |
| Identity |
string |
Yes |
Username atau Client ID. |
test |
| PermitAction |
string |
Yes |
Izin yang ingin Anda berikan. |
PUB_SUB |
| Effect |
string |
Yes |
Menentukan apakah akses diizinkan atau ditolak. |
ALLOW |
| Topic |
string |
Yes |
Topik yang diotorisasi, mendukung topik MQTT multi-level dan wildcard. |
test/t1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan |
8CC04203-679B-4DED-89D9-E7C2E979**** |
| Code |
integer |
Kode error yang dikembalikan saat pemanggilan gagal. Untuk informasi selengkapnya, lihat Kode Error. |
200 |
| Success |
boolean |
Menunjukkan apakah pemanggilan berhasil. true: Pemanggilan berhasil. false: Pemanggilan gagal. |
True |
| Message |
string |
Informasi |
operation success. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "8CC04203-679B-4DED-89D9-E7C2E979****",
"Code": 200,
"Success": true,
"Message": "operation success."
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstancePermissionCheckFailed | An error occurred while validating the permissions of the instance. Please verify the account that created the instance and its permissions settings. | |
| 400 | InvalidParameter.%s | An error occurred while validating the parameter. The parameter may be missing or invalid. | |
| 404 | ApiNotSupport | The specified API is not supported. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.