deleteCertificate
- Print
- PDF
deleteCertificate
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
You can delete SSL certificates.
Request
Method | Request URI |
---|---|
DELETE | https://certificatemanager.apigw.ntruss.com/api/v1/certificate/{certificateNo} |
Reqeust header
Header | Description |
---|---|
x-ncp-apigw-timestamp | It is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC. If the time difference with the API Gateway server is more than 5 minutes, the request is considered invalid. |
x-ncp-iam-access-key | API key issued by NAVER Cloud Platform or access key issued by IAM |
x-ncp-apigw-signature-v2 | Signature used to encrypt the body with the “secret key” that maps with the “access key.” The HMAC encryption algorithm is HMAC SHA256. Reference Call APIs that require IAM authentication |
accept | Specify to application/json |
Request parameters
Parameter | Required | Type | Description |
---|---|---|---|
certificateName | Yes | String | Certificate name |
certificateNo | Yes | String | Certificate number |
Response
Response body
Field | Type | Description |
---|---|---|
returnCode | String | Response code |
returnMessage | String | Response message |
totalRows | Integer | Number of objects in sslCertificateList |
sslCertificateList[] | String | Information of the deleted certificate |
Examples
Request example
curl -X DELETE "https://certificatemanager.apigw.ntruss.com/api/v1/certificate/1321?certificateName=CM-openAPI"
-H "accept: application/json"
-H "x-ncp-iam-access-key: 72A565A16F1827A27DD5"
-H "x-ncp-apigw-timestamp: 1594654180133"
-H "x-ncp-apigw-signature-v2: OpGDXoUmIRCJquWqQMZy3BDjehOmD5tvbhwTEDVjmlg="
Response example
Response header
connection: keep-alive
content-type: application/json;charset=UTF-8
date: Mon, 13 Jul 2020 13:17:08 GMT
referrer-policy: unsafe-url
server: nginx
transfer-encoding: chunked
x-ncp-apigw-response-origin: ENDPOINT
x-ncp-trace-id: 32e1m6kp3acr43gohj6li30e36
Response body
{
"returnCode": "0",
"returnMessage": "Success",
"totalRows": 0
}
Error codes
Errors that may occur while using this action are listed below. For information on common errors, refer to NAVER Cloud Platform.
HTTP response code | errorCode | Message | Description |
---|---|---|---|
200 | 1004 | Failed to delete the certificate. Delete the instance being used first or replace the certificate being used for the instance. | Certificate deletion failed. |
200 | 1004 | Failed to delete the certificate. No certificate was found with a matching with requested certificate name and certificate number. | Certificate deletion failed. |
Was this article helpful?