This post is more than 5 years old
Moderator
•
6.5K Posts
0
2538
Quota setting by API
Hi there ,,,
My customer try to set quota by API .. but it does not work ok...
Anybody know what is wrong with ?
1. checked schema by GET /platform/1/quota/quotas?describe
2. Use PUT for set ....
{
"properties" :
{
"container": False
"enforced": False
"include_snapshots": false
"thresholds_include_overhead": false
"type": "directory"
"linked": null
"notifications": "custom"
"path": "/ifs/data/nfs-rest-new
"persona": null
"ready": true
"thresholds" :
{
"advisory": 524288000
"advisory_exceeded": false
"advisory_last_exceeded": 0
"hard": 51200000000
"hard_exceeded": false
"hard_last_exceeded": 0
"soft": null
"soft_exceeded": false
"soft_grace": null
"soft_last_exceeded": null
}
}
}
And chose POST @ method then Error ...
Not to sure what to do ... ....can anybody know what need to be done ?
Yan_Faubert
117 Posts
0
October 28th, 2014 11:00
Yes, change to lowercase 'false' but also you need to remove some of the other attributes that are 'read-only'. A working example is pasted below using 'curl':
The resulting quota looks like this:
Peter_Sero
1.2K Posts
0
October 27th, 2014 23:00
Have you tried lowercase true and false?