getBandwidthTotal


SoftLayer_Metric_Tracking_Object::getBandwidthTotal

Retrieve the total bandwidth used within a given time frame.

Description

Retrieve the total amount of bandwidth recorded by a tracking object within the given date range. This method will only work on SoftLayer_Metric_Tracking_Object for SoftLayer_Hardware objects, and SoftLayer_Virtual_Guest objects.

Parameters

Name Type Description
startDateTime dateTime The starting date of the range of data you wish to collect.
endDateTime dateTime The ending date of the range of data you wish to collect.
direction string The direction of data flow that you wish to retrieve totals for, either “in”, “out”, or “both”.
type string The type type of the bandwidth data you wish to retrieve totals for, either “public” or “private”, or “both”.

Required Headers

Optional Headers

  • None

Return Values

  • unsignedLong

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [dateTime, dateTime, string, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Metric_Tracking_Object/{SoftLayer_Metric_Tracking_ObjectID}/getBandwidthTotal'