开发者社区> 问答> 正文

Alias如何查询别名



QueryAliases



描述


查询设备绑定的别名

请求参数

名称类型是否必须描述
ActionString操作接口名称,取值:QueryAliases
AppKeyLongAppKey信息
DeviceIdString设备在推送的唯一标示,32位,数字和小写字母组合


响应参数

名称类型描述
AliasInfos对象Alias列表


错误码

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

通用性错误,请参考 错误代码表

示例



请求示例

  1. [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//cloudpush.aliyuncs.com/?Action=QueryAliases
  2. [backcolor=transparent]&[backcolor=transparent]AppKey[backcolor=transparent]=[backcolor=transparent]23267207
  3. [backcolor=transparent]&[backcolor=transparent]DeviceId[backcolor=transparent]=[backcolor=transparent]e2ba19de97604f55b165576736477b74
  4. [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]<BindAliasesResponse>
  3. [backcolor=transparent]    [backcolor=transparent]<RequestId>[backcolor=transparent]82FD0A09-5BB8-40FB-8221-9A11FE92D620[backcolor=transparent]</RequestId>
  4. [backcolor=transparent]    [backcolor=transparent]<AliasInfos>
  5. [backcolor=transparent]        [backcolor=transparent]<AliasInfo>
  6. [backcolor=transparent]            [backcolor=transparent]<AliasName>[backcolor=transparent]test_alias1[backcolor=transparent]</AliasName>
  7. [backcolor=transparent]        [backcolor=transparent]</AliasInfo>
  8. [backcolor=transparent]        [backcolor=transparent]<AliasInfo>
  9. [backcolor=transparent]            [backcolor=transparent]<AliasName>[backcolor=transparent]test_alias2[backcolor=transparent]</AliasName>
  10. [backcolor=transparent]        [backcolor=transparent]</AliasInfo>
  11. [backcolor=transparent]    [backcolor=transparent]</AliasInfos>
  12. [backcolor=transparent]</BindAliasesResponse>


JSON格式

  1. [backcolor=transparent]{
  2. [backcolor=transparent]  [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"159E4422-6624-4750-8943-DFD98D34858C"[backcolor=transparent],
  3. [backcolor=transparent]  [backcolor=transparent]"AliasInfos"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  4. [backcolor=transparent]    [backcolor=transparent]"AliasInfo"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
  5. [backcolor=transparent]      [backcolor=transparent]{
  6. [backcolor=transparent]        [backcolor=transparent]"AliasName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_alias1"
  7. [backcolor=transparent]      [backcolor=transparent]},
  8. [backcolor=transparent]      [backcolor=transparent]{
  9. [backcolor=transparent]        [backcolor=transparent]"AliasName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_alias2"
  10. [backcolor=transparent]      [backcolor=transparent]}
  11. [backcolor=transparent]    [backcolor=transparent]]
  12. [backcolor=transparent]  [backcolor=transparent]}
  13. [backcolor=transparent]}

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

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载