collectBytesUsed


SoftLayer_Network_Storage_Iscsi::collectBytesUsed

Retrieve the number of bytes capacity currently in use on a Storage account.

Description

{{CloudLayerOnlyMethod}}

collectBytesUsed() retrieves the number of bytes capacity currently in use on a Storage account.


Parameters

None

Required Headers

Optional Headers

  • None

Return Values

  • unsignedLong

Error Handling

  • Throw the exception “The Storage type is not supported for bytes used collection. Please contact development.” if the storage volume’s type does not support usage collection. Currently, only Virtual Server storage is supported.
curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage_Iscsi/{SoftLayer_Network_Storage_IscsiID}/collectBytesUsed'