Skip to main content

We've Moved!

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

Add a virtual volume group quota

Adds a user quota to a virtual volume.

HTTP request syntax (URI)
POST <base_URI>/v8/storage/virtual-volumes/{virtualVolumeObjectId}/quotas/group
Parameters
Name Type Required Values Description
virtualVolumeObjectId URI_PARAM Y string Virtual volume object ID.
diskUsageThresholdBODYYobjectquotaThresholdPercentages object specifying the disk space limits of the quota.
fileCountThresholdBODYYobjectquotaThresholdPercentages object specifying the file count limits of the quota.
logEventBODYYbooleanIndicates whether to log an event.
groupIdBODYYstringGroup ID to be confined by the quota.
Return codes
Code Data Description
201 quota Group quota created successfully.
400 Error Message Missing or invalid request contents.
403Error MessageOperation forbidden by access level.
404 Error Message Requested resource not found.
500 Error message Error associated with the storage system.

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

Request example
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.57.75:8444/v8/storage/virtual-volumes/313a3a3a30373545414439464546414234454239303030303030303030303030303030303a3a3a313a3a3a303a3a3a4f49445f24232140255f56/quotas/group -X POST -d '{"diskUsageThreshold":{"limit":1234567890, "isHard":true, "reset":65, "warning":75, "severe":95}, "fileCountThreshold":{"limit":1000, "isHard":false, "reset":85, "warning":90, "severe":95}, "logEvent":true, "groupId":"newGroup1"}'
Response example
HTTP/1.1 201 Created{
  "quota": {
    "filesystemId": "075EAD9FEFAB4EB90000000000000000",
    "objectId": "30373545414439464546414234454239303030303030303030303030303030303a3a3a30333531326634632d613732322d313164382d393031632d3963353534373037356537353a3a3a303a3a3a4f49445f24232140255f56",
    "quota": {
      "diskUsage": 0,
      "diskUsageThreshold": {
        "isHard": true,
        "limit": 1234567890,
        "reset": 65,
        "severe": 95,
        "warning": 75
      },
      "fileCountThreshold": {
        "isHard": false,
        "limit": 1000,
        "reset": 85,
        "severe": 95,
        "warning": 90
      },
      "fileUsage": 0,
      "globalId": "03512f4c-a722-11d8-901c-9c5547075e75",
      "logEvent": true
    },
    "targetDomain": "",
    "targetName": "newGroup1",
    "targetType": "GROUP",
    "virtualServerId": 1,
    "virtualVolumeId": 1,
    "virtualVolumeName": "vv1",
    "virtualVolumeObjectId": "313a3a3a30373545414439464546414234454239303030303030303030303030303030303a3a3a313a3a3a303a3a3a4f49445f24232140255f56"
  },
  "uri": "https://172.27.5.11:8444/v8/storage/quotas/30373545414439464546414234454239303030303030303030303030303030303a3a3a30333531326634632d613732322d313164382d393031632d3963353534373037356537353a3a3a303a3a3a4f49445f24232140255f56"
}

 

  • Was this article helpful?