price::calculate

Description

Calculate the cost of using a given amount of storage space and bandwidth over any period

Request details

Arguments

storage_usage
The volume of data, in megabytes, stored for the given period
bandwidth_usage
The volume of data, in gigabytes, transferred
period
The number of days over which to calculate the cost

Responses

<?xml version="1.0" encoding="utf-8"?>
<price>[price in pence]</price>
	

Exceptions

Examples (with links to live results)

Cost of storing 500Mb of data for 30 days (about one month)

GET /price/calculate/?storage_usage=500&bandwidth_usage=0&period=30
<?xml version="1.0" encoding="utf-8"?>
<price>250</price>
	

Cost of using 10Gb of data transfer

GET /price/calculate/?storage_usage=0&bandwidth_usage=10&period=0
<?xml version="1.0" encoding="utf-8"?>
<price>500</price>
	

Cost of storing 250Mb of data and transferring 3Gb of data over a one week period

GET /price/calculate/?storage_usage=250&bandwidth_usage=3&period=7
<?xml version="1.0" encoding="utf-8"?>
<price>179.166666667</price>
	
  1. Index
  2. About the API

    1. Summary
    2. Specification
    3. Do not use undocumented features
    4. Change log
  3. Using the API

    1. Requests
      1. Authenticated requests
      2. Limits
      3. Common request value data types
    2. Understanding responses
      1. HTTP status codes used
      2. Exceptions
        1. access
        2. account
        3. database
        4. hostingaccount
        5. server
        6. system
  4. Function reference