功能介绍
默认接口请求频率限制:500次/秒。
查询视频资源包列表。
接口约束
无
URL
GET /v1?
请求参数
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DesResourcePkgs | 操作接口名,系统规定参数。 |
Type | String | 是 | VSS_VIDEO | 资源类型。取值:VSS_VIDEO:视频包,VSS_AI:ai包,VSS_UPLOAD_BW:上行带宽包,VSS_DOWNLOAD_BW:下行带宽包。 |
返回参数
参数 | 类型 | 描述 |
---|---|---|
ResPkgList | Resource[] | 资源列表。 |
Resource
参数 | 类型 | 描述 |
---|---|---|
Type | String | 资源包类型 |
WorkOrderNo | String | 订单号 |
WorkOrderId | String | 订单ID |
ResourceId | String | 资源ID |
TotalDeviceCount | String | 设备总路数 |
RemainDeviceCount | String | 设备剩余路数 |
BitRate | String | 码率 |
StorageTime | String | 存储时长 |
IsTrialOrder | String | 是否商用 |
BandWidth | String | 总带宽 |
AiType | String | AI包类型 |
CreateTime | String | 创建时间 |
ExpireTime | String | 失效时间 |
示例
请求示例
GET https://vss-dsp-gzgy2-a.ctapi.ctyun.cn/v1?Action=DesResourcePkgs&Type=VSS_VIDEO
Connection: keep-alive
ctyun-eop-request-id: 4ee2b1af-bf35-44c0-a555-bf1c4e899379
Eop-date: 20221025T095417Z
Eop-Authorization: BLLOJSUVKOZ7RVV9VEFF Headers=ctyun-eop-request-id;eop-date Signature=vK99UQa8xXqYPIOaPpPaVNhL3Ap1Oq6HhnniHImzLxI=
Host: vss-dsp-gzgy1-a.ctapi-test.ctyun.cn
User-Agent: Apache-HttpClient/4.5.13
返回示例
{
"ResPkgList": [
{
"Type": "VSS_VIDEO",
"TotalDeviceCount": "25000",
"RemainDeviceCount": "4981",
"BitRate": "8",
"StorageTime": "ST_30",
"CreateTime": "2022-04-27 11:32:25",
"ExpireTime": "2029-04-28 11:32:25",
"BandWidth": "",
"AiType": "",
"WorkOrderId": "workorder01_video_test_0001",
"ResourceId": "resource01_video_234test001",
"IsTrialOrder": "0",
"WorkOrderNo": "20220809093138059649"
},
{
"Type": "VSS_VIDEO",
"TotalDeviceCount": "100",
"RemainDeviceCount": "70",
"BitRate": "8",
"StorageTime": "ST_7",
"CreateTime": "2022-08-17 10:58:29",
"ExpireTime": "2024-12-13 22:11:39",
"BandWidth": "",
"AiType": "",
"WorkOrderId": "workorder01_video_test_8888009993992932",
"ResourceId": "resource01_video_test_8888009993992932_8888009993992932",
"IsTrialOrder": "0",
"WorkOrderNo": "20210427093138059649"
},
{
"Type": "VSS_VIDEO",
"TotalDeviceCount": "100",
"RemainDeviceCount": "92",
"BitRate": "8",
"StorageTime": "ST_7",
"CreateTime": "2022-08-17 10:58:29",
"ExpireTime": "2024-12-13 22:11:39",
"BandWidth": "",
"AiType": "",
"WorkOrderId": "workorder02_video_test_8888009993992945",
"ResourceId": "resource02_video_test_8888009993992945",
"IsTrialOrder": "0",
"WorkOrderNo": "20210427093138059649"
}
],
"RequestId": "070305f062bf4db595c36ed97ff7a67f"
}