Roll back to a previous domain configuration - POST /api/domain/{domain-id}/history/{recordId}

Parent Previous Next

POST /api/domain/{domain-id}/history/{recordId}

Roll back to a previous configuration in a domain's deployment history.  Domain-id is a unique id representing a domain. It is returned when you create a domain.  RecordId is an identifier representing an entry in the deployment history of the domain. It is returned when you request the domain's deployment history. This API can be called for domains of the Web Acceleration, Website Acceleration - Static only,  Download Acceleration, and Video Acceleration products.


Request Details


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:


POST /api/domain/<domain-id>/history/{recordId} HTTP/1.1

Authorization: Basic <authorization string>

Host: api.quantil.com

Date: <date>

Accept: application/xml


Here is the structure of a request using the curl utility.   The domain-id is the unique ID which is returned to you when you created the domain.


curl -i --url https://api.quantil.com/api/domain/ {domain-id}/history/{recordId}

-X POST

-u {user}: {password}

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

-H 'Accept: application/xml'

-H 'Content-Type: application/xml'


Sample Request:


The following example using the curl command-line tool to obtain a domain's deployment history.


curl -i --url 'https://api.quantil.com/api/domain/5442/history/1' -X POST -u test:pXoktxJQnUEkaOurDbJ02Y0axzE= -H 'Date: Wed, 06 Aug 2014 14:12:25 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 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 200 OK

Date: Wed, 07 Jan 2015 00:20:23 GMT

Accept-Ranges: bytes

Server: WS-web-server

Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept

x-cnc-request-id: 4673005

ContentType: application/xml;charset=UTF-8

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

Content-Length: 86


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

<response><message>success</message></response>





Error List

Error

Description

HTTP status code

AwaitingDeployment

There is already a domain deployment in process or awaiting execution.

400

NoSuchDomain

The specified domain does not exist.

400