Updates custom identity authentication information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:UpdateCustomAuthIdentity |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the ApsaraMQ for MQTT instance. |
post-111**** |
| Username |
string |
Yes |
The username. Maximum length: 64 characters. |
test |
| Secret |
string |
Yes |
The AccessKey secret. |
xxxx |
| IdentityType |
string |
Yes |
The identity type. Valid values:
|
USER |
| ClientId |
string |
No |
The client ID. Required when IdentityType is set to CLIENT. |
GID_test@@@test |
| SignMode |
string |
Yes |
The signature verification mode. ORIGIN: compares the password directly with the AccessKey secret. SIGNED: signs the client ID with HMAC_SHA1 to generate a password for comparison. |
SIGNED |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
3F00084A-7F07-4B15-BADA-8903A4FB**** |
| Code |
integer |
The HTTP status code. |
200 |
| Success |
boolean |
Whether the request was successful. |
True |
| Message |
string |
The response message. |
operation success. |
Examples
Success response
JSON format
{
"RequestId": "3F00084A-7F07-4B15-BADA-8903A4FB****",
"Code": 200,
"Success": true,
"Message": "operation success."
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstancePermissionCheckFailed | Instance permission validation failed. Verify the instance owner account and its permission settings. | |
| 400 | InvalidParameter.%s | Parameter validation failed. The parameter may be missing or invalid. | |
| 404 | ApiNotSupport | The specified API is not supported. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.