mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Doc df action.
This commit is contained in:
@@ -20,7 +20,7 @@ Every iocage class request contains the following parameters:
|
||||
| namespace | sysadm | |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
| action | | supported actions include "getdefaultsettings", "listjails", "getjailsettings", "startjail", "stopjail", |
|
||||
| action | | supported actions include "getdefaultsettings", "listjails", "getjailsettings", "df", "startjail", "stopjail", |
|
||||
| | | "capjail", "clonejail", "createjail", "destroyjail", "cleanjails", "cleanreleases", "cleantemplates", "cleanall", |
|
||||
| | | "activatepool", and "deactivatepool" |
|
||||
| | | |
|
||||
@@ -653,6 +653,68 @@ The "getjailsettings" action lists all of the settings that apply to the specifi
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
|
||||
.. index:: df, iocage
|
||||
|
||||
.. _List Resource Usage:
|
||||
|
||||
List Resource Usage
|
||||
===================
|
||||
|
||||
The "df" action lists resource usage for all jails. For each jail, the response includes: CRT (compression ratio), RES (reserved space), QTA (disk quota), USE (used space), AVA (available
|
||||
space), and TAG (jail name).
|
||||
|
||||
**REST Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
PUT /sysadm/iocage
|
||||
{
|
||||
"action" : "df"
|
||||
}
|
||||
|
||||
**WebSocket Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"namespace" : "sysadm",
|
||||
"name" : "iocage",
|
||||
"id" : "fooid",
|
||||
"args" : {
|
||||
"action" : "df"
|
||||
}
|
||||
}
|
||||
|
||||
**Response**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args": {
|
||||
"df": {
|
||||
"f250ab25-d062-11e5-8209-d05099728dbf": {
|
||||
"ava": "83.4G",
|
||||
"crt": "2.30x",
|
||||
"qta": "none",
|
||||
"res": "none",
|
||||
"tag": "test",
|
||||
"use": "1.69M"
|
||||
},
|
||||
"f39318ae-d064-11e5-8209-d05099728dbf": {
|
||||
"ava": "83.4G",
|
||||
"crt": "2.30x",
|
||||
"qta": "none",
|
||||
"res": "none",
|
||||
"tag": "test2",
|
||||
"use": "1.69M"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
|
||||
.. index:: startjail, iocage
|
||||
|
||||
.. _Start a Jail:
|
||||
|
||||
Reference in New Issue
Block a user