Delete Resource from Rate Card for Other Server Type

To delete resources from rate card, use the following request:

DELETE /billing/buckets/:bucket_id/rate_cards.xml
DELETE /billing/buckets/:bucket_id/rate_cards.json

XML Request Example

curl -i -X DELETE -u user:userpass --url http://onapp.test/billing/buckets/308/rate_cards/delete.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<rate_card><type>template_groups_resource</type><bucket_id>308</bucket_id><server_type>other</server_type><target_id>1</target_id></rate_card>'

JSON Request Example

curl -i -X DELETE -u user:userpass --url http://onapp.test/billing/buckets/308/rate_cards/delete.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"rate_card": {"type": "template_groups_resource", "bucket_id": 308, "server_type": "other", "target_id": 1}}'

Where:

type - the type of the resource for which configuration is set, it can be one of the following values:

  • backup_resource_zone_resource
  • edge_groups_resource
  • template_groups_resource
  • service_addon_groups_resource

bucket_id - the ID of the bucket with which this access control is associated

server_type - the server type this access control is applicable to. In this case other.

target_id -  the ID of the resource which is deleted