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 | The unique identifier of this service. |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| domainName | String | Mandatory | The domain name to request the certificate for. Must be the primary domain or an alternate domain of the service. |
Response
Status Codes, Error Codes and Error Messages
| Status Code | Error Code | Error Message |
|---|---|---|
| 400 | InvalidCustomer.IdEmpty | Customer ID cannot be empty or invalid. |
| 400 | InvalidService.IdIncorrect | Service ID is empty or invalid. |
| 400 | InvalidService.IdPermission | Service ID cannot be found or unknown. |
Examples
Request Auto Let's Encrypt Certificate for Domain
Request
POST /cdn/v1.0/services/67709/certificates/auto HTTP/1.1
{
"domainName":"test.flashcone.com"
}
Successful Response Body
HTTP/1.1 200