deleteCertificate
    • PDF

    deleteCertificate

    • PDF

    Article Summary

    Overview

    You can delete SSL certificates.

    Request

    MethodRequest URI
    DELETEhttps://certificatemanager.apigw.ntruss.com/api/v1/certificate/{certificateNo}

    Reqeust header

    HeaderDescription
    x-ncp-apigw-timestampIt 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-keyAPI key issued by NAVER Cloud Platform or access key issued by IAM
    x-ncp-apigw-signature-v2Signature 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
    acceptSpecify to application/json

    Request parameters

    ParameterRequiredTypeDescription
    certificateNameYesStringCertificate name
    certificateNoYesStringCertificate number

    Response

    Response body

    FieldTypeDescription
    returnCodeStringResponse code
    returnMessageStringResponse message
    totalRowsIntegerNumber of objects in sslCertificateList
    sslCertificateList[]StringInformation 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 codeerrorCodeMessageDescription
    2001004Failed to delete the certificate. Delete the instance being used first or replace the certificate being used for the instance.Certificate deletion failed.
    2001004Failed 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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.