Delete Cost Model

This API enables you to delete a cost model with the specified ID.

Syntax

The syntax for calling this method is:

DELETE <Base_Url>/costModel/{costModelId}

A sample API call is as follows:

DELETE https://123.123.123.123/vCenter-CB/api/costModel/999

User Privilege

User must have Cost Model Delete privilege on the system

Request Body Parameters

This API does not require any request parameters.

API Response

The API returns a response XML that indicates the status of the operation.

Error Response

The following table explains the error codes displayed by the API.

Error Code

Description

VCB_ERR_INVALID_COST_MODEL_ID

Cost model ID is invalid.