分页获取水印模版列表
所有文档
menu

智能视联网平台 EVS

分页获取水印模版列表

产品详情立即开通

接口描述

本接口用于分页获取水印模版列表

请求结构

GET /v1/watermarkTemplate?pageNo={pageNo}&pageSize={pageSize}&templateName={templateName} HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715

请求头域

除公共头域外,无其它特殊头域。

请求参数

名称 类型 是否必须 参数位置 描述
pageNo Integer URL参数 当前页数
pageSize Integer URL参数 当前页的大小
templateName String URL参数 模板名称

响应头域

除公共头域外,无其它特殊头域。

响应参数

参数名称 类型 描述
data Array 空间列表
+ watermarkTemplateId Long 模版ID
+ templateName String 模版名称
+ templateType String 模版类型(系统预置:PRESET,自定义:CUSTOM)
+ watermarkType String 水印类型(时间戳:TIMESTAMP,通道名称:CHANNEL_NAME,自定义:CUSTOMIZE)
+ createTime Date 创建时间(utc时间格式)
pageNo Integer 当前页数
pageSize Integer 当前页的大小
totalCount Integer 总个数

请求示例

GET /v1/watermarkTemplate?page&pageNo=1&pageSize=10&templateName= HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715

响应示例

HTTP/1.1 200 OK
Transfer-Encoding: chunked
x-bce-request-id: 012b9747-f13a-4a2c-a488-02b221844dca
Cache-Control: no-cache
Server: BWS
Date: Tue, 24 Mar 202 013:34:07 GMT
Content-Type: application/json;charset=UTF-8

{
  "data": [
      {
          "createTime": "2022-09-09T02:49:17Z",
          "templateName": "test",
          "templateType": "CUSTOM",
          "watermarkTemplateId": 98,
          "watermarkType": "TIMESTAMP"
      },
      {
          "createTime": "2022-09-08T02:49:17Z",
          "templateName": "test1",
          "templateType": "CUSTOM",
          "watermarkTemplateId": 97,
          "watermarkType": "TIMESTAMP"
      }
  ],
  "pageNo": 1,
  "pageSize": 10,
  "totalCount": 2
}
上一篇
分页获取待绑定空间
下一篇
获取水印模版绑定详情