BatchQuerySessionByClientIds_微消息队列 MQTT_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

  • BatchQuerySessionByClientIds 接口的 QPS 为 100。更多信息,请参见 QPS 限制
  • 每次调用 BatchQuerySessionByClientIds 接口最多查询 10 个 Client ID 对应的客户端的在线状态。
  • 每成功调用一次 BatchQuerySessionByClientIds 接口,都会计算为一次消息 TPS,从而影响您的计费。计费详情,请参见计费说明

流控信息

请求速率为100/1(s)。

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
InstanceIdstring

云消息队列 MQTT 版实例的 ID,一定要和客户端实际使用的实例 ID 匹配。您可以在控制台实例详情页面获取该 ID。

示例值:post-cn-0pp12gl****参考取值来源:
    ListInstances
ClientIdListarray<string>

客户端列表。

示例值:ClientIdList.1子级条数 <= 10

请求说明

说明 更多参数说明请参见公共参数服务接入点

返回参数

字段名称字段详情
RequestIdstring

公共参数,每个请求的 ID 都是唯一的。

示例值:63309FDB-ED6C-46AE-B31C-A172FBA0****
OnlineStatusListarray<object>

客户端状态列表。

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
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.诊断

变更历史

暂无变更历史

相关示例