Delete Attribute

The API enables you to delete a Chargeback attribute referred by specific ID. The values that are are defined for the entities in the chargeback hierarchy for this attribute are also deleted.

Syntax

The syntax for calling this method is:

DELETE <Base_Url>/attribute/{attributeId}

A sample API call is as follows:

DELETE https://123.123.123.123/vCenter-CB/api/attribute/1

User Privilege

To delete an attribute, you should have superuser or Administrator privileges.

API Response

The API returns an XML that indicates the status of the operation.

Error Response

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

Error Code

Description

VCB_ERR_INVALID_LOCAL_ATTRIBUTE_ID

vCenter Chargeback Manager defined attribute with the specified ID does not exist.