2
0
mirror of https://github.com/opnsense/docs synced 2024-11-18 21:28:29 +00:00
opensense-docs/source/development/api/plugins/nut.rst

30 lines
1.1 KiB
ReStructuredText
Raw Normal View History

Nut
~~~
.. csv-table:: Resources (DiagnosticsController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","nut","diagnostics","upsstatus",""
2021-03-08 11:22:26 +00:00
.. csv-table:: Service (ServiceController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
2022-10-19 15:21:08 +00:00
"``POST``","nut","service","reconfigure",""
"``POST``","nut","service","restart",""
"``POST``","nut","service","start",""
2021-03-08 11:22:26 +00:00
"``GET``","nut","service","status",""
2022-10-19 15:21:08 +00:00
"``POST``","nut","service","stop",""
2021-03-08 11:22:26 +00:00
"``<<uses>>``", "", "", "", "*model* `Nut.xml <https://github.com/opnsense/plugins/blob/master/sysutils/nut/src/opnsense/mvc/app/models/OPNsense/Nut/Nut.xml>`__"
.. csv-table:: Service (SettingsController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","nut","settings","get",""
2022-10-19 15:21:08 +00:00
"``POST``","nut","settings","set",""
2021-03-08 11:22:26 +00:00
"``<<uses>>``", "", "", "", "*model* `Nut.xml <https://github.com/opnsense/plugins/blob/master/sysutils/nut/src/opnsense/mvc/app/models/OPNsense/Nut/Nut.xml>`__"