Attach Certificate to Domain
Attach a certificate to a domain for website acceleration. When attaching a new certificate to a domain with a certificate, the new certificate will override the old certificate.
Request
Request-Line
POST /waap/v1.0/services/{serviceId}/certificates HTTP/1.1
Request Parameters
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
serviceId | Integer | Mandatory | Service ID. |
Body Parameters
Parameter | Type | Required | Description |
---|---|---|---|
certificateId | Integer | Mandatory | Certificate ID. |
domain | String | Mandatory | Domain name. |
Response
Status Codes, Error Codes and Error Messages
Status Code | Error Code | Error Message |
---|---|---|
400 | Request.BadRequest | Bad request. |
400 | CertificateId.Invalid | CertificateId is empty or invalid. |
400 | ServiceId.Invalid | ServiceId is empty or invalid. |
400 | Domain.Invalid | Domain is empty or invalid. |
404 | ServiceId.NotFound | ServiceId is not found. |
404 | Domain.NotFound | Domain is not found. |
400 | Certificate.OperationFailed | The certificate operation failed. |
Examples
Attach Certificate to Domain
Request
POST /waap/v1.0/services/67709/certificates HTTP/1.1
{
"certificateId":72968,
"domain":"test.swiftfederation.com"
}