mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Merge branch 'master' of https://github.com/pcbsd/sysadm
This commit is contained in:
@@ -20,7 +20,7 @@ Every iohyve class request contains the following parameters:
|
||||
| namespace | sysadm | |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
| action | | supported actions include "listvms", "fetchiso" |
|
||||
| action | | supported actions include "listvms", "fetchiso", "renameiso" |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
@@ -145,4 +145,55 @@ The "fetchiso" action is used to retrieve the installation ISO. It is used with
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
|
||||
.. index:: renameiso, iohyve
|
||||
|
||||
.. _Rename ISO:
|
||||
|
||||
Rename ISO
|
||||
==========
|
||||
|
||||
The "renameiso" action is used to to rename an existing ISO file on disk. Specify the existing name with "source" and the new name with "target".
|
||||
|
||||
**REST Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
PUT /sysadm/iohyve
|
||||
{
|
||||
"source" : "test.iso",
|
||||
"target" : "102.iso",
|
||||
"action" : "renameiso"
|
||||
}
|
||||
|
||||
**WebSocket Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args" : {
|
||||
"target" : "102.iso",
|
||||
"source" : "test.iso",
|
||||
"action" : "renameiso"
|
||||
},
|
||||
"id" : "fooid",
|
||||
"name" : "iohyve",
|
||||
"namespace" : "sysadm"
|
||||
}
|
||||
|
||||
**Response**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args": {
|
||||
"renameiso": {
|
||||
"source": "test.iso",
|
||||
"target": "102.iso"
|
||||
}
|
||||
},
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
Reference in New Issue
Block a user