Memperbarui informasi otentikasi identitas kustom.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:UpdateCustomAuthIdentity |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans ApsaraMQ for MQTT. |
post-111**** |
| Username |
string |
Yes |
Username. Nilainya tidak boleh melebihi 64 karakter. |
test |
| Secret |
string |
Yes |
Rahasia AccessKey. |
xxxx |
| IdentityType |
string |
Yes |
Tipe identitas. Nilai yang valid:
|
USER |
| ClientId |
string |
No |
ID client jika Anda menetapkan IdentityType ke CLIENT. |
GID_test@@@test |
| SignMode |
string |
Yes |
Mode verifikasi signature. ORIGIN: membandingkan password dan Rahasia AccessKey. SIGNED: menggunakan algoritma HMAC_SHA1 untuk menandatangani client ID guna mendapatkan password, lalu membandingkan password tersebut. |
SIGNED |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| RequestId |
string |
ID permintaan. |
3F00084A-7F07-4B15-BADA-8903A4FB**** |
| Code |
integer |
Kode status HTTP. |
200 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid: true dan false. |
True |
| Message |
string |
Pesan yang dikembalikan. |
operation success. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "3F00084A-7F07-4B15-BADA-8903A4FB****",
"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.