mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Doc createbe action.
This commit is contained in:
@@ -20,7 +20,7 @@ Every beadm class request contains the following parameters:
|
||||
| namespace | sysadm | |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
| action | | supported actions include "listbes", "renamebe", "activatebe" |
|
||||
| action | | supported actions include "listbes", "renamebe", "activatebe", "createbe" |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
@@ -186,4 +186,56 @@ The "activatebe" action activates the specified boot environment (target) so tha
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
|
||||
.. index:: createbe, beadm
|
||||
|
||||
.. _Create Boot Environment:
|
||||
|
||||
Create Boot Environment
|
||||
=======================
|
||||
|
||||
The "create" action creates a new boot environment. Specify the name of the boot environment as the "newbe". If you wish to create a new boot environment which is a clone of an existing
|
||||
boot environment, also include "clonefrom" to specify which boot environment to clone.
|
||||
|
||||
**REST Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
PUT /sysadm/beadm
|
||||
{
|
||||
"action" : "createbe",
|
||||
"newbe" : "red",
|
||||
"clonefrom" : "green"
|
||||
}
|
||||
|
||||
**WebSocket Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"id" : "fooid",
|
||||
"args" : {
|
||||
"newbe" : "red",
|
||||
"clonefrom" : "green",
|
||||
"action" : "createbe"
|
||||
},
|
||||
"namespace" : "sysadm",
|
||||
"name" : "beadm"
|
||||
}
|
||||
|
||||
**Response**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args": {
|
||||
"createbe": {
|
||||
"clonefrom": "green",
|
||||
"newbe": "red"
|
||||
}
|
||||
},
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
Reference in New Issue
Block a user