opnsense-docs/source/development/api/core/core.rst

118 lines
4.9 KiB
ReStructuredText
Raw Normal View History

2020-02-16 10:08:40 -05:00
Core
~~~~
2023-11-20 04:51:24 -05:00
.. csv-table:: Resources (BackupController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","core","backup","backups","$host"
2025-12-10 14:48:03 -05:00
"``POST``","core","backup","delete_backup","$backup"
2023-11-20 04:51:24 -05:00
"``GET``","core","backup","diff","$host,$backup1,$backup2"
"``GET``","core","backup","download","$host,$backup=null"
"``GET``","core","backup","providers",""
2025-12-10 14:48:03 -05:00
"``POST``","core","backup","revert_backup","$backup"
2023-11-20 04:51:24 -05:00
2024-07-24 09:36:58 -04:00
.. csv-table:: Resources (DashboardController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","core","dashboard","get_dashboard",""
2024-11-27 05:37:44 -05:00
"``GET``","core","dashboard","picture",""
"``GET``","core","dashboard","product_info_feed",""
"``POST``","core","dashboard","restore_defaults",""
"``POST``","core","dashboard","save_widgets",""
2024-07-24 09:36:58 -04:00
2025-12-10 14:48:03 -05:00
.. csv-table:: Resources (DefaultsController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","core","defaults","factory_defaults",""
"``GET``","core","defaults","get",""
"``GET``","core","defaults","get_installed_sections",""
"``POST``","core","defaults","reset",""
2025-05-01 04:03:43 -04:00
.. csv-table:: Resources (HasyncController.php)
2024-07-24 09:36:58 -04:00
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","core","hasync","get",""
"``POST``","core","hasync","reconfigure",""
"``POST``","core","hasync","set",""
"``<<uses>>``", "", "", "", "*model* `Hasync.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Core/Hasync.xml>`__"
2025-01-29 07:39:44 -05:00
.. csv-table:: Resources (HasyncStatusController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","core","hasync_status","remote_service","$action,$service,$service_id"
2025-01-29 07:39:44 -05:00
"``POST``","core","hasync_status","restart","$service=null,$service_id=null"
"``POST``","core","hasync_status","restart_all","$service=null,$service_id=null"
2025-01-29 07:39:44 -05:00
"``GET``","core","hasync_status","services",""
"``POST``","core","hasync_status","start","$service=null,$service_id=null"
"``POST``","core","hasync_status","stop","$service=null,$service_id=null"
"``GET``","core","hasync_status","version",""
2025-07-23 08:08:33 -04:00
.. csv-table:: Resources (InitialSetupController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","core","initial_setup","configure",""
"``GET``","core","initial_setup","get",""
"``POST``","core","initial_setup","set",""
"``<<uses>>``", "", "", "", "*model* `InitialSetup.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Core/InitialSetup.xml>`__"
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (MenuController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","core","menu","search",""
"``GET``","core","menu","tree",""
2023-03-28 02:58:44 -04:00
.. csv-table:: Service (ServiceController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","core","service","restart","$name,$id=''"
"``GET``","core","service","search",""
"``POST``","core","service","start","$name,$id=''"
"``POST``","core","service","stop","$name,$id=''"
2024-11-27 05:37:44 -05:00
.. csv-table:: Resources (SnapshotsController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","core","snapshots","activate","$uuid"
"``POST``","core","snapshots","add",""
"``POST``","core","snapshots","del","$uuid"
"``GET``","core","snapshots","get","$uuid=null"
"``GET``","core","snapshots","is_supported",""
2024-11-27 05:37:44 -05:00
"``GET``","core","snapshots","search",""
"``POST``","core","snapshots","set","$uuid"
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (SystemController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","core","system","dismiss_status",""
2023-07-07 04:59:17 -04:00
"``POST``","core","system","halt",""
"``POST``","core","system","reboot",""
2022-10-19 11:21:08 -04:00
"``GET``","core","system","status",""
2025-01-29 07:39:44 -05:00
.. csv-table:: Resources (TunablesController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","core","tunables","add_item",""
"``POST``","core","tunables","del_item","$uuid"
2025-01-29 07:39:44 -05:00
"``GET``","core","tunables","get",""
"``GET``","core","tunables","get_item","$uuid=null"
2025-01-29 07:39:44 -05:00
"``POST``","core","tunables","reconfigure",""
"``POST``","core","tunables","reset",""
2025-05-01 07:06:32 -04:00
"``GET,POST``","core","tunables","search_item",""
2025-01-29 07:39:44 -05:00
"``POST``","core","tunables","set",""
"``POST``","core","tunables","set_item","$uuid"
2025-01-29 07:39:44 -05:00
"``<<uses>>``", "", "", "", "*model* `Tunables.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Core/Tunables.xml>`__"