获取已购证书列表
接口描述
本接口用于查询用户已购买的证书,使用分页
请求结构
> GET http://cas.baidubce.com/v3/openapi/query/?pageNo=1&pageSize=3
> Authorization: authorization string
> Host: cas.baidubce.com
> x-bce-console-rpc-id: e69c8fff-166b-4c82-87c1-7aa3ba309d5c
> x-bce-date: 2020-04-27T02:43:18Z
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 类型 是否必需 参数位置 描述
version String 是 URL参数 API版本号
pageNo int 是 Query参数 页码数
pageSize int 是 Query参数 单页大小,最大1000
brand String 否 Query参数 证书品牌
certType String 否 Query参数 证书类型 选值见附录 CertType
status String 否 Query参数 证书状态 选值见附录 CertStatus
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 类型 描述
totalCount int 一共有证书数量
result list 证书列表
请求示例
> GET http://cas.baidubce.com/v3/openapi/query/?pageNo=1&pageSize=3
> Authorization: bce-auth-v1/5c36beca06ab4616b7969fe0e768d660/2020-04-27T02:43:18Z/3600/host;x-bce-console-rpc-id;x-bce-date/841f0ebe49d9b3fd2abfc33b71d53e534a6460fc55e6bfbe96a6f1cc5d163ae6
> Host: cas.baidubce.com
> x-bce-console-rpc-id: e69c8fff-166b-4c82-87c1-7aa3ba309d5c
> x-bce-date: 2020-04-27T02:43:18Z
响应示例
< Cache-Control: no-cache
< Content-Length: -1
< Content-Type: application/json;charset=UTF-8
< Date: Mon, 27 Apr 2020 02:43:21 GMT
< Server: BWS
< transfer-encoding: chunked
< X-Bce-Gateway-Region: NJ
< X-Bce-Request-Id: c994f260-c77a-417f-9aa9-26cefecdec36
{
"totalCount": 32,
"result": [{
"certType": "DV",
"productType": "SINGLE",
"expireTime": "2018-07-17T23:59:59Z",
"createTime": "2017-07-17T07:10:01Z",
"duration": 0,
"productId": "90988831-bd80-11e7-a065-2c44fd7f89bd",
"brand": "SYMANTEC",
"domainNumber": 0,
"wildcardNumber": 0,
"status": "EXPIRED",
"domainName": "www.lss-qa.com"
}, {
"certType": "DV",
"productType": "SINGLE",
"expireTime": "2018-07-17T23:59:59Z",
"createTime": "2017-07-17T07:10:18Z",
"duration": 0,
"productId": "90988ac4-bd80-11e7-a065-2c44fd7f89bd",
"brand": "SYMANTEC",
"domainNumber": 0,
"wildcardNumber": 0,
"status": "EXPIRED",
"domainName": "abc.lss-qa.com"
}, {
"certType": "DV",
"productType": "SINGLE",
"expireTime": "2018-07-28T23:59:59Z",
"createTime": "2017-07-28T04:10:33Z",
"duration": 0,
"productId": "909b6d34-bd80-11e7-a065-2c44fd7f89bd",
"brand": "SYMANTEC",
"domainNumber": 0,
"wildcardNumber": 0,
"status": "EXPIRED",
"domainName": "mysandbox.lss-qa.com"
}]
}
免费证书购买限制检查
接口描述
本接口用于查询用户是否可以继续购买免费证书
请求结构
> GET http://cas.baidubce.com/v3/openapi/query/check
> Authorization: authorization string
> Host: cas.baidubce.com
> x-bce-console-rpc-id: e69c8fff-166b-4c82-87c1-7aa3ba309d5c
> x-bce-date: 2020-04-27T02:43:18Z
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 类型 是否必需 参数位置 描述
version String 是 URL参数 API版本号
check String 是 Query参数 接口要求,必带,value为空,不要填
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 类型 描述
freeCount int 一共有免费证书配额
enablePurchaseDV boolean 当前是否可以继续免费购买
请求示例
> GET http://cas.baidubce.com/v3/openapi/query/check
> Authorization: bce-auth-v1/5c36beca06ab4616b7969fe0e768d660/2020-04-27T07:30:50Z/3600/host;x-bce- console-rpc-id;x-bce-date/c359d7207b0bef14c68e79532948056134a9f385fc5fed3a4454bd196e88ddd5
> Host: cas.baidubce.com
> x-bce-console-rpc-id: 883bacf4-3e9e-41e1-92f4-8da87ae4f99f
> x-bce-date: 2020-04-27T07:30:50Z
响应示例
< Cache-Control: no-cache
< Content-Length: -1
< Content-Type: application/json;charset=UTF-8
< Date: Mon, 27 Apr 2020 07:30:52 GMT
< Server: BWS
< transfer-encoding: chunked
< X-Bce-Gateway-Region: SZ
< X-Bce-Request-Id: 420bdb80-e273-4e97-a804-b95a71502413
{"freeCount":5,"enablePurchaseDV":true}