Delete Resources from Rate Cards for VPC Server Type

If you remove a compute/data store/network/backup server zone from the Rate Card, the prices for the removed resource will be set to zero for the servers using this zone(s).

XML Request Example

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

JSON Request Example

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

Where:

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

  • compute_zone

  • data_store_zone

  • network_zone

  • backup_server_zone

  • instance_package

  • template_group

  • edge_group

  • recipe_group

  • service_addon_group

  • service_addon_target

  • orchestration_model

  • service_addon

  • template

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, vpc.

target_id - the ID of the resource which is deleted