功能介绍
默认接口请求频率限制:500次/秒。
查询设备绑定的资源包列表。
接口约束
查询前确保该设备存在。
URL
GET /v1?
请求参数
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeAttachedResources | 操作接口名,系统规定参数。 |
DeviceId | String | 是 | 29942010098023101 | 设备ID |
InProtocol | String | 是 | gb28181 | 使用的接入协议。取值: gb28181, rtmp, rtsp, onvif, ehome, vgroup。 |
返回参数
参数 | 类型 | 描述 |
---|---|---|
Resources | Resource[] | 资源列表。 |
RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
InNetworkType | String | 接入网络类型。 |
Resource
参数 | 类型 | 描述 |
---|---|---|
WorkOrderId | String | 订单ID |
ResourceId | String | 资源ID |
ResourceType | String | 资源类型 |
示例
请求示例
GET https://vss-dsp-gzgy2-a.ctapi.ctyun.cn/v1?Action=DescribeAttachedResources&DeviceId=581833524481966080&InProtocol=gb28181
Connection: keep-alive
ctyun-eop-request-id: 50333e46-6b28-4dde-b6ab-94a9be575b99
Eop-date: 20221025T095233Z
Eop-Authorization: BLLOJSUVKOZ7RVV9VEFF Headers=ctyun-eop-request-id;eop-date Signature=AQ5DLMniMnlNAdZg9ZF9ZSw2EXC7dzuPiGArY5fzMKA=
Host: vss-dsp-gzgy1-a.ctapi-test.ctyun.cn
User-Agent: Apache-HttpClient/4.5.13
返回示例
{
"Resources": [
{
"ResourceType": "VSS_VIDEO",
"WorkOrderId": "workorder01_video_test_0001",
"ResourceId": "resource01_video_234test001",
"Value": "0",
"CodeRate": "8",
"StorageTime": "ST_30",
"EffTime": "2022-04-27 11:32:25",
"ExpTime": "2029-04-28 11:32:25",
"BwDeviceCount": "0",
"AiType": "",
"IsTrialOrder": "0"
},
{
"ResourceType": "VSS_AI",
"WorkOrderId": "workorder01_ai_test",
"ResourceId": "resource01_ai_test",
"Value": "0",
"CodeRate": "",
"StorageTime": "",
"EffTime": "2021-05-06 14:22:13",
"ExpTime": "2024-08-15 10:19:11",
"BwDeviceCount": "0",
"AiType": "AI-300",
"IsTrialOrder": "0"
}
],
"RequestId": "f924f6b4b3f44d1882a8421214d1ad39",
"InNetworkType": "public",
"AIAppInfos": [
{
"appId": "351",
"aiAppName": "口罩检测",
"aiAbilityAlgorithmsName": "口罩检测"
},
{
"appId": "355",
"aiAppName": "人员聚集",
"aiAbilityAlgorithmsName": "人群感应检测"
},
{
"appId": "358",
"aiAppName": "吸烟吸烟",
"aiAbilityAlgorithmsName": "吸烟检测"
}
]
}