Modify a quota
Modify a filesystem or virtual volume quota by object ID.
HTTP request syntax (URI)
PATCH <base_URI>/v8/storage/quotas/{quotaObjectId}
Parameters
Name | Type | Required | Values | Description |
quotaObjectId | URI_PARAM | Y | string | Quota object ID |
diskUsageThreshold | BODY | Y | object | quotaThresholdPercentages object specifying the disk space limits of the quota. |
fileCountThreshold | BODY | Y | object | quotaThresholdPercentages object specifying the file count limits of the quota. |
logEvent | BODY | Y | boolean | Indicates whether to log quota related events. |
Return codes
Code | Data | Description |
204 | No Data | Quota successfully updated. |
400 | Error Message | Missing or invalid request contents. |
403 | Error Message | Operation 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/quotas/30373545414439464546414234454239303030303030303030303030303030303a3a3a66303335653536632d613731352d313164382d393030652d3963353534373037356537353a3a3a303a3a3a4f49445f24232140255f56 -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