云SSL相关接口

SSL证书服务 CAS

  • 产品描述
    • 介绍
    • 优势
    • 使用场景
    • 核心概念
  • SSL证书安装指南
    • Tomcat服务器安装SSL证书
    • 在Apache服务器上安装SSL证书
    • 在IIS服务器上安装SSL证书
    • 在Nginx或Tengine服务器上安装证书
  • 证书相关概念
    • 主流数字证书都有哪些格式?
  • 典型实践
    • Ubuntu系统Apache 2部署SSL证书
    • OpenSSL心血漏洞(Heartbleed)修复方案
    • 检测OpenSSL-DROWN漏洞
    • 密文填塞漏洞
    • CentOS系统Tomcat 8.5或9部署SSL证书
    • OpenSSL-CCS注入漏洞修复方案
    • HTTPS安全典型实践
      • 安全加固
      • 服务器软件
      • SSL和TLS部署
  • 操作指南
    • 多用户访问控制
    • 管理证书
    • BaiduTrust云端配置
    • 购买证书
    • 续费证书
    • 签发证书(OV与EV)
    • 购前准备
    • 部署证书
    • 签发证书(DV)
    • 重新签发证书
    • BaiduTrust签发证书
      • DV证书验证与签发
      • OV证书验证与签发
      • EV证书验证与签发
  • API参考
    • 通用说明
    • 云SSL相关接口
    • 公共请求头与公共响应头
    • 附录
    • 查询相关接口
    • 证书相关接口
    • 服务域名
    • 价格相关接口
    • 订单相关接口
    • 错误码
    • 概述
  • 常见问题
    • SSL证书申请问题
    • 浏览器访问相关问题
    • SSL证书部署问题
    • SSL证书生效问题
    • 常见问题总览
    • 一般问题
  • 产品定价
    • 申请退款
    • 产品定价
  • 产品动态
    • 最新活动
    • 最新公告
      • 有关TrustAsia品牌根证书的切换说明
      • 百度自有品牌证书BaiduTrust下线通知
      • Symantec证书品牌名及品牌标识变更通知
      • TrustAsia 免费证书 CT 政策问题
      • SSL证书有效期变更通知及应对策略
      • DigiCert 品牌根证书升级通知
      • 免费SSL证书有效期调整通知
所有文档
menu
没有找到结果,请重新输入

SSL证书服务 CAS

  • 产品描述
    • 介绍
    • 优势
    • 使用场景
    • 核心概念
  • SSL证书安装指南
    • Tomcat服务器安装SSL证书
    • 在Apache服务器上安装SSL证书
    • 在IIS服务器上安装SSL证书
    • 在Nginx或Tengine服务器上安装证书
  • 证书相关概念
    • 主流数字证书都有哪些格式?
  • 典型实践
    • Ubuntu系统Apache 2部署SSL证书
    • OpenSSL心血漏洞(Heartbleed)修复方案
    • 检测OpenSSL-DROWN漏洞
    • 密文填塞漏洞
    • CentOS系统Tomcat 8.5或9部署SSL证书
    • OpenSSL-CCS注入漏洞修复方案
    • HTTPS安全典型实践
      • 安全加固
      • 服务器软件
      • SSL和TLS部署
  • 操作指南
    • 多用户访问控制
    • 管理证书
    • BaiduTrust云端配置
    • 购买证书
    • 续费证书
    • 签发证书(OV与EV)
    • 购前准备
    • 部署证书
    • 签发证书(DV)
    • 重新签发证书
    • BaiduTrust签发证书
      • DV证书验证与签发
      • OV证书验证与签发
      • EV证书验证与签发
  • API参考
    • 通用说明
    • 云SSL相关接口
    • 公共请求头与公共响应头
    • 附录
    • 查询相关接口
    • 证书相关接口
    • 服务域名
    • 价格相关接口
    • 订单相关接口
    • 错误码
    • 概述
  • 常见问题
    • SSL证书申请问题
    • 浏览器访问相关问题
    • SSL证书部署问题
    • SSL证书生效问题
    • 常见问题总览
    • 一般问题
  • 产品定价
    • 申请退款
    • 产品定价
  • 产品动态
    • 最新活动
    • 最新公告
      • 有关TrustAsia品牌根证书的切换说明
      • 百度自有品牌证书BaiduTrust下线通知
      • Symantec证书品牌名及品牌标识变更通知
      • TrustAsia 免费证书 CT 政策问题
      • SSL证书有效期变更通知及应对策略
      • DigiCert 品牌根证书升级通知
      • 免费SSL证书有效期调整通知
  • 文档中心
  • arrow
  • SSL证书服务CAS
  • arrow
  • API参考
  • arrow
  • 云SSL相关接口
