Cloud Cruiser became HPE Consumption Analytics on Nov. 1st. You'll still see the old name in places while we update this site.

 

 

Consumption Analytics Documentation

Home > Cloud Cruiser 3 > REST API reference > Rate plans > Get all rate plans

Get all rate plans

Retrieves the list of all rate plans defined in your Cloud Cruiser system.

URL syntax

http://<ccServerURL>/rest/v1/ratePlans

HTTP method

GET

Request

Request body

None

Response

Content-Type
application/xml
Response body

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

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.cloudcruiser.com/webservices/v1/RatePlan" targetNamespace="http://www.cloudcruiser.com/webservices/v1/RatePlan">
<xs:element name="ratePlans">
  <xs:complexType>
    <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" ref="tns:ratePlan"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>
<xs:complexType name="RatePlan">
  <xs:all>
    <xs:element name="name" type="xs:string"/>
    <xs:element name="defaultPlan" type="xs:boolean"/>
  </xs:all>
  <xs:attribute name="id" type="xs:int"/>
</xs:complexType>
</xs:schema>
JAXB type
com.cloudcruiser.server.webservices.v1.dto.ratePlan.RatePlans

Example

URL
http://localhost:8080/rest/v1/ratePlans
Response body
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ratePlans xmlns="http://www.cloudcruiser.com/webservices/v1/RatePlan">
  <ratePlan id="1">
    <name>default</name>
    <defaultPlan>true</defaultPlan>
  </ratePlan>
  <ratePlan id="2">
    <name>Customer 1</name>
    <defaultPlan>false</defaultPlan>
  </ratePlan>
  <ratePlan id="3">
    <name>Customer 2</name>
    <defaultPlan>false</defaultPlan>
  </ratePlan>
</ratePlans>
Java
RatePlans ratePlans = ratePlanServiceProxy.getAllRatePlans();
Last modified

Tags

This page has no custom tags.

Classifications

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