Skip to main content

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

ParameterTypeRequiredDescription
serviceIdIntegerMandatoryService ID.

Body Parameters

ParameterTypeRequiredDescription
domainNameStringMandatoryThe domainName is one of the domains associated with the serviceId.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400InvalidCustomer.IdEmptyCustomer id can be empty or invalid.
400InvalidService.IdIncorrectService id is empty or invalid.
400ServiceId.IdPermissionServiceId can not be found or unknown.

Response

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
404ServiceId.NotFoundServiceId 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