UnsubscribeTopic_物联网平台_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 限制

单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为 50。

说明 单个阿里云账号下的所有 RAM 用户共享该阿里云账号的配额。

流控信息

当前云产品API请求速率暂未透出。

授权信息

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

请求参数

字段名称字段详情
IotInstanceIdstring

实例 ID。您可在物联网平台控制台的实例概览页签,查看当前实例的 ID。展开详情

示例值:iot-cn-n6w1y59****
ProductKeystring

设备所属产品的 ProductKey

示例值:a1BwAGV****参考取值来源:
    CreateProduct
    QueryProductList
    ReleaseProduct
    ListProductByTags
    BindLicenseProduct
    BatchBindProductsIntoProject
DeviceNamestring

设备的名称。

示例值:device1
Topicarray<string>

要取消订阅的 Topic 列表。

示例值:/a1BwAGV****/device1/user/get子级条数 <= 10

请求说明

调用 API 时,除了本文介绍的该 API 的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见公共参数文档。

返回参数

字段名称字段详情
Codestring

调用结果状态码:展开详情

示例值:400
ErrorMessagestring

调用失败时,返回的出错信息。

示例值:The unsub topic list is empty.
RequestIdstring

阿里云为该请求生成的唯一标识符。

示例值:E55***B7-4***-4***-8***-D3******F565
Successboolean

表示是否调用成功。展开详情

示例值:true
FailureTopicsobject

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Iot.System.BillIsOverDue
Your account has overdue payments. Go to the expense center and add funds to your account.诊断
400
Iot.MessageBroker.EmptyUnSubTopicList
The unsub topic list is empty.诊断
400
Iot.MessageBroker.InvalidFormattedTopicName
The topic format specified while publishing the message is incorrect.诊断
400
iot.prod.NotExistedProduct
The specified product does not exist.诊断
400
Iot.Device.NotExistedDevice
The device does not exist.诊断
403
Iot.Device.NotDeviceOwner
You are not the device owner.诊断

变更历史

暂无变更历史

相关示例