Queries the information about custom identity authentication.
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-111**** |
Username | string | No | The username. | test |
IdentityType | string | No | The identity type. Valid values:
| USER |
ClientId | string | No | The client ID if you set IdentityType to CLIENT. | GID_test@@@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. | eyJhY2NvdW50IjoiMTM4MTcxODk3NDQzMjQ1OSIsImV2ZW50SWQiOiJGMkUxOUE3QS1FM0Q0LTVCOEYtQkU4OS1CNkMyM0RBM0UyRjIiLCJsb2dJZCI6IjY2LTEzODE3MTg5NzQ0MzI0NTkiLCJydyI6IlciLCJ0aW1lIjoxNjc4MzI2MTI1MDAwfQ |
Size | integer | Yes | The number of identities to be queried. Maximum value: 100. | 100 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "11568B5B-13A8-4E72-9DBA-3A14F7D3****",
"Code": 200,
"Success": true,
"Message": "operation success.",
"Data": {
"Results": [
{
"Username": "test",
"Secret": "62a5916d71767185b48907d85c2efae2",
"IdentityType": "USER",
"ClientId": "GID_ICP@@@4d378084",
"SignMode": "SIGNED"
}
],
"NextToken": "AAAAAXA+GzVqTutYpgkFjBrchKzuvSbpuTqtt6OF9tsC9QnJ"
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidParameter.%s | An error occurred while validating the parameter. The parameter may be missing or invalid. |
400 | InstancePermissionCheckFailed | An error occurred while validating the permissions of the instance. Please verify the account that created the instance and its permissions settings. |
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