本页目录
  • 站点列表
  • 站点详情
  • 站点停止
  • 更新IPv6
  • 更新TLS协议版本控制
  • 更新OCSP
  • 更新QUIC
  • 更新源站地址
  • 更新压缩
  • 更新SEO
  • 页面多余字符裁剪
  • HTTPS强制跳转

云SSL相关接口

更新时间:2025-08-21

站点列表

接口描述

站点列表,查看用户所拥有的云端证书部署的站点

请求结构

Plain Text
1POST /host/list_host
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 HostlistRequest null Body

请求体参数

HostlistRequest

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "a.com"

响应参数

无

请求示例

POST /host/list_host

JSON
1<公共请求头>
2{
3  "host" : "host"
4}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3[
4    {
5        "host":"aaa.com",
6        "status":"RUNNING",
7        "resource_id":"xxx"
8    },
9    {
10        "host":"bbb.com",
11        "status":"SUSPEND",
12        "resource_id":"yyy"
13    }
14]

站点详情

接口描述

站点详情

请求结构

Plain Text
1POST /host/detail
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 DetailRequest null Body

请求体参数

DetailRequest

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "a.com"

响应参数

无

请求示例

POST /host/detail

JSON
1<公共请求头>
2{"host":"a.com"}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "status":"",
12    "route_type":"",
13    "origins":null,
14    "updated_at":"0001-01-01T00:00:00Z",
15    "created_at":"0001-01-01T00:00:00Z",
16    "ssl_versions":null,
17    "ocsp_stapling":"",
18    "mandatory_https":"",
19    "file_trim":"",
20    "hsts":"",
21    "quic":"",
22    "cache":"",
23    "seo_push_record":"",
24    "seo_directly_origin":"",
25    "traffic_limit_rate":0,
26    "compress":"",
27    "quota_id":0
28    }

站点停止

接口描述

站点停止

请求结构

Plain Text
1POST /host/shutdown
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 查看请求体参数 {"host":"a.com"} Body

请求体参数

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "a.com"

响应参数

无

请求示例

POST /host/shutdown

JSON
1<公共请求头>
2{"host":"a.com"}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "status":"",
12    "route_type":"",
13    "origins":null,
14    "updated_at":"0001-01-01T00:00:00Z",
15    "created_at":"0001-01-01T00:00:00Z",
16    "ssl_versions":null,
17    "ocsp_stapling":"",
18    "mandatory_https":"",
19    "file_trim":"",
20    "hsts":"",
21    "quic":"",
22    "cache":"",
23    "seo_push_record":"",
24    "seo_directly_origin":"",
25    "traffic_limit_rate":0,
26    "compress":"",
27    "quota_id":0
28    }

更新IPv6

接口描述

更新ipv6

请求结构

Plain Text
1POST /host/update_ipv6
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 Updateipv6Request null Body

请求体参数

Updateipv6Request

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "a.com"
ipv6 String 是 是否优化,可选值"true" "false" "true"

响应参数

无

请求示例

POST /host/update_ipv6

JSON
1<公共请求头>
2{"host":"a.com","ipv6":"true"}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "status":"",
12    "route_type":"",
13    "origins":null,
14    "updated_at":"0001-01-01T00:00:00Z",
15    "created_at":"0001-01-01T00:00:00Z",
16    "ssl_versions":null,
17    "ocsp_stapling":"",
18    "mandatory_https":"",
19    "file_trim":"",
20    "hsts":"",
21    "quic":"",
22    "cache":"",
23    "seo_push_record":"",
24    "seo_directly_origin":"",
25    "traffic_limit_rate":0,
26    "compress":"",
27    "quota_id":0
28    }

更新TLS协议版本控制

接口描述

更新tls协议版本控制

请求结构

Plain Text
1POST /host/batch_update_tls
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 BatchUpdateTLSRequest null Body

请求体参数

BatchUpdateTLSRequest

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 www.baidu.com
ssl_protocols List<String> 是 协议,包含 (TLS10,TLS11,TLS12,TLS13) ["TLS10","TLS11"]

响应参数

无

请求示例

POST /host/batch_update_tls

