跳转至

证书管理接口

POST 证书配置域名

POST /prod-api/cdn/layer7/ssl/describeSSLInfo

Body 请求参数

{
  "source": 1,
  "certId": 86,
  "sslKey": "",
  "sslCert": ""
}

请求参数

名称 位置 类型 必选 中文名 说明
Authorization header string none
body body L7DescribeSSLInfoVo L7DescribeSSLInfoVo none

返回示例

200 Response

{
  "msg": "操作成功",
  "code": 200,
  "data": {
    "dnsName": "demo.com",
    "domains": [
      {
        "port": 0,
        "domain": "*.demo.com",
        "id": 194,
        "sslsupport": 0
      }
    ]
  }
}

201 Response

{}

返回结果

状态码 状态码含义 说明 数据模型
200 OK none Inline
201 Created none Inline
401 Unauthorized none Inline
403 Forbidden none Inline
404 Not Found none Inline

返回数据结构

状态码 200

名称 类型 必选 约束 中文名 说明
» msg string true none none
» code integer true none none
» data object true none none
»» dnsName string true none 证书域名 none
»» domains [object] true none 域名参数 none
»»» port string true none 端口 none
»»» domain string true none 域名 none
»»» sslsupport string true none 回源类型 0:HTTP
1:HTTPS
»»» endTime string true none 到期时间 none
»»» id string true none 域名 ID none

数据模型

L7DescribeSSLInfoVo

{
  "certId": 0,
  "source": 0,
  "sslCert": "string",
  "sslKey": "string"
}

L7DescribeSSLInfoVo

属性

名称 类型 必选 约束 中文名 说明
certId integer(int64) true none 证书 id none
source integer(int32) true none 证书来源 0:表示自有证书
1:托管证书
sslCert string false none 证书内容 none
sslKey string false none 私钥内容 none