Creates a new rate plan based on the provided information.
URL syntax
http://<ccServerURL
>/rest/v1/ratePlans/ratePlan
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>