DeleteCertificate

1. API Description

This API is used to delete a certificate.

Note

  • Deleting certificates that are currently in use is not allowed.

2. Request Parameters

The following list includes the request parameters required by the API:

Parameter NameRequiredTypeDescription

certificateId

Yes

String

Certificate ID

3. Output Parameters

Parameter NameTypeDescription

requestId

String

Unique request ID. Returned with every request. This request's requestId is needed when troubleshooting.

4. Code Example

  1. Delete a certificate

POST / HTTP/1.1
Host: console.zenlayer.com/api/v2/cdn
Content-Type: application/json
X-ZC-Action: DeleteCertificate
<Common Request Params>

Request:
{
   "certificateId": "f0864***66c6fa",
}

Response:
{
    "requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
}

5. Error Codes

The following includes error codes encountered in business logic. For other error codes, see Common Error Codes.

HTTP Status CodeError CodeDescription

400

CERTIFICATE_IS_USING

The certificate is currently in use and cannot be deleted

404

INVALID_CERTIFICATE_NOT_FOUND

The specified certificate was not found

Last updated