Queries clients that have applied for access credentials in unique-certificate-per-device authentication mode in an ApsaraMQ for MQTT instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:MqttInstanceAccess |
list |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Cloud Message Queue MQTT version instance, which must match the actual instance ID used by the client. You can obtain this ID from the Instance Details page in the console. |
mqtt-xxxxxxxx |
| GroupId |
string |
Yes |
Group ID of the MQTT version of the micro message queue. |
GID_xxx |
| PageNo |
string |
No |
Indicates the page number of the returned results. The starting page is counted from 1. |
1 |
| PageSize |
string |
Yes |
The maximum number of query records to display per page. Value range: 1 to 100. |
100 |
| NextToken |
string |
No |
Token for starting the next page query. |
FFdXXXXXWa |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Public parameters, each request ID is unique and can be used for troubleshooting and problem localization. |
020F6A43-19E6-4B6E-B846-44EB31DF**** |
| DeviceCredentialClientIdList |
object |
Returns the information list. |
|
| Total |
string |
Total number of query results. |
10 |
| ClientIdList |
array |
Client list. |
|
|
string |
Client ID. |
GID_test@@@pub-1 |
|
| PageNo |
string |
The current page number of the returned query records. |
1 |
| PageSize |
string |
The maximum number of results to display per page. |
100 |
| NextToken |
string |
Indicates whether there is a token (Token) for the next query. Values:
|
634dxxxxx75b5f |
Examples
Success response
JSON format
{
"RequestId": "020F6A43-19E6-4B6E-B846-44EB31DF****",
"DeviceCredentialClientIdList": {
"Total": "10",
"ClientIdList": [
"GID_test@@@pub-1"
],
"PageNo": "1",
"PageSize": "100",
"NextToken": "634dxxxxx75b5f"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ApplyTokenOverFlow | You have applied for tokens too many times. Please try again later. | |
| 400 | CheckAccountInfoFailed | An error occurred while checking the account information by the STS token. | |
| 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 | ParameterCheckFailed | An error occurred while validating the parameters. The parameters may be missing or invalid. | |
| 400 | PermissionCheckFailed | An error occurred while validating the resource permissions. Please check the account that created the instance, topic, and GroupId, and check their permission settings. | |
| 400 | InvalidParameter.%s | An error occurred while validating the parameter. The parameter may be missing or invalid. | |
| 400 | DeviceCredentialNotFound | Device Credential Not Found.Check if the device certificate is registered. | |
| 400 | DeviceCredentialNumExceed | The number of device credentia exceeds the limit. Please revoke unused device certificates. | |
| 500 | InternalError | An error occurred while processing your request. Try again later. | |
| 500 | SystemOverFlow | An error occurred while processing your request. Please try again. | |
| 404 | ApiNotSupport | The specified API is not supported. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.