Skip to content

Certificate Management Interface

POST Create Domain Certificate Configuration

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

Body Request Parameters

{
  "domainId": 190,
  "protocol": 1,
  "source": 1,
  "sslCert": "",
  "certId": 1,
  "sslKey": ""
}

Request Parameters

Name Location Type Required Chinese Name Description
Authorization header string No none
body body L7UpdateDomainSSLVO No L7UpdateDomainSSLVO none

Example Responses

200 Response

{
  "msg": "Update successful",
  "code": 200
}

201 Response

{}

Responses

Status Code Status Meaning Description Data Model
200 OK none Inline
201 Created none Inline
401 Unauthorized none Inline
403 Forbidden none Inline
404 Not Found none Inline

Response Data Structure

Status Code 200

Name Type Required Constraints Chinese Name Description
» msg string true none none
» code integer true none none

Data Model

L7UpdateDomainSSLVO

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

L7UpdateDomainSSLVO

Properties

Name Type Required Constraints Chinese Name Description
certId integer(int64) false none Certificate ID Required when Certificate Source is managed certificate
domainId integer(int64) true none Domain ID none
protocol integer(int32) true none Origin Protocol 0:HTTP,1:HTTPS
source integer(int32) true none Certificate Source 0:Self-owned certificate,1:Managed certificate
sslCert string false none Certificate Content Required when Certificate Source is self-owned certificate
sslKey string false none Private Key Content Required when Certificate Source is self-owned certificate