Delete SSL Certificate - DELETE /api/ssl/certificate/{certificate-id}

Parent Previous Next

DELETE /api/ssl/certificate/{certificate-id}                            

Delete an SSL certificate from QUANTIL's system. Certificate-id is a unique id returned in the Location header of the HTTP Response when you added the certificate. It is also returned by the Get Certificate List API.


Request Syntax


Request Headers


Header

Description

Required

Authorization

Authorization string for the request

Yes

Host

URI for the QUANTIL SDK (i.e., api.quantil.com)

Yes

Date

The date and time of the request.

Yes

Accept

Indicates the accepted format (i.e., application/xml)

Yes

Request Body Elements


This request does not include an XML document in the request body

Request Syntax:


DELETE /api/ssl/certificate HTTP/1.1

Authorization: <authorization string>

Host: api.quantil.com

Date: <date>

Accept: application/xml


Here is the structure of a request using the curl utility.


curl -i --url https://api.quantil.com/api/ssl/certificate/{certificate-id}

-X DELETE

-u {user}: {password}

-H 'Date: Fri, 26 Oct 2012 06:33:26 GMT'

-H 'Accept: application/xml'

-H 'Content-Type: application/xml'

Sample Request:

curl -i --url 'https://api.quantil.com/api/ssl/certificate/10303' -X DELETE -u test:sr2z/l6M/DF/gbzlvD34nnGwJt0= -H 'Date: Fri, 08 Aug 2014 16:35:44 PDT' -H 'Accept: application/xml'


Response Details:


Response Headers:

HTTP / 1.1 200 OK

Date: <date>

Content-Type: application/xml; charset = utf-8

x-cnc-request-id: {id string auto generated by the QUANTIL server}


Response Body Elements



Element

Description

response

container for additional information from the QUANTIL server.

message

a message returned by the QUANTIL server.   If the request was successful, the text will be 'success'.



Sample Response:


HTTP/1.1 403 Forbidden

Date: Sat, 09 Aug 2014 01:11:54 GMT

Accept-Ranges: bytes

Server: WS-web-server

x-cnc-request-id: 1149792

ContentType: application/xml;charset=UTF-8

Content-Type: application/xml;charset=UTF-8

Content-Length: 165


<?xml version="1.0" encoding="UTF-8"?>

<response><code>SSLInUse</code>

<message>This SSL certificate is used by 1 domains and cannot be deleted.</message></response>

Error List


Error

Description

HTTP status code

CertificateIsUsed

The certificate is used and cannot be deleted.

403

NoSuchCertificate

The specified certificate does not exist.

403