文档中心 > API类目 > 天眼工作室API

alibaba.security.deepvision.proxy.device.linkinfo.get (获取对应设备和应用的IOT三元组)

授权并获取设备链接信息(不支持非深象AI摄像头的三元组信息获取)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param DeviceLinkInfoParam 可选 参数
  • └ request_id
  • String
  • 可选
  • ''
  • 请求ID
  • └ uid
  • String
  • 必须
  • DARUNFA
  • 租户
  • └ device_id
  • String
  • 必须
  • aa:a6:08:55:b6:66
  • mac地址
  • └ app_code
  • String
  • 必须
  • dvdevops
  • 产品code
  • └ umid_token
  • String
  • 必须
  • xxxxx
  • 设备指纹
  • └ umid_type
  • String
  • 必须
  • idot
  • 指纹类型
  • └ function
  • String
  • 必须
  • ''
  • function
  • └ device_product_sku
  • String
  • 可选
  • 11
  • deviceProductSku

响应参数

名称 类型 示例值 描述
result DeviceLinkInfo '' result
  • └ tenant_code
  • String
  • DARUNFA
  • 租户
  • └ tenant_name
  • String
  • 大润发
  • 租户名称
  • └ field_id
  • String
  • DRF1001
  • 门店
  • └ field_name
  • String
  • 大润发上海闸北店
  • 门店名称
  • └ app_id
  • String
  • xxxxxxxxx
  • appId
  • └ app_name
  • String
  • 应用名称
  • app名称
  • └ product_code
  • String
  • devops
  • 应用产品code
  • └ product_key
  • String
  • xxxxxxxxx
  • 产品key
  • └ product_name
  • String
  • 统一预发环境
  • 产品名称
  • └ product_secret
  • String
  • 产品secret
  • 产品secret
  • └ device_id
  • String
  • xxxxxxxxx
  • 阿里云IotId
  • └ device_name
  • String
  • xxxxxxxxx
  • 阿里云deviceName
  • └ device_secret
  • String
  • xxxxxxxxx
  • 阿里云deviceSecret
  • └ region_id
  • String
  • cn-shanghai
  • 区域id
  • └ iot_instance_id
  • String
  • xxxxxxxxx
  • 物联网平台实例id
  • └ is_old_iot_instance
  • Boolean
  • true
  • 是否为旧实例(公共实例)
message String '' message
resp_success Boolean '' success
resp_code Number 1 返回码
resp_request_id String 1 请求唯一ID

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionProxyDeviceLinkinfoGetRequest req = new AlibabaSecurityDeepvisionProxyDeviceLinkinfoGetRequest();
AlibabaSecurityDeepvisionProxyDeviceLinkinfoGetRequest.DeviceLinkInfoParam obj1 = new AlibabaSecurityDeepvisionProxyDeviceLinkinfoGetRequest.DeviceLinkInfoParam();
obj1.setRequestId("''");
obj1.setUid("DARUNFA");
obj1.setDeviceId("aa:a6:08:55:b6:66");
obj1.setAppCode("dvdevops");
obj1.setUmidToken("xxxxx");
obj1.setUmidType("idot");
obj1.setFunction("''");
obj1.setDeviceProductSku("11");
req.setParam(obj1);
AlibabaSecurityDeepvisionProxyDeviceLinkinfoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_deepvision_proxy_device_linkinfo_get_response>
    <result>
        <tenant_code>DARUNFA</tenant_code>
        <tenant_name>大润发</tenant_name>
        <field_id>DRF1001</field_id>
        <field_name>大润发上海闸北店</field_name>
        <app_id>xxxxxxxxx</app_id>
        <app_name>应用名称</app_name>
        <product_code>devops</product_code>
        <product_key>xxxxxxxxx</product_key>
        <product_name>统一预发环境</product_name>
        <product_secret>产品secret</product_secret>
        <device_id>xxxxxxxxx</device_id>
        <device_name>xxxxxxxxx</device_name>
        <device_secret>xxxxxxxxx</device_secret>
        <region_id>cn-shanghai</region_id>
        <iot_instance_id>xxxxxxxxx</iot_instance_id>
        <is_old_iot_instance>true</is_old_iot_instance>
    </result>
    <message>&apos;&apos;</message>
    <resp_success>&apos;&apos;</resp_success>
    <resp_code>1</resp_code>
    <resp_request_id>1</resp_request_id>
</alibaba_security_deepvision_proxy_device_linkinfo_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部