getGraph


SoftLayer_Network_Storage::getGraph

Retrieve a graph representing the bandwidth used by a Storage account.

Description

{{CloudLayerOnlyMethod}}

getGraph() retrieves a Storage account’s usage and returns a PNG graph image, title, and the minimum and maximum dates included in the graphed date range. Virtual Server storage accounts can also graph upload and download bandwidth usage.


Parameters

Name Type Description
startDate dateTime The starting date of the range of data you wish to collect.
endDate dateTime The ending date of the range of data you wish to collect.
type string The type of data you wish to graph. Either “usage”, “upload”, “download” or “bandwidth”.

Required Headers

Optional Headers

  • None

Return Values

Error Handling

  • Throw the exception “Not yet implemented for this Storage type.” if the Storage type is not supported.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [dateTime, dateTime, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/{SoftLayer_Network_StorageID}/getGraph'