Skip to main content

Get Attached Certificate Of Domain

Retrieves certificate of domain.

Request

Request-Line

GET /cdn/v1.0/services/{serviceId}/certificates?domainName={domainName} HTTP/1.1

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
serviceIdIntegerMandatoryService ID.

Query Parameters

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

Response

Response Body

ParameterTypeDescription
certificateIdIntegerCertificate ID. Only present after a successful Attach Certificate to Domain operation.
domainNameStringCertificate Name. Only present after a successful Attach Certificate to Domain operation.
certTypeStringEither "manual", "auto" or "none". Present after a successful Attach Certificate to Domain operation.
autocertRequestStatusStringEither "issued", "issuing" or "failed". Only present after a Request Auto Let’s Encrypt Certificate for Domain and a successful Attach Certificate to Domain operation.
autocertRequestTimeIntegerThe request time of auto cert. Only present after a Request Auto Let’s Encrypt Certificate for Domain and a successful Attach Certificate to Domain operation.
validFromStringCertificate start time as Unix epoch milliseconds. Only present after a successful Attach Certificate to Domain operation.
validToStringCertificate expiry time as Unix epoch milliseconds. Only present after a successful Attach Certificate to Domain operation.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400ServiceId.InvalidServiceId is empty or invalid.
400DomainName.InvalidDomainName is empty or invalid.
400ServiceId.IdPermissionServiceId can not be found or unknown.
400InvalidCertificate.DomainNameEmptyDomain Name cannot be empty.
404ServiceId.NotFoundServiceId is not found.
404InvalidService.DomainNameNotFoundDomain name can not be found.

Examples

Get Attached Certificate Of Domain

Request

GET /cdn/v1.0/services/228771/certificates?domainName=2.swiftfederation.com HTTP/1.1

{
"certificateId": 2978,
"domainName": "*.swiftfederation.com",
"certType": "manual",
"validFrom": 1747618629000,
"validTo": 1776918778000
}

Successful Response Body

HTTP/1.1 200