查询模板列表
更新时间:2022-09-26
接口描述
分页查询转码流模板列表(个人自定义)
请求结构
Plain Text
1 GET /v1/transcodeTemplate?page&pageNo={pageNo}&pageSize={pageSize}&templateName={templateName} HTTP/1.1
2 x-bce-date: 2020-03-25T09:28:13Z
3 host: evs.bj.baidubce.com
4 content-type: application/json
5 authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
pageNo | Integer | 是 | URL参数 | 当前页数 |
pageSize | Integer | 是 | URL参数 | 当前页的大小 |
templateName | Long | 否 | URL参数 | 模板名称 |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
pageNo | Integer | 当前页数 |
pageSize | Integer | 当前页大小 |
totalCount | Integer | 总条数 |
data | Array | 模板信息列表 |
+ templateId | Long | 模板ID |
+ templateName | String | 模板名称 |
+ type | String | 模板类型("PRESET":内置,"CUSTOM":自定义) |
+ encodeType | String | 编码方式("H264") |
+ width | Integer | 分辨率宽 |
+ height | Integer | 分辨率高 |
+ createTime | Date | 创建时间(utc时间格式) |
请求示例
Plain Text
1GET /v1/transcodeTemplate?page&pageNo=1&pageSize=10&templateName=test HTTP/1.1
2x-bce-date: 2020-03-25T09:28:13Z
3host: evs.bj.baidubce.com
4content-type: application/json
5authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
响应示例
Plain Text
1HTTP/1.1 200 OK
2Transfer-Encoding: chunked
3x-bce-request-id: 012b9747-f13a-4a2c-a488-02b221844dca
4Cache-Control: no-cache
5Server: BWS
6Date: Tue, 24 Mar 202 013:34:07 GMT
7Content-Type: application/json;charset=UTF-8
8
9{
10 "pageNo": 1,
11 "pageSize": 10,
12 "data": [{
13 "templateId": 12131
14 "templateName": "test",
15 "encodeType": "H264",
16 "type": "CUSTOM",
17 "height": "640",
18 "width": "480",
19 "createTime": 80,
20 }]
21}