JSON
1<公共请求头>
2
3{"host":"a.com","ssl_protocols":["TLS10","TLS11"]}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3
4{
5    "id":0,
6    "resource_id":"",
7    "host":"",
8    "user_id":"",
9    "cname_record":"",
10    "iam_cert_id":"",
11    "enable":"",
12    "status":"",
13    "route_type":"",
14    "origins":null,
15    "updated_at":"0001-01-01T00:00:00Z",
16    "created_at":"0001-01-01T00:00:00Z",
17    "ssl_versions":null,
18    "ocsp_stapling":"",
19    "mandatory_https":"",
20    "file_trim":"",
21    "hsts":"",
22    "quic":"",
23    "cache":"",
24    "seo_push_record":"",
25    "seo_directly_origin":"",
26    "traffic_limit_rate":0,
27    "compress":"",
28    "quota_id":0
29    }

更新OCSP

接口描述

更新ocsp

请求结构

Plain Text
1POST /host/update_ocsp
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 UpdateOCSPRequest null Body

请求体参数

UpdateOCSPRequest

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "ac.com"
ocsp_stapling String 是 是否启用,可选值 "true" "false" "true" 或"false"

响应参数

无

请求示例

POST /host/update_ocsp

JSON
1<公共请求头>
2{"host":"a.com","ocsp_stapling":"true"}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "Enable1":false,
12    "status":"",
13    "route_type":"",
14    "origins":null,
15    "updated_at":"0001-01-01T00:00:00Z",
16    "created_at":"0001-01-01T00:00:00Z",
17    "ssl_versions":null,
18    "ocsp_stapling":"",
19    "mandatory_https":"",
20    "file_trim":"",
21    "hsts":"",
22    "quic":"",
23    "cache":"",
24    "seo_push_record":"",
25    "seo_directly_origin":"",
26    "traffic_limit_rate":0,
27    "compress":"",
28    "quota_id":0
29    }

更新QUIC

接口描述

更新quic

请求结构

Plain Text
1POST /host/update_quic
2<公共请求头>

请求参数

UpdatequicResponse

参数名称 参数类型 是否必须 描述 示例值
quic String 是 是否启用,可选值 "true"或"false" "true"
host String 是 站点 "a.com"

响应参数

无

响应状态码

200

请求示例

POST /host/update_quic

JSON
1<公共请求头>
2{"host":"a.com","quic":"true"}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "Enable1":false,
12    "status":"",
13    "route_type":"",
14    "origins":null,
15    "updated_at":"0001-01-01T00:00:00Z",
16    "created_at":"0001-01-01T00:00:00Z",
17    "ssl_versions":null,
18    "ocsp_stapling":"",
19    "mandatory_https":"",
20    "file_trim":"",
21    "hsts":"",
22    "quic":"",
23    "cache":"",
24    "seo_push_record":"",
25    "seo_directly_origin":"",
26    "traffic_limit_rate":0,
27    "compress":"",
28    "quota_id":0
29    }

更新源站地址

接口描述

更新源站地址

请求结构

Plain Text
1POST /host/update_origin
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 UpdateOriginRequest null Body

请求体参数

UpdateOriginRequest

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "abc.com"
origins Origin 是 源站数组 [{"addr":"2.2.2.2","http_port":"80","https_port":"443","type":""}]

响应参数

无

请求示例

POST /host/update_origin

JSON
1<公共请求头>
2{
3    "host":"abc.com",
4    "origins":[
5        {
6            "addr":"2.2.2.2",
7            "http_port":"80",
8            "https_port":"443",
9            "type":""
10        }
11    ]
12}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "Enable1":false,
12    "status":"",
13    "route_type":"",
14    "origins":null,
15    "updated_at":"0001-01-01T00:00:00Z",
16    "created_at":"0001-01-01T00:00:00Z",
17    "ssl_versions":null,
18    "ocsp_stapling":"",
19    "mandatory_https":"",
20    "file_trim":"",
21    "hsts":"",
22    "quic":"",
23    "cache":"",
24    "seo_push_record":"",
25    "seo_directly_origin":"",
26    "traffic_limit_rate":0,
27    "compress":"",
28    "quota_id":0
29    }

更新压缩

接口描述

更新压缩

请求结构

Plain Text
1POST /host/update_compress
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 UpdateCompressRequest null Body

请求体参数

UpdateCompressRequest

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "a.com"
compress String 是 是否压缩,可选值"true" "false" "true"

