Updates the authorization information of a topic resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:UpdateCustomAuthPermission |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the ApsaraMQ for MQTT instance. |
post-cn-0pp12gl**** |
| IdentityType |
string |
Yes |
The identity type. Valid values:
|
USER |
| Identity |
string |
Yes |
The username or client ID. |
test |
| PermitAction |
string |
Yes |
The permissions to grant. |
PUB_SUB |
| Effect |
string |
Yes |
Specifies whether to allow or deny the access. |
ALLOW |
| Topic |
string |
Yes |
The authorized topic. Multi-level MQTT topics and wildcards are supported. |
test/t1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
8CC04203-679B-4DED-89D9-E7C2E979**** |
| Code |
integer |
The error code. For more information, see Error Codes. |
200 |
| Success |
boolean |
Indicates whether the call was successful. Valid values: true, false. |
True |
| Message |
string |
The returned message. |
operation success. |
Examples
Success response
JSON format
{
"RequestId": "8CC04203-679B-4DED-89D9-E7C2E979****",
"Code": 200,
"Success": true,
"Message": "operation success."
}
Error codes
|
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.