Add Rate Cards for Other Server Type

To add rate cards, use the following request:

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

XML Request Example

1
curl -i -X POST -u user_email:api_key --url http://onapp.test/billing/buckets/321/rate_cards.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<rate_card><target_id>11</target_id><type>service_addon_resource</type><bucket_id>5</bucket_id><server_type>other</server_type><prices><price>400</price><price_cpu>23</price_cpu><price_memory>34</price_memory><price_disk_size>45</price_disk_size></prices></rate_card>'

JSON Request Example

1
curl -i -X POST -u user_email:api_key --url http://onapp.test/billing/buckets/5/rate_cards.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"rate_card": {"target_id": 21, "type": "service_addon_resource", "bucket_id": 5, "server_type": "other", "prices": {"price": 500}}}'

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 for which the prices are set.

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_resource

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

TypeParametersDescription
backup_resource_zone_resource

price

price_recovery_point_size

limit_free

limit_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