Skip to main content

We've Moved!

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

Set the default user quota template of a file system

Sets the default user quota template for a filesystem.

HTTP request syntax (URI)
PATCH <base_URI>/v8/storage/filesystems/{filesystemId}/quota-templates/user
Parameters
Name Type Required Values Description
filesystemId URI_PARAM Y string Either the file system object ID or HNAS file system ID.
diskUsageThresholdBODYYobjectquotaThresholdPercentages object specifying the disk space limits for the default quota template.
fileCountThresholdBODYYobjectquotaThresholdPercentages object specifying the file count limits for the default quota template.
logEventBODYYbooleanIndicates whether to log quota related events.
Return codes
Code Data Description
204 No DataQuota template details successfully set.
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 204 indicates that the API did not complete successfully.

Request example
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v8/storage/filesystems/075EAD9FEFAB4EB90000000000000000/quota-templates/user -X PATCH -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}'
Response example
HTTP/1.1 204 No Content

 

  • Was this article helpful?