hostingaccount::get_bandwidth_usage
Description
Get bandwidth usage for any period.
Request details
-
Method
GET
-
URL
https://api.hostingreborn.com/hostingaccount/get_bandwidth_usage/
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 bandwidth usage 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 and including this date.
Responses
<?xml version="1.0" encoding="utf-8"?>
<bandwidthusage>
<amount>19727140</amount>
<from>2008-08-01</from>
<to>2008-08-09</to>
</bandwidthusage>
- amount
- Bandwidth used, in bytes, between the
fromandtodates - from
- Starting date of reporting period
- to
- End date of reporting period
Exceptions
Examples
Get most current bandwidth usage (as of 9th August 2008, covering all of August)
GET /hostingaccount/get_bandwidth_usage/?key=acbd18db4cc2f85cedef654fccc4a4d8&domain=test01.example.com
<?xml version="1.0" encoding="utf-8"?>
<bandwidthusage>
<amount>19727140</amount>
<from>2008-08-01</from>
<to>2008-08-09</to>
</bandwidthusage>
Get bandwidth usage for 6th August 2008
GET /hostingaccount/get_bandwidth_usage/?key=acbd18db4cc2f85cedef654fccc4a4d8&domain=test01.example.com&from=2008-08-06&to=2008-08-06
<?xml version="1.0" encoding="utf-8"?>
<bandwidthusage>
<amount>2190</amount>
<from>2008-08-06</from>
<to>2008-08-06</to>
</bandwidthusage>
See also
-
hostingaccount::get
Get summary details for a hosting account
-
hostingaccount::get_bandwidth_cost
Get bandwidth cost for any period
-
hostingaccount::get_bandwidth_limit
Get current monthly bandwidth limit
-
hostingaccount::get_bandwidth_utilisation
Get current bandwidth utilisation
-
hostingaccount::get_storage_cost
Get storage cost for any period
-
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