Queries the status of multiple ApsaraMQ for MQTT clients by client ID.
Operation description
- You can call the BatchQuerySessionByClientIds operation up to 100 times per second. For more information, see Limits on QPS.
- You can call the BatchQuerySessionByClientIds operation to query the status of up to 10 ApsaraMQ for MQTT clients in a single query.
- Each successful call to the BatchQuerySessionByClientIds operation increases the messaging transactions per second (TPS) by one. This affects the billing of your instance. For more information, see Billing rules.
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. The ID must be consistent with the ID of the instance that the ApsaraMQ for MQTT client uses. You can obtain the instance ID on the Instance Details page that corresponds to the instance in the ApsaraMQ for MQTT console. | post-cn-0pp12gl**** |
ClientIdList | array | Yes | The ApsaraMQ for MQTT clients. | |
string | Yes | The serial number of the ApsaraMQ for MQTT client. The value N indicates the Nth ApsaraMQ for MQTT client. Note
You can query the status of up to 10 ApsaraMQ for MQTT clients in a single query. The value range of N is 1 to 10.
| ClientIdList.1 |
Note
For information about other parameters, see Common parameters and Endpoints .
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "63309FDB-ED6C-46AE-B31C-A172FBA0****",
"OnlineStatusList": [
{
"OnlineStatus": true,
"ClientId": "GID_test@0001"
}
]
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
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. |
404 | ApiNotSupport | The specified API is not supported. |
500 | InternalError | An error occurred while processing your request. Try again later. |
500 | SystemOverFlow | An error occurred while processing your request. Please try again. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history