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 > Create a rate plan

Create a rate plan

Creates a new rate plan based on the provided information.

URL syntax

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

HTTP method

POST

Request

Content-Type
application/xml
Request body

The rate plan definition information. The ratePlan ’s id attribute should be empty. XML text with root element ratePlan .

Response

Content-Type
application/xml
Response body

The created rate plan information. XML text with root element ratePlan .

JAXB type
com.cloudcruiser.server.webservices.v1.dto.ratePlan.RatePlan

Example

URL
http://localhost:8080/rest/v1/ratePlans/ratePlan
Request body
<?xml version="1.0" encoding="UTF-8"?>
<ratePlan xmlns="http://www.cloudcruiser.com/webservices/v1/RatePlan">
  <name>testPlan-1</name>
  <defaultPlan>false</defaultPlan>
</ratePlan>
Response body
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ratePlan xmlns="http://www.cloudcruiser.com/webservices/v1/RatePlan" id="10400">
  <name>testPlan-1</name>
  <defaultPlan>false</defaultPlan>
</ratePlan>
Last modified

Tags

This page has no custom tags.

Classifications

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