开发者社区> 问答> 正文

如何查询TAG?



QueryTags



描述


查询某个对象的TAG列表。

请求参数

名称类型是否必须描述
ActionString操作接口名称,取值:QueryTags
AppKeyLongAppKey信息
ClientKeyString设备或account或alias,[backcolor=transparent]每次只能查询1个clientKey
KeyTypeStringClientKey的类型,DEVICE:是设备,ACCOUNT:是账号,ALIAS:是别名


响应参数

名称类型描述
TagInfos对象Tag列表


错误码

错误码英文描述中文描述
TagProcessErrorAn error occurred during tag-related processing在后端对tag进行绑定、解绑、查询时出现错误


示例



请求示例

  1. [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//cloudpush.aliyuncs.com/?Action=QueryTags
  2. [backcolor=transparent]&[backcolor=transparent]AppKey[backcolor=transparent]=[backcolor=transparent]23267207
  3. [backcolor=transparent]&[backcolor=transparent]KeyType[backcolor=transparent]=[backcolor=transparent]Device
  4. [backcolor=transparent]&[backcolor=transparent]ClientKey[backcolor=transparent]=[backcolor=transparent]e2ba19de97604f55b165576736477b74
  5. [backcolor=transparent]&<公共请求参数>


返回示例



XML格式

  1. [backcolor=transparent]<?[backcolor=transparent]xml version[backcolor=transparent]=[backcolor=transparent]'1.0'[backcolor=transparent] encoding[backcolor=transparent]=[backcolor=transparent]'UTF-8'[backcolor=transparent]?>
  2. [backcolor=transparent]<QueryTagsResponse>
  3. [backcolor=transparent]    [backcolor=transparent]<RequestId>[backcolor=transparent]1197FEB8-3644-4355-A96D-E332F45470EA[backcolor=transparent]</RequestId>
  4. [backcolor=transparent]    [backcolor=transparent]<TagInfos>
  5. [backcolor=transparent]        [backcolor=transparent]<TagInfo>
  6. [backcolor=transparent]            [backcolor=transparent]<TagName>[backcolor=transparent]test_tag2[backcolor=transparent]</TagName>
  7. [backcolor=transparent]        [backcolor=transparent]</TagInfo>
  8. [backcolor=transparent]        [backcolor=transparent]<TagInfo>
  9. [backcolor=transparent]            [backcolor=transparent]<TagName>[backcolor=transparent]test_tag1[backcolor=transparent]</TagName>
  10. [backcolor=transparent]        [backcolor=transparent]</TagInfo>
  11. [backcolor=transparent]    [backcolor=transparent]</TagInfos>
  12. [backcolor=transparent]</QueryTagsResponse>


JSON格式

  1. [backcolor=transparent]{
  2. [backcolor=transparent]  [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"D68AE5C6-8AAF-46C9-B627-3FDACD1A4168"[backcolor=transparent],
  3. [backcolor=transparent]  [backcolor=transparent]"TagInfos"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  4. [backcolor=transparent]    [backcolor=transparent]"TagInfo"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
  5. [backcolor=transparent]      [backcolor=transparent]{
  6. [backcolor=transparent]        [backcolor=transparent]"TagName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_tag2"
  7. [backcolor=transparent]      [backcolor=transparent]},
  8. [backcolor=transparent]      [backcolor=transparent]{
  9. [backcolor=transparent]        [backcolor=transparent]"TagName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_tag1"
  10. [backcolor=transparent]      [backcolor=transparent]}
  11. [backcolor=transparent]    [backcolor=transparent]]
  12. [backcolor=transparent]  [backcolor=transparent]}
  13. [backcolor=transparent]}

展开
收起
猫饭先生 2017-10-23 10:37:55 1590 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
对 2000 多亿条数据做一次 group by 需要多久? 立即下载
对2000多亿条数据做一次Group By 需要多久 立即下载
低代码开发师(初级)实战教程 立即下载