Request Auto Let's Encrypt Certificate for Domain
Requests the system to automatically generate the Let's Encrypt Certificate for a domain.
Request
Request-Line
POST /cdn/v1.0/services/{serviceId}/certificates/auto HTTP/1.1
Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | Integer | Mandatory | Service ID. |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| domainName | String | Mandatory | The domainName is one of the domains associated with the serviceId. |
Status Codes, Error Codes and Error Messages
| Status Code | Error Code | Error Message |
|---|---|---|
| 400 | InvalidCustomer.IdEmpty | Customer id can be empty or invalid. |
| 400 | InvalidService.IdIncorrect | Service id is empty or invalid. |
| 400 | ServiceId.IdPermission | ServiceId can not be found or unknown. |
Response
Status Codes, Error Codes and Error Messages
| Status Code | Error Code | Error Message |
|---|---|---|
| 404 | ServiceId.NotFound | ServiceId is not found. |
Examples
Request Auto Let's Encrypt Certificate for Domain
Request
POST /cdn/v1.0/services/67709/certificates/auto HTTP/1.1
{
"domainName":"test.swiftfederation.com"
}
Successful Response Body
HTTP/1.1 200