This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.
Updates the permissions on a topic.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | ID of the Cloud Message Queue MQTT version instance. | post-cn-0pp12gl**** |
IdentityType | string | Yes | The identity type. Valid values:
| USER |
Identity | string | Yes | Username or Client ID. | test |
PermitAction | string | Yes | The permissions that you want to grant. Enumeration Value:
| PUB_SUB |
Effect | string | Yes | Specifies whether to allow or deny access. Enumeration Value:
| ALLOW |
Topic | string | Yes | Authorized Topic, supporting multi-level MQTT topics and wildcards. | test/t1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "8CC04203-679B-4DED-89D9-E7C2E979****",
"Code": 200,
"Success": true,
"Message": "operation success."
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history