SSL Hosted Certificate API¶
POST Upload Hosted Certificate¶
POST /prod-api/cdn/ssl/hosting/uploadHosting
Body request parameters
request parameters¶
Name | Location | Type | Required | Chinese Name | Description |
---|---|---|---|---|---|
Authorization | header | string | Yes | none | |
body | body | SSLUploadHostingVo | Yes | SSLUploadHostingVo | none |
Response Example
200 Response
201 Response
Response Results¶
Status Code | 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 |
---|---|---|---|---|---|
» code | integer | true | none | none | |
» msg | string | true | none | none |
Data Model¶
SSLUploadHostingVo
SSLUploadHostingVo
Properties¶
Name | Type | Required | Constraints | Chinese Name | Description |
---|---|---|---|---|---|
sslCert | string | true | none | Certificate content | 1. Typically certificate files have extensions like .crt or .pem. Please use appropriate text editors to open certificate files. 2. Certificate format begins with "-----BEGIN CERTIFICATE-----" and ends with "-----END CERTIFICATE-----". |
sslKey | string | true | none | Private key | 1. Typically private key files have extensions like .key or .pem. Please use appropriate text editors to open private key files. 2. Private key format begins with "-----BEGIN (RSA) PRIVATE KEY-----" and ends with "-----END (RSA) PRIVATE KEY-----". |
userId | integer(int64) | false | none | none |