Home > Cloud Cruiser 3 > REST API reference > Rate plans > Get a rate plan by name

Get a rate plan by name

Retrieves the information of the rate plan specified by its name.

URL syntax

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

HTTP method

GET

Request

URL path parameters (required)

planName (type: string )

Request body

None

Response

Content-Type
application/xml
Response body

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/name/default
Response body
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ratePlan xmlns="http://www.cloudcruiser.com/webservices/v1/RatePlan" id="1">
  <name>default</name>
  <defaultPlan>true</defaultPlan>
</ratePlan>
Java
RatePlan ratePlan = ratePlanServiceProxy.getRatePlanByName("default");
Last modified

Tags

This page has no custom tags.

Classifications

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