Use this object to control user and group grid resource usage using quota specifications.
|
Method |
Description |
|
Define and manage warning and burst default thresholds for the grid |
|
|
List quota entries for users and groups |
|
|
Details quota entries for a specified user or group |
|
|
Set quota values for a user or a group |
|
|
Change quota data for a user or a group |
Display or set default warning and burst thresholds for the grid.
Get threshold values:
/api/v1/quota/config?vdc=controller-name
Set threshold values:
/api/v1/quota/config?vdc=controller-name&warn=warning-level&burst=burst-level
Name of the target virtual data center
Percentage of the grid’s resources past which consumption a warning is issued. 0 disables warnings.
Limits: 0-99
Percentage of the grid’s resources past which consumption a warning is issued. 0 disables resource usage beyond quota.
Notes:
synchronous
GET
Display default quota thresholds for a grid:
GET http://192.168.123.200/api/v1/quota/config?vdc=mygrid
Set the default warning threshold to 70%:
GET http://192.168.123.200/api/v1/quota/config?warn=70&vdc=mygrid
<quota_config> <burst>0</burst> <warn>75</warn> </quota_config>
{
"quota_config" : {
"warn" : "75",
"burst" : "0"
}
}
Entity vdc mygrid not found - A VDC name was specified that is not configured in the WS_API application.
Invalid value ‘value’ specified for ‘resource’ parameter - The value assigned to the warn or burst parameter is out of range.
|
Copyright © 2012 CA.
All rights reserved.
|
|