mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Doc getprops action.
This commit is contained in:
@@ -21,7 +21,7 @@ Every iohyve class request contains the following parameters:
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
| action | | supported actions include "listvms", "fetchiso", "listisos", "renameiso", "rmiso", "setup", "issetup", "create", |
|
||||
| | | "install", "start", "stop", "delete", "adddisk", "listdisks", "resizedisk", "deletedisk", and "version" |
|
||||
| | | "install", "start", "stop", "delete", "adddisk", "listdisks", "resizedisk", "deletedisk", "version", and "getprops" |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
@@ -886,4 +886,67 @@ The "version" action displays the iohyve version.
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
|
||||
.. index:: getprops, iohyve
|
||||
|
||||
.. _List Guest Properties:
|
||||
|
||||
List Guest Properties
|
||||
=====================
|
||||
|
||||
The "getprops" action lists the properties for the specified guest.
|
||||
|
||||
**REST Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
PUT /sysadm/iohyve
|
||||
{
|
||||
"action" : "getprops",
|
||||
"name" : "bsdguest"
|
||||
}
|
||||
|
||||
**WebSocket Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"id" : "fooid",
|
||||
"namespace" : "sysadm",
|
||||
"args" : {
|
||||
"name" : "bsdguest",
|
||||
"action" : "getprops"
|
||||
},
|
||||
"name" : "iohyve"
|
||||
}
|
||||
|
||||
**Response**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args": {
|
||||
"getprops": {
|
||||
"bsdguest": {
|
||||
"autogrub": "\\n",
|
||||
"bargs": "-A_-H_-P",
|
||||
"boot": "0",
|
||||
"con": "nmdm0",
|
||||
"cpu": "1",
|
||||
"description": "Tue",
|
||||
"install": "no",
|
||||
"loader": "bhyveload",
|
||||
"name": "bsdguest",
|
||||
"os": "default",
|
||||
"persist": "1",
|
||||
"ram": "256M",
|
||||
"size": "10G",
|
||||
"tap": "tap0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
Reference in New Issue
Block a user