Edit Rate Cards for Other Server Type

To edit rate cards, use the following request:

1
2
PUT /billing/buckets/:bucket_id/rate_cards.xml 
PUT /billing/buckets/:bucket_id/rate_cards.json

XML Request Example

1
curl -i -X PUT -u user:userpass --url http://onapp.test/billing/buckets/367/rate_cards.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<rate_card><target_id>7</target_id><type>edge_groups_resource</type><bucket_id>367</bucket_id><server_type>other</server_type><prices><price>0</price><limit_free>-2.22</limit_free></prices></rate_card>'

JSON Request Example

1
curl -i -X PUT -u user:userpass --url http://onapp.test/billing/buckets/367/rate_cards.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"rate_card": {"target_id": 7, "type": "edge_groups_resource", "bucket_id": 367, "server_type": "other", "prices": {"price": 0, "limit_free": -2.22}}}'

Where:

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 that is added to the rate card

type - the type of the resource that is added to the rate card, it can be one of the following values:

  • backup_resource_zone_resource
  • edge_groups_resource
  • template_resource
  • service_addon_groups_resource

prices - the array of prices and free limits for the resource that can be the following.

TypeParametersDescription
backup_resource_zone_resource

price

imageprice_recovery_point_size

limit_free

imagelimit_recovery_point_size_free

  • The price for a recovery point (backup) per hour.
  • The price for a recovery point (backup) size in Gb per hour.
  • The number of recovery points (backup/hour) users can store in a backup resource zone for free.
  • The size of recovery points (Gb/hour) users can consume in a backup resource zone for free.
edge_groups_resourcepriceThe price per GB of bandwidth.

service_addon_resource

priceThe price per service add-on per hour.
price_cpuThe price for the CPU usage per hour per CPU core.
price_memoryThe additional price for RAM per GB per hour.
price_disk_sizeThe additional price for disk size per GB per hour.
template_resourcepriceThe price per template in a template store.

Page History

v. 6.0

  • Added the following parameters for the backup_resource_zone_resource type:
    • price_recovery_point_size
    • limit_recovery_point_size_free

v. 5.8

  • Added the backup_resource_zone_resource type