响应参数

无

请求示例

POST /host/update_compress

JSON
1<公共请求头>
2{
3	"host": "a.com",
4	"compress": "true"
5}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "Enable1":false,
12    "status":"",
13    "route_type":"",
14    "origins":null,
15    "updated_at":"0001-01-01T00:00:00Z",
16    "created_at":"0001-01-01T00:00:00Z",
17    "ssl_versions":null,
18    "ocsp_stapling":"",
19    "mandatory_https":"",
20    "file_trim":"",
21    "hsts":"",
22    "quic":"",
23    "cache":"",
24    "seo_push_record":"",
25    "seo_directly_origin":"",
26    "traffic_limit_rate":0,
27    "compress":"",
28    "quota_id":0
29    }

更新SEO

接口描述

更新seo

请求结构

Plain Text
1POST /host/update_seo
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 UpdateSEORequest null Body

请求体参数

UpdateSEORequest

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "a.com"
seo_push_record String 是 是否主动推数据,可选值"true" "false" "true"
seo_directly_origin String 是 是否直接回源"true" "false" "true"

请求示例

POST /host/update_seo

JSON
1<公共请求头>
2{
3	"host": "a.com",
4	"seo_push_record": "true",
5	"seo_directly_origin": "false"
6}

响应参数

无

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "status":"",
12    "route_type":"",
13    "origins":null,
14    "updated_at":"0001-01-01T00:00:00Z",
15    "created_at":"0001-01-01T00:00:00Z",
16    "ssl_versions":null,
17    "ocsp_stapling":"",
18    "mandatory_https":"",
19    "file_trim":"",
20    "hsts":"",
21    "quic":"",
22    "cache":"",
23    "seo_push_record":"",
24    "seo_directly_origin":"",
25    "traffic_limit_rate":0,
26    "compress":"",
27    "quota_id":0
28    }

页面多余字符裁剪

接口说明

页面多余字符裁剪

请求结构

Plain Text
1POST /host/update_file_trim
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 UpdateFileTrimRequest null Body

请求体参数

UpdateFileTrimRequest

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "a.com"
trim String 是 是否优化,可选值"true" "false" "false"

响应参数

无

请求示例

POST /host/update_file_trim

JSON
1<公共请求头>
2{"host":"a.com","trim":"true"}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "Enable1":false,
12    "status":"",
13    "route_type":"",
14    "origins":null,
15    "updated_at":"0001-01-01T00:00:00Z",
16    "created_at":"0001-01-01T00:00:00Z",
17    "ssl_versions":null,
18    "ocsp_stapling":"",
19    "mandatory_https":"",
20    "file_trim":"",
21    "hsts":"",
22    "quic":"",
23    "cache":"",
24    "seo_push_record":"",
25    "seo_directly_origin":"",
26    "traffic_limit_rate":0,
27    "compress":"",
28    "quota_id":0
29    }

HTTPS强制跳转

接口描述

https强制跳转

请求结构

Plain Text
1POST /host/update_mandatory_https
2<公共请求头>

请求参数

参数名称 参数类型 是否必须 描述 示例值 参数位置
body Object 否 UpdateMandatoryHTTPSRequest null Body

请求体参数

UpdateMandatoryHTTPSRequest

参数名称 参数类型 是否必须 描述 示例值
host String 是 站点 "a.com"
mandatory_https String 是 是否启动,可选"true","false" "false"

响应参数

无

请求示例

POST /host/update_mandatory_https

JSON
1<公共请求头>
2{"host":"a.com","mandatory_https":"true"}

响应示例

JSON
1HTTP/1.1 200 OK
2<公共响应头>
3{
4    "id":0,
5    "resource_id":"",
6    "host":"",
7    "user_id":"",
8    "cname_record":"",
9    "iam_cert_id":"",
10    "enable":"",
11    "status":"",
12    "route_type":"",
13    "origins":null,
14    "updated_at":"0001-01-01T00:00:00Z",
15    "created_at":"0001-01-01T00:00:00Z",
16    "ssl_versions":null,
17    "ocsp_stapling":"",
18    "mandatory_https":"",
19    "file_trim":"",
20    "hsts":"",
21    "quic":"",
22    "cache":"",
23    "seo_push_record":"",
24    "seo_directly_origin":"",
25    "traffic_limit_rate":0,
26    "compress":"",
27    "quota_id":0
28    }

上一篇
通用说明
下一篇
公共请求头与公共响应头