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

Delete a date range for a rate plan

Deletes an effective date range from 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

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

or

DELETE 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 delete
planId integer (optional) The ID of the rate plan that contains the date range to delete
Body

None

Response

Content-Type

text/plain

Body

A statement of whether the deletion is successful.​

Examples

URL invocation (basic)

DELETE http://localhost:8080/rest/v2/ratePlans/revisions/10201

URL invocation (with plan ID)

DELETE http://localhost:8080/rest/v2/ratePlans/10101/revisions/10201

Java invocation
Response body (success)

Successfully deleted rate plan revision with id 10201

Response body (nonexistent date range)

<message>Failed to delete rate plan revision with id 10201 Cause: com.cloudcruiser.common.exceptions.NoSuchRecordException: Unable to locate specified Rate Plan Revision</message>

Response body (date range not in rate plan)

<message>Failed to delete rate plan with id 10200 Cause: java.lang.IllegalArgumentException: Cannot find revision with id 10200 in rate plan with id 10000</message>

Last modified

Tags

Classifications

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