hostingaccount::get_storage_cost
Description
Get storage cost for any period.
Request details
-
Method
GET
-
URL
https://api.hostingreborn.com/hostingaccount/get_storage_cost/
Arguments
- key
- API key
- domain
- Hosting account domain name
- from (YYYY-MM-DD, optional, default: 1st day of current month of current year)
- Starting date of reporting period. Result will include transactions from the start of this date onwards.
- to (YYYY-MM-DD, optional, default: current year, month and day)
- End date of reporting period. Result will include transactions up to but not including this date.
Responses
<?xml version="1.0" encoding="utf-8"?>
<storagecost>
<amount>12.765</amount>
<from>2008-08-01</from>
<to>2008-08-08</to>
</storagecost>
- amount
- Amount, in pence, charged for storage usage between the
fromandtodates - from
- Starting date of reporting period
- to
- End date of reporting period
Exceptions
Examples
Get most current storage cost (as of 8th August 2008)
GET /hostingaccount/get_storage_cost/?key=acbd18db4cc2f85cedef654fccc4a4d8&domain=test01.example.com
<?xml version="1.0" encoding="utf-8"?>
<storagecost>
<amount>12.765</amount>
<from>2008-08-01</from>
<to>2008-08-08</to>
</storagecost>
Get storage cost for July 2008
GET /hostingaccount/get_storage_cost/?key=acbd18db4cc2f85cedef654fccc4a4d8&domain=test01.example.com&from=2008-07-01&to=2008-07-31
<?xml version="1.0" encoding="utf-8"?>
<storagecost>
<amount>39.60</amount>
<from>2008-07-01</from>
<to>2008-08-31</to>
</storagecost>
See also
-
hostingaccount::get
Get summary details for a hosting account
-
hostingaccount::get_bandwidth_cost
Get storage cost for any period
-
hostingaccount::get_bandwidth_limit
Get current monthly bandwidth limit
-
hostingaccount::get_bandwidth_usage
Get bandwidth usage for any period
-
hostingaccount::get_bandwidth_utilisation
Get current bandwidth utilisation
-
hostingaccount::get_storage_limit
Get current storage limit
-
hostingaccount::get_storage_usage
Get storage usage for any period
-
hostingaccount::get_storage_utilisation
Get current storage utilisation
-
hostingaccount::get_suspended_url
Get redirect URL for when a hosting account is suspended