Get List of Rate Cards for Other Server Type

To get a list of rate cards, use the following request:

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

XML Request Example

1
curl -i -X GET http://onapp.test/billing/buckets/5263/rate_cards.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

1
curl -i -X GET http://onapp.test/billing/buckets/5263/rate_cards.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<!--?xml version="1.0" encoding="UTF-8"?-->
<rate_card>
  <bucket_id type="integer">5</bucket_id>
  <server_type>other</server_type>
  <target_id type="integer">11</target_id>
  <type>user_service_addon_resource</type>
  <timing_strategy>hourly</timing_strategy>
  <target_name>Service Addon 1</target_name>
  <prices>
    <price type="decimal">400.0</price>
  </prices>
</rate_card>

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 for which configuration is set. The value can be one of the following:

  • backup_resource_zone_resource
  • edge_groups_resource
  • template_resource
  • service_addon_resource

timing_strategy - the type of billing for each resource: hourly or monthly.

target_name - the name of the resource that was added to the bucket. For example, this can be the label of a template.

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