"SoftLayer_" prefix removed for readability.
Makes a request to Cloud Object Storage metricsAPI service and when successful, returns an associative array with two elements:
if 200:
[
if not 200:
[
{ “start”: “
Notes: 1) When no data is found for a particular triplet (resource_id, storage_location, storage_class) a JSON element is inserted to the warnings Array. 2) If all queried triplets find data, only the resources Array will be populated, errors and warnings will remain empty.
Name | Type | Description |
---|---|---|
start | string | Start time in milliseconds |
end | string | End time in milliseconds |
storageLocation | string | The storage location to query (ex. us-south) |
storageClass | string | A comma separated list of all storage classes to query (ex. vault,cold) |
metrics | string | A comma sepparated list of all metrics to query (ex. retrieval,copy_count) |
None
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string, string, string, string, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage_Hub_Cleversafe_Account/{SoftLayer_Network_Storage_Hub_Cleversafe_AccountID}/getCloudObjectStorageMetrics'