Home > Cloud Cruiser 3 > REST API reference > Resources > Get all revisions

Get all revisions

Retrieves all revisions for the resource specified by headerId .

URL syntax

http://<ccServerURL
>/rest/v1/resources/resource/<headerId
>/revisions

HTTP method

GET

Request

URL path parameters (required)

headerId (type: int )

Request body

None

Response

Content-Type
application/xml
Response body

XML text with root element revisions and the following XML schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.cloudcruiser.com/webservices/v1/Common" xmlns:tns="http://www.cloudcruiser.com/webservices/v1/Resource" targetNamespace="http://www.cloudcruiser.com/webservices/v1/Resource">
<xs:element name="revisions">
  <xs:complexType>
    <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" ref="tns:revision"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>
</xs:schema>

JAXB type

com.cloudcruiser.server.webservices.v1.dto.resource.Revisions

Example

URL
http://localhost:8080/rest/v1/resources/resource/10011/revisions
Response body
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<revisions xmlns="http://www.cloudcruiser.com/webservices/v1/Resource">
  <revision id="10015">
    <ratePlanName>default</ratePlanName>
    <startDate year="2000" month="1" day="1"/>
    <endDate year="2999" month="12" day="31"/>
    <detailType>BASIC</detailType>
    <detail id="10015">
      <rate id="10015" currencyCode="usd">
        <variableCharge>1.0E-4</variableCharge>
      </rate>
    </detail>
  </revision>
</revisions>
Java
Revisions revisions = resourceServiceProxy.getRevisions(10011);
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP