Is it possible to to get size output from /storage/volumes in KB/MB/GB? Or is it only in bytes. I saw the following but this seems to apply only for query parameters.
Overview
Many objects contain properties related to various sizes. Examples can be found in the aggregate object, volume object, lun object and nvme_namespace object. These properties are documented as type integer.
Unless otherwise documented, all sizes are reported in GET in bytes.
Depending on the development language-specific code generation, the API typically also requires an integer value in bytes for POST and PATCH input as well.
Where a string value is accepted, such as query parameters and ad-hoc curl requests, any of the following suffixes can be used to specify different units:
Suffix
|
Definition
|
KB
|
kilobytes (1024 bytes, aka kibibytes)
|
MB
|
megabytes (KB x 1024, aka mebibytes)
|
GB
|
gigabytes (MB x 1024, aka gibibytes)
|
TB
|
terabytes (GB x 1024, aka tebibytes)
|
PB
|
petabytes (TB x 1024, aka pebibytes)
|