Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Sort output

Sorting is controlled by the top-level scalar (of type boolean, number, or string) attributes. REST API server does not support either multi-level or nesting sort operations. REST API server only supports sorting for the GET ALL API operations (for example, Get all storage pools).

The format of ascending order sort has the following syntax:

sort=<attribute_name>

The format of descending order sort has the following syntax:

sort=-<attribute_name>
Request
curl -vk -H "X-Api-Key:Td5qNSpXX4.732uVwjjuN1Wgmxw7yJwL5nygQk79k6pbVg.wvMFqH2" https://172.17.23.10:8444/v7/storage/filesystems?sort=usedCapacity
Response
{
        "filesystems" :
        [
                {
                        "blockSize" : 0,
                        "capacity" : 38537265152,
                        "expansionLimits" : 18446744073709551615,
                        "filesystemId" : "3B7C8C94C8CC42790000000000000000",
                        "freeCapacity" : 0,
                        "isDedupeEnabled" : false,
                        "isDedupeSupported" : false,
                        "isLogicalCapacityFreeCapacityValid" : true,
                        "isLogicalCapacityValid" : true,
                        "isNDMPRecoveryTarget" : false,
                        "isNonStrictWORM" : false,
                        "isReadCached" : false,
                        "isReadOnly" : false,
                        "isSysLocked" : false,
                        "isThinProvisioningEnabled" : false,
                        "isThinProvisioningEnabledValid" : true,
                        "isTrueSparseFileEnabled" : false,
                        "isTrueSparseFileEnabledValid" : true,
                        "isUnlimitedExpansion" : true,
                        "isWORM" : false,
                        "label" : "xyz-createfs-0126-2",
                        "logicalCapacity" : 0,
                        "logicalFreeCapacity" : 0,
                        "objectId" : "33423743384339344338434334323739303030303030303030303030303030303a3a3a303a3a3a4f49445f24232140255f56",
                        "status" : "NOT_MOUNTED",
                        "storagePoolId" : 4286815075241083603,
                        "usedCapacity" : 0,
                        "virtualServerId" : 3
                },
                {
                        "blockSize" : 0,
                        "capacity" : 385670447104,
                        "expansionLimits" : 18446744073709551615,
                        "filesystemId" : "3B7C8CD40A200F630000000000000000",
                        "freeCapacity" : 0,
                        "isDedupeEnabled" : false,
                        "isDedupeSupported" : false,
                        "isLogicalCapacityFreeCapacityValid" : true,
"isLogicalCapacityValid" : true,
                        "isNDMPRecoveryTarget" : false,
                        "isNonStrictWORM" : false,
                        "isReadCached" : false,
                        "isReadOnly" : false,
                        "isSysLocked" : false,
                        "isThinProvisioningEnabled" : false,
                        "isThinProvisioningEnabledValid" : true,
                        "isTrueSparseFileEnabled" : false,
                        "isTrueSparseFileEnabledValid" : true,
                        "isUnlimitedExpansion" : true,
                        "isWORM" : false,
                        "label" : "xyz-createfs-0126",
                        "logicalCapacity" : 0,
                        "logicalFreeCapacity" : 0,
                        "objectId" : "33423743384344343041323030463633303030303030303030303030303030303a3a3a303a3a3a4f49445f24232140255f56",
                        "status" : "NOT_MOUNTED",
                        "storagePoolId" : 4286815075241083603,
                        "usedCapacity" : 0,
                        "virtualServerId" : 3
                },
                {
                        "blockSize" : 0,
                        "capacity" : 19268632576,
                        "expansionLimits" : 18446744073709551615,
                        "filesystemId" : "3B7CC79F0C7812B60000000000000000",
                        "freeCapacity" : 0,
                        "isDedupeEnabled" : false,
                        "isDedupeSupported" : false,
                        "isLogicalCapacityFreeCapacityValid" : true,
                        "isLogicalCapacityValid" : true,
                        "isNDMPRecoveryTarget" : false,
                        "isNonStrictWORM" : false,
                        "isReadCached" : false,
                        "isReadOnly" : false,
                        "isSysLocked" : false,
                        "isThinProvisioningEnabled" : false,
                        "isThinProvisioningEnabledValid" : true,
                        "isTrueSparseFileEnabled" : false,
                        "isTrueSparseFileEnabledValid" : true,
                        "isUnlimitedExpansion" : true,
                        "isWORM" : false,
                        "label" : "xyz-create-fs-test3",
                        "logicalCapacity" : 0,
                        "logicalFreeCapacity" : 0,
                        "objectId" : "33423743433739463043373831324236303030303030303030303030303030303a3a3a303a3a3a4f49445f24232140255f56",
                        "status" : "NOT_MOUNTED",
                        "storagePoolId" : 4286815075241083603,
                        "usedCapacity" : 0,
                        "virtualServerId" : 4
                },
                {
                        "blockSize" : 0,
                        "capacity" : 38465961984,
                        "expansionLimits" : 18446744073709551615,
                        "filesystemId" : "864C623AF020227C0000000000000000",
                        "freeCapacity" : 0,
                        "isDedupeEnabled" : false,
                        "isDedupeSupported" : false,
                        "isLogicalCapacityFreeCapacityValid" : true,
                        "isLogicalCapacityValid" : true,
                        "isNDMPRecoveryTarget" : false,
                        "isNonStrictWORM" : false,
                        "isReadCached" : false,
                        "isReadOnly" : false,
                        "isSysLocked" : false,
                        "isThinProvisioningEnabled" : false,
                        "isThinProvisioningEnabledValid" : true,
                        "isTrueSparseFileEnabled" : false,
                        "isTrueSparseFileEnabledValid" : true,
                        "isUnlimitedExpansion" : true,
                        "isWORM" : false,
                        "label" : "dontremove-fs-tieredpool",
                        "logicalCapacity" : 0,
                        "logicalFreeCapacity" : 0,
                        "objectId" : "38363443363233414630323032323743303030303030303030303030303030303a3a3a303a3a3a4f49445f24232140255f56",
                        "status" : "NOT_MOUNTED",
                        "storagePoolId" : 9678053102318196702,
                        "usedCapacity" : 0,
                        "virtualServerId" : 2
                }
        ]
}

 

  • Was this article helpful?