Delete Cost Template

This API enables you to delete a cost template.

Syntax

The syntax for calling this method is:

DELETE <Base_Url>/costTemplate/{costTemplateId}

A sample API call is as follows:

DELETE https://123.123.123.123/vCenter-CB/api/costTemplate/15

User Privilege

You must have Cost Template Delete privilege on the system.

API Response

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

A sample response is provided here.

Error Codes

Error code

Description

VCB_ERR_INVALID_COST_TEMPLATE_ID

Cost template ID is not valid.