Summary:
Sets second-level disk quota.
Request specification:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
|
|
|
Server ID. |
|
|
|
Second-level quota information. |
|
|
|
|
|
Returns:
OK/Error
Description:
Virtuozzo supports two levels of disk quotas that can be set for a Container: first-level quotas and second-level quotas.
First-level quotas enable system administrator to limit the amount of disk space and the number of inodes that an individual Container can use. First-level quotas are enabled in Virtuozzo by default but can be turned on or off for an individual Container through Container configuration.
Second-level quotas allow to limit the amount of disk space and the number of inodes that an individual user or a group in a Container is allowed to use. Second-level quotas are not turned on by default and must be set for each Container separately. To set second-level quotas for a Container, first-level quotas must be turned on for that Container.
Example:
Setting second-level quotas for the user "root" in the specified Container.
<packet version="4.0.0" id="2">
<target>vzaenvm</target>
<data>
<vzaenvm>
<set_ugid_quota>
<eid>6dbd99dc-f212-45de-a5f4-ddb78a2b5280</eid>
<ugid_quota>
<type>0</type>
<quota>
<id>0</id>
<diskspace>
<soft>1000000</soft>
<hard>1500000</hard>
</diskspace>
<diskinodes>
<soft>1000</soft>
<hard>15000</hard>
</diskinodes>
</quota>
</ugid_quota>
</set_ugid_quota>
</vzaenvm>
</data>
</packet>