QuerySessionByClientId_微消息队列 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.

接口说明

  • QuerySessionByClientId 接口的 QPS 限制为 500。更多信息请参见 QPS 限制
  • 每成功调用一次 QuerySessionByClientId 接口,都会计算为一次消息 TPS,从而影响您的计费。详情请参见计费说明

流控信息

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

授权信息

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

请求参数

字段名称字段详情
ClientIdstring

需要查询的目标 Client ID。

示例值:GID_test@@@test参考取值来源:
    ListDeviceCredentialClientId
InstanceIdstring

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

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

请求说明

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

返回参数

字段名称字段详情
OnlineStatusboolean

设备是否在线,取值说明如下:展开详情

示例值:true
RequestIdstring

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

示例值:E4581CCF-62AF-44D9-B5B4-D1DBBC0E****

返回示例

错误码

全局错误码
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.诊断

变更历史

暂无变更历史

相关示例