This functionality of the Ubiquity API has been disabled. Looking for information on this transition to LeaseWeb? Click here for answers to FAQs and here for information on the LeaseWeb customer portal. Click here for information about the Leaseweb API.
Get to know get_bandwidth_billing
get_bandwidth_billing returns information about a service’s bandwidth utilization.
get_bandwidth_billing expects the following parameters:
- service_id – The identifier of the service.
$params = array( 'service_id' => 37333, ); $api->call('service.get_bandwidth_billing', $params);
Array ( [status] => 1 [data] => Array ( [method] => xfer [included] => 10000 [included_rawbytes] => 10000000000000 [included_unit] => gb [rawoverage] => 0 [overage] => 0 [overage_rate] => .2 [due] => 0 [utilized_in] => Array ( [min] => 50499.0 [max] => 8739217.7 [avg] => 170959.8 [cur] => 0.0 [95th] => 626694.6 [total] => 2974701306 ) [utilized_out] => Array ( [min] => 20.0 [max] => 176076.3 [avg] => 262.5 [cur] => 0.0 [95th] => 192.5 [total] => 4567591 ) [period_start] => 1365051600 [period_end] => 1365190740 ) )