Queries custom identity authentication.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:QueryCustomAuthIdentity |
get |
*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 |
No |
The username. |
test |
| IdentityType |
string |
No |
The identity type. |
USER |
| ClientId |
string |
No |
The client ID of the device. You can specify this parameter when the identity type is CLIENT. |
GID_test@@@test |
| NextToken |
string |
No |
The token that marks the end position of the current query. You can pass this token as a parameter in the next call to continue paginating. If this is the first call or the last page is returned, the value is an empty string. |
eyJhY2NvdW50IjoiMTM4MTcxODk3NDQzMjQ1OSIsImV2ZW50SWQiOiJGMkUxOUE3QS1FM0Q0LTVCOEYtQkU4OS1CNkMyM0RBM0UyRjIiLCJsb2dJZCI6IjY2LTEzODE3MTg5NzQ0MzI0NTkiLCJydyI6IlciLCJ0aW1lIjoxNjc4MzI2MTI1MDAwfQ |
| Size |
integer |
Yes |
The number of entries to query. Maximum value: 100. |
100 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
11568B5B-13A8-4E72-9DBA-3A14F7D3**** |
| Code |
integer |
The response code. 200: The request is successful. Other codes indicate errors. For more information about error codes, see Error codes. |
200 |
| Success |
boolean |
Indicates whether the request is successful. true: The request is successful. false: The request failed. |
True |
| Message |
string |
The additional information. |
operation success. |
| Data |
object |
The query result. |
|
| Results |
array<object> |
The returned data. |
|
|
object |
The returned data. |
||
| Username |
string |
The username. |
test |
| Secret |
string |
The AccessKey secret. |
62a5916d71767185b48907d85c2efa**** |
| IdentityType |
string |
The identity type. Valid values:
|
USER |
| ClientId |
string |
The client ID if IdentityType is set to CLIENT. |
GID_ICP@@@4d378084 |
| SignMode |
string |
The signature verification mode. ORIGIN: compares the password and the AccessKey secret. SIGNED: uses the HMAC_SHA1 algorithm to sign the client ID to obtain a password and then compares the password. |
SIGNED |
| NextToken |
string |
If more results are available, a NextToken is returned. |
AAAAAXA+GzVqTutYpgkFjBrchKzuvSbpuTqtt6OF9tsC9QnJ |
Examples
Success response
JSON format
{
"RequestId": "11568B5B-13A8-4E72-9DBA-3A14F7D3****",
"Code": 200,
"Success": true,
"Message": "operation success.",
"Data": {
"Results": [
{
"Username": "test",
"Secret": "62a5916d71767185b48907d85c2efa****",
"IdentityType": "USER",
"ClientId": "GID_ICP@@@4d378084",
"SignMode": "SIGNED"
}
],
"NextToken": "AAAAAXA+GzVqTutYpgkFjBrchKzuvSbpuTqtt6OF9tsC9QnJ"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.