Home > Cloud Cruiser 4 > REST API reference > Rate plans > Get a date range for a rate plan

Get a date range for a rate plan

Retrieves an effective date range for a rate plan specified by the ID of the date range.

This method is available in Cloud Cruiser version 4.1 and later.

Resource URL

GET http://<ccServerURL>/rest/v2/ratePlans/<planId>/revisions/<revId>

or

GET http://<ccServerURL>/rest/v2/ratePlans/revisions/<revId>

Request

Parameters
  Name Type Description
URL path parameters revId integer (required) The ID of the date range to retrieve
planId integer (optional) The ID of the rate plan that contains the date range to retrieve
Body

None

Response

Content-Type

application/xml

Body

The specified date range, as XML text with the root element revision or JAXB type com.cloudcruiser.server.webservices.v2.dto.rateplan.Revision.

Schema

{{wiki.page("../zRateplan_XML_schema​")}}

Examples

URL invocation (basic)

GET http://localhost:8080/rest/v2/ratePlans/revisions/10104

URL invocation (with plan ID)

GET http://localhost:8080/rest/v2/ratePlans/10101/revisions/10104

Java invocation
Response body
<revision xmlns="http://www.cloudcruiser.com/webservices/v2/Rateplan" id="10104">
  <ratePlan name="test-plan-11" id="10101"/>
  <startDate year="2014" month="9" day="1"/>
  <endDate year="2014" month="9" day="30"/>
  <serviceRate>
    <service serviceName="test-svc-1" groupName="testGrp-2" id="10400"/>
    <priceDecimals>4</priceDecimals>
    <rateItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BasicRateItem">
      <rate>57.0</rate>
    </rateItem>
  </serviceRate>
  <serviceRate>
    <service serviceName="Network Traffic In" groupName="Network" id="10003"/>
    <priceDecimals>4</priceDecimals>
    <rateItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BasicRateItem">
      <rate>0.55</rate>
    </rateItem>
  </serviceRate>
  <serviceRate>
    <service serviceName="test-svc-2" groupName="testGrp-1" id="10600"/>
    <priceDecimals>4</priceDecimals>
    <rateItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PerTierRateItem">
      <rate>12.0</rate>
      <tierName>t-1</tierName>
      <lowRange>0.0</lowRange>
      <highRange>200.0</highRange>
    </rateItem>
    <rateItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PerTierRateItem">
      <rate>10.0</rate>
      <tierName>t-2</tierName>
      <lowRange>200.0</lowRange>
    </rateItem>
  </serviceRate>
  <serviceRate>
    <service serviceName="Small VM" groupName="Virtual Machines" id="10000"/>
    <priceDecimals>4</priceDecimals>
    <rateItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BasicRateItem">
      <rate>80.0</rate>
      <fixedCharge>2.0</fixedCharge>
    </rateItem>
  </serviceRate>
</revision>
Last modified

Tags

Classifications

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