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

接口说明

  • 本接口的单用户 QPS 限制为 500 次/秒。超过限制,API 调用会被限流,这可能会影响您的业务,请合理调用。更多信息,请参见 QPS 限制
  • 每成功调用一次 RefreshDeviceCredential 接口,都会计算为一次消息 TPS,从而影响您的计费。详细信息,请参见计费说明

流控信息

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

授权信息

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

请求参数

字段名称字段详情
ClientIdstring

需要更新访问凭证的设备的 Client ID。

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

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

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

请求说明

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

返回参数

字段名称字段详情
RequestIdstring

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

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

设备的访问凭证信息。

返回示例

错误码

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

变更历史

暂无变更历史

相关示例

访问凭证相关操作
2021-03-11