mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Doc startupdate action.
This commit is contained in:
@@ -20,7 +20,7 @@ Every update class request contains the following parameters:
|
||||
| namespace | sysadm | |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
| action | | supported actions include "checkupdates", "listbranches" |
|
||||
| action | | supported actions include "checkupdates", "listbranches", "startupdate" |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
@@ -143,4 +143,78 @@ The "listbranches" action retrieves the list of available branches (operating sy
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
|
||||
.. index:: startupdate, update
|
||||
|
||||
.. _Start Updates:
|
||||
|
||||
Start Updates
|
||||
=============
|
||||
|
||||
The "startupdate" action starts the specified update. You must specify a "target" to indicate the type of update to perform. The available targets are:
|
||||
|
||||
* **chbranch:** will update to the specified "branch" (operating system version). You can determine which branches are available by using the "listbranches" action.
|
||||
|
||||
* **pkgupdate:** only update installed software.
|
||||
|
||||
* **fbsdupdate:** only apply FreeBSD system updates.
|
||||
|
||||
* **fbsdupdatepkgs:** update installed software and apply FreeBSD system updates.
|
||||
|
||||
* **standalone:** only update package specified as a "tag" (e.g. pkgng-1.6.9).
|
||||
|
||||
**REST Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
PUT /sysadm/update
|
||||
{
|
||||
"action" : "startupdate",
|
||||
"target" : "pkgupdate"
|
||||
}
|
||||
|
||||
**REST Response**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args": {
|
||||
"startupdate": {
|
||||
"queueid": "611c89ae-c43c-11e5-9602-54ee75595566",
|
||||
"command": "pc-updatemanager pkgupdate",
|
||||
"comment": "Task Queued"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
**WebSocket Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args" : {
|
||||
"action" : "startupdate",
|
||||
"target" : "pkgupdate"
|
||||
},
|
||||
"name" : "update",
|
||||
"id" : "fooid",
|
||||
"namespace" : "sysadm"
|
||||
}
|
||||
|
||||
**WebSocket Response**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args": {
|
||||
"startupdate": {
|
||||
"queueid": "611c89ae-c43c-11e5-9602-54ee75595566",
|
||||
"command": "pc-updatemanager pkgupdate",
|
||||
"comment": "Task Queued"
|
||||
}
|
||||
},
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
Reference in New Issue
Block a user