This API helps you delete a vCenter Server with the ID vCenterServerId from vCenter Chargeback Manager. The changes take effect immediately.
The vCenterServerId comes from the XML response of the Add vCenter Server API. If you do not want to calculate costs and generate reports for the virtual machines managed by a vCenter Server, you can remove the vCenter Server from vCenter Chargeback Manager.
The syntax for calling this API is:
DELETE <Base_URL>/vCenterServer/{vCenterServerId}
A sample API call is as follows:
DELETE https://123.123.123.123/vCenter-CB/api/vCenterServer/99
Only a super user or an administrator who has added the vCenter Server can delete the vCenter Server.
This API does not take any input parameters.
If the request succeeds, the API deletes the vCenter Server from vCenter Chargeback Manager. The response XML provides the status of the operation.
A sample response is provided here.
The following table explains the possible errors codes.
Error code |
Description |
VCB_ERR_INVALID_VC_ID |
Returned if you specify an invalid vCenter Server id |