# QuerySubscribeRelation

调用该接口查询AMQP服务端订阅。

# 请求参数

名称 类型 是否必选 示例值 描述
Action String QuerySubscribeRelation 系统规定参数。取值:QuerySubscribeRelation。
ProductKey String a1fyXVF**** 该订阅中的产品的ProductKey。
Type String AMQP 订阅类型:AMQP
IotInstanceId String 71592493182878**** 实例ID。您可在物联网平台控制台的实例概览页面,查看当前实例的ID。

# 返回数据

名称 类型 示例值 描述
Code String iot.system.SystemException 调用失败时,返回的错误码。
ErrorMessage String 系统异常 调用失败时,返回的出错信息。
upRawFlag Boolean true 推送消息类型是否选择透传上报。true:是。false:否。
propertyFlag Boolean true 推送消息类型是否选择设备属性上报。true:是。false:否。
eventFlag Boolean true 推送消息类型是否选择设备事件上报。true:是。false:否。
customTopicFlag Boolean true 推送消息类型是否选择自定义Topic。true:是。false:否。
statusChangeFlag Boolean true 推送消息类型是否选择设备状态变化通知。true:是。false:否。
otaVersionPostFlag Boolean true 推送消息类型是否选择OTA模块版本号变更通知。true:是。false:否。
otaProgressPostFlag Boolean true 推送消息类型是否选择OTA升级进度通知。true:是。false:否。
downlinkReplyFlag Boolean true 推送消息类型是否选择属性设置、服务调用响应通知。true:是。false:否。
ProductKey String a1fyXVF**** 该订阅中的产品的ProductKey。
Success Boolean true 是否调用成功。true:调用成功。false:调用失败。
ConsumerGroupIds List [72310871085914****] 返回AMQP订阅中的消费组ID。
Type String AMQP 订阅类型。返回值:AMQP
RequestId String 71a86574e8aa4c069d600e7658b3a533 平台为该请求生成的唯一标识符。

# 示例

请求示例

http://open.${区域}.fenydata.com/fenydata-java-open/?Action=QuerySubscribeRelation
&IotInstanceId=70255861902711****
&ProductKey=a1Zkii7****
&Type=AMQP
&<公共请求参数>

正常返回示例

XML格式

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xml>
  <Type>AMQP</Type>
  <propertyFlag>true</propertyFlag>
  <RequestId>03fe00d1653345c4b97bc0041a50dca9</RequestId>
  <upRawFlag>true</upRawFlag>
  <customTopicFlag>false</customTopicFlag>
  <ConsumerGroupIds>72310871085914****</ConsumerGroupIds>
  <Success>true</Success>
  <ProductKey>Zlpfl15****</ProductKey>
  <eventFlag>true</eventFlag>
  <statusChangeFlag>true</statusChangeFlag>
  <otaVersionPostFlag>true</otaVersionPostFlag>
  <otaProgressPostFlag>true</otaProgressPostFlag>
  <downlinkReplyFlag>true</downlinkReplyFlag>
</xml>

JSON格式

{
  "Type": "AMQP",
  "propertyFlag": true,
  "RequestId": "997dc37bf855433e9b9e73301501a97f",
  "upRawFlag": true,
  "customTopicFlag": false,
  "ConsumerGroupIds": [
    "72310871085914****"
  ],
  "Success": true,
  "ProductKey": "Zlpfl15****",
  "eventFlag": true,
  "statusChangeFlag": true,
  "otaVersionPostFlag": true,
  "otaProgressPostFlag": true,
  "downlinkReplyFlag": true
}