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 4 > REST API reference > Rate plans > Delete a rate plan by ID

Delete a rate plan by ID

Deletes a rate plan specified by its ID.

This method is available in HPE Consumption Analytics Portal version 4.1 and later.

Resource URL

DELETE http://<ccServerURL>/rest/v2/ratePlans/<id>

Request

Parameters
  Name Type Description
URL path parameters (required) id integer The ID of the rate plan to delete
URL query parameters (optional) withCustomers boolean Whether to delete the specified rate plan if it has associated customers. The default is false.
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/10102

URL invocation (delete with customers)

DELETE http://localhost:8080/rest/v2/ratePlans/10300?withCustomers=true

Java invocation
Response body (success)

Successfully deleted rate plan with id 10102

Response body (nonexistent rate plan)

<message>Failed to delete the rate plan Cause: com.cloudcruiser.common.exceptions.NoSuchRecordException: Unable to locate specified Rate Plan</message>

Response body (plan has customers)

<message>Failed to delete the rate plan Cause: com.cloudcruiser.common.exceptions.InvalidOperationException: Unable to delete the rate plan test-plan-13. It has associated customers.</message>

Last modified

Tags

Classifications

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