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 http://onapp.test/billing/buckets/308/rate_cards/delete.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<rate_card><type>edge_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 http://onapp.test/billing/buckets/308/rate_cards/delete.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"rate_card": {"type": "edge_groups_resource", "bucket_id": 308, "server_type": "other", "target_id": 1}}'

Where:

type - the type of the resource. For CDN, it can be edge_groups_resource.

bucket_id - the ID of the bucket with which this rate card is associated

server_type - the server type this rate card is applicable to, in this case, other

target_id -  the ID of the resource which is deleted

When removing an edge group from Rate Card, note that the prices will be set to zero for all CDN resources using this edge group.