Certificate Management Interface¶
POST Batch Update Domain Certificates Configuration¶
POST /prod-api/cdn/layer7/ssl/batchUpdateDomainCertInfo
Body Request Parameters
Request Parameters¶
| Name | Location | Type | Required | Chinese Name | Description |
|---|---|---|---|---|---|
| Authorization | header | string | No | none | |
| body | body | object | No | none | |
| » certId | body | integer(int64) | No | Certificate ID | Required when certificate source is managed certificate |
| » domainIdList | body | [integer] | Yes | Domain | Domain ID, e.g.: domainIdList:[1] |
| » protocol | body | integer(int32) | Yes | Origin Protocol | 0:HTTP,1:Protocol Follow |
| » source | body | integer(int32) | Yes | Certificate Source | 0:Self-owned certificate,1:Managed certificate |
| » sslCert | body | string | No | Certificate Content | Required when certificate source is self-owned certificate |
| » sslKey | body | string | No | Private Key Content | Required when certificate source is self-owned certificate |
Example Responses
200 Response
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 | 约束 | Chinese Name | Description |
|---|---|---|---|---|---|
| » msg | string | true | none | none | |
| » code | integer | true | none | none |
Data Model¶
L7UpdateBatchDomainSSLVo
{
"certId": 0,
"domainIdList": [0],
"protocol": 0,
"source": 0,
"sslCert": "string",
"sslKey": "string"
}
L7UpdateBatchDomainSSLVo
Properties¶
| Name | Type | Required | 约束 | Chinese Name | Description |
|---|---|---|---|---|---|
| certId | integer(int64) | false | none | Certificate ID | Required when certificate source is managed certificate |
| domainIdList | [integer] | true | none | Domain | Domain ID, e.g.: domainIdList:[1] |
| protocol | integer(int32) | true | none | Origin Protocol | 0:HTTP,1:Protocol Follow |
| 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 |