Queries the authorization information about 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 | The ID of the ApsaraMQ for MQTT instance. | post-cn-0pp12gl**** |
IdentityType | string | No | The identity type. Valid values:
| USER |
Identity | string | No | The username or client ID. | test |
Topic | string | No | The topic whose authorization information you want to query. Multi-level topics and wildcard characters are supported. | test |
NextToken | string | No | The token that marks the end position of the previous returned page. To obtain the next batch of data, call the operation again by using the value of NextToken returned by the previous request. If you call this operation for the first time or want to query all results, set NextToken to an empty string. | AAAAAThmKW2HkRgzo4G7IRRTK2fC6zZmAk6y0bwoNPFOOcSP |
Size | integer | Yes | The number of queries to be returned. Maximum value: 100. | 100 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "63309FDB-ED6C-46AE-B31C-A172FBA0****",
"Code": 200,
"Success": true,
"Message": "operation success.",
"Data": {
"Results": [
{
"Identity": "test",
"PermitAction": "PUB_SUB",
"Effect": "ALLOW",
"IdentityType": "USER",
"Topic": "test"
}
],
"NextToken": "AAAAAV/vsqTyeMlX1MIk7/b6NrZLIlsSVf49O04ac7HAmlBoaYspakK7ZZkR3vRDp5Y9Nz0EmuWYrtF+1qkUwuJzPk/qEto/FGxl5Kd+qdwNt3t8"
}
}
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