getPrivateBandwidthData


SoftLayer_Hardware_SecurityModule::getPrivateBandwidthData

Retrieve this server’s private bandwidth data.

Description

Retrieve this server’s private bandwidth data. If no timeframe is specified then getPrivateBandwidthData retrieves the last 24 hours of public bandwidth usage.

Parameters

Name Type Description
startTime int The starting point to retrieve bandwidth data from, specified as a dateTime.
endTime int The end point to retrieve bandwidth data to, specified as a dateTime.

Required Headers

Optional Headers

  • None

Return Values

Error Handling

  • Throw the exception “The start time {startTime} is not a readable date format.” if an invalid start time is passed to getPrivateBandwidthData.
  • Throw the exception “The end time {endTime} is not a readable date format.” if an invalid end time is passed to getPrivateBandwidthData.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [int, int]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Hardware_SecurityModule/{SoftLayer_Hardware_SecurityModuleID}/getPrivateBandwidthData'