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
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | Integer | Mandatory | Service ID. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| domainName | String | Mandatory | The domainName is one of the domains associated with the serviceId. |
Response
Response Body
| Parameter | Type | Description |
|---|---|---|
| certificateId | Integer | Certificate ID. Only present after a successful Attach Certificate to Domain operation. |
| domainName | String | Certificate Name. Only present after a successful Attach Certificate to Domain operation. |
| certType | String | Either "manual", "auto" or "none". Present after a successful Attach Certificate to Domain operation. |
| autocertRequestStatus | String | Either "issued", "issuing" or "failed". Only present after a Request Auto Let’s Encrypt Certificate for Domain and a successful Attach Certificate to Domain operation. |
| autocertRequestTime | Integer | The 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. |
| validFrom | String | Certificate start time as Unix epoch milliseconds. Only present after a successful Attach Certificate to Domain operation. |
| validTo | String | Certificate expiry time as Unix epoch milliseconds. Only present after a successful Attach Certificate to Domain operation. |
Status Codes, Error Codes and Error Messages
| Status Code | Error Code | Error Message |
|---|---|---|
| 400 | ServiceId.Invalid | ServiceId is empty or invalid. |
| 400 | DomainName.Invalid | DomainName is empty or invalid. |
| 400 | ServiceId.IdPermission | ServiceId can not be found or unknown. |
| 400 | InvalidCertificate.DomainNameEmpty | Domain Name cannot be empty. |
| 404 | ServiceId.NotFound | ServiceId is not found. |
| 404 | InvalidService.DomainNameNotFound | Domain 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