Skip to main content

We've Moved!

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

Get a virtual volumes quotas

Retrieves all quotas associated with a virtual volume. This includes all user and group quotas and the virtual volume quota. Note that if there are a lot of quotas, this function will return a large amount of data.

Note

Virtual volume user/group quotas are different from file system user/group quotas. Virtual volume user/group quotas are limited to the virtual volumes base folder.

HTTP request syntax (URI)
GET <base_URI>/v8/storage/virtual-volumes/{virtualVolumeObjectId}/quotas
Parameters
Name Type Required Values Description
virtualVolumeObjectId URI_PARAM Y string Virtual volume object ID.
Return codes
Code Data Description
200 quotas An array of virtualVolumeQuota objects is returned.
400 Error Message Missing or invalid request contents.
404 Error Message Requested resource not found.
500 Error message Error associated with the storage system.

Any HTTP status code other than 200 indicates that the API did not complete successfully.

Request example: Retrieve the virtual volume quota but ignore any user and group ones
curl -vk -H "X-Api-Key: Td5qNSpXX4.732uVwjjuN1Wgmxw7yJwL5nygQk79k6pbVg.wvMFqH2" https://172.27.5.11:8444/v8/storage/virtual-volumes/313a3a3a30373545414439464546414234454239303030303030303030303030303030303a3a3a313a3a3a303a3a3a4f49445f24232140255f56/quotas?targetType=VIRTUAL_VOLUME
Response example
HTTP/1.1 200 Ok
{
  "quotas": [
    {
      "filesystemId": "075EAD9FEFAB4EB90000000000000000",
      "objectId": "30373545414439464546414234454239303030303030303030303030303030303a3a3a62346161306564612d613731382d313164382d393031352d3963353534373037356537353a3a3a303a3a3a4f49445f24232140255f56",
      "quota": {
        "diskUsage": 0,
        "diskUsageThreshold": {
          "isHard": true,
          "limit": 0,
          "reset": 5,
          "severe": 0,
          "warning": 0
        },
        "fileCountThreshold": {
          "isHard": true,
          "limit": 0,
          "reset": 5,
          "severe": 0,
          "warning": 0
        },
        "fileUsage": 1,
        "globalId": "b4aa0eda-a718-11d8-9015-9c5547075e75",
        "logEvent": false
      },
      "targetDomain": "",
      "targetName": "",
      "targetType": "VIRTUAL_VOLUME",
      "virtualServerId": 1,
      "virtualVolumeId": 1,
      "virtualVolumeName": "vv1",
      "virtualVolumeObjectId": "313a3a3a30373545414439464546414234454239303030303030303030303030303030303a3a3a313a3a3a303a3a3a4f49445f24232140255f56"
    }
  ]
}

 

  • Was this article helpful?