mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Doc renamebe 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" |
|
||||
| action | | supported actions include "listbes", "renamebe" |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
@@ -85,4 +85,56 @@ The "listbes" action retrieves the list of boot environments. For each boot envi
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
|
||||
.. index:: renamebe, beadm
|
||||
|
||||
.. _Rename a Boot Environment:
|
||||
|
||||
Rename a Boot Environment
|
||||
=========================
|
||||
|
||||
The "renamebe" action renames the specified boot environment. When using this action, specify the new name as the "source" and the boot environment as the "target".
|
||||
|
||||
|
||||
**REST Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
PUT /sysadm/beadm
|
||||
{
|
||||
"source" : "newname",
|
||||
"action" : "renamebe",
|
||||
"target" : "bootthingy"
|
||||
}
|
||||
|
||||
**WebSocket Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"namespace" : "sysadm",
|
||||
"name" : "beadm",
|
||||
"id" : "fooid",
|
||||
"args" : {
|
||||
"source" : "newname",
|
||||
"target" : "bootthingy",
|
||||
"action" : "renamebe"
|
||||
}
|
||||
}
|
||||
|
||||
**Response**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args": {
|
||||
"renamebe": {
|
||||
"source": "newname",
|
||||
"target": "bootthingy"
|
||||
}
|
||||
},
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
Reference in New Issue
Block a user