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

186 lines
8.9 KiB
ReStructuredText
Raw Normal View History

Diagnostics
~~~~~~~~~~~
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (ActivityController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","activity","get_activity",""
2020-02-16 10:08:40 -05:00
2024-07-24 09:36:58 -04:00
.. csv-table:: Resources (CpuUsageController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","cpu_usage","get_c_p_u_type",""
2024-07-24 09:36:58 -04:00
"``GET``","diagnostics","cpu_usage","stream",""
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (DnsController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","dns","reverse_lookup",""
2020-02-16 10:08:40 -05:00
2025-05-01 04:03:43 -04:00
.. csv-table:: Resources (DnsDiagnosticsController.php)
2022-10-19 11:21:08 -04:00
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","dns_diagnostics","get",""
"``POST``","diagnostics","dns_diagnostics","set",""
"``<<uses>>``", "", "", "", "*model* `DnsDiagnostics.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Diagnostics/DnsDiagnostics.xml>`__"
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (FirewallController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","diagnostics","firewall","del_state","$stateid,$creatorid"
"``POST``","diagnostics","firewall","flush_sources",""
"``POST``","diagnostics","firewall","flush_states",""
"``POST``","diagnostics","firewall","kill_states",""
"``GET``","diagnostics","firewall","list_rule_ids",""
2020-02-16 10:08:40 -05:00
"``GET``","diagnostics","firewall","log",""
"``GET``","diagnostics","firewall","log_filters",""
"``GET``","diagnostics","firewall","pf_states",""
"``GET``","diagnostics","firewall","pf_statistics","$section=null"
"``POST``","diagnostics","firewall","query_pf_top",""
"``POST``","diagnostics","firewall","query_states",""
"``GET``","diagnostics","firewall","stats",""
"``GET``","diagnostics","firewall","stream_log",""
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (InterfaceController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","diagnostics","interface","_carp_status","$status"
"``POST``","diagnostics","interface","del_route",""
"``POST``","diagnostics","interface","flush_arp",""
"``GET``","diagnostics","interface","get_arp",""
"``GET``","diagnostics","interface","get_bpf_statistics",""
"``GET``","diagnostics","interface","get_interface_config",""
"``GET``","diagnostics","interface","get_interface_names",""
"``GET``","diagnostics","interface","get_interface_statistics",""
"``GET``","diagnostics","interface","get_memory_statistics",""
"``GET``","diagnostics","interface","get_ndp",""
"``GET``","diagnostics","interface","get_netisr_statistics",""
"``GET``","diagnostics","interface","get_pfsync_nodes",""
"``GET``","diagnostics","interface","get_protocol_statistics",""
"``GET``","diagnostics","interface","get_routes",""
"``GET``","diagnostics","interface","get_socket_statistics",""
"``GET``","diagnostics","interface","get_vip_status",""
"``GET``","diagnostics","interface","search_arp",""
"``GET``","diagnostics","interface","search_ndp",""
2020-02-16 10:08:40 -05:00
2021-07-28 09:59:13 -04:00
.. csv-table:: Resources (LvtemplateController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``POST``","diagnostics","lvtemplate","add_item",""
"``POST``","diagnostics","lvtemplate","del_item","$uuid"
2021-07-28 09:59:13 -04:00
"``GET``","diagnostics","lvtemplate","get",""
"``GET``","diagnostics","lvtemplate","get_item","$uuid=null"
2025-05-01 07:06:32 -04:00
"``GET,POST``","diagnostics","lvtemplate","search_item",""
2022-10-19 11:21:08 -04:00
"``POST``","diagnostics","lvtemplate","set",""
"``POST``","diagnostics","lvtemplate","set_item","$uuid"
2021-07-28 09:59:13 -04:00
"``<<uses>>``", "", "", "", "*model* `Lvtemplate.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Diagnostics/Lvtemplate.xml>`__"
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (NetflowController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","netflow","cache_stats",""
2020-02-16 10:08:40 -05:00
"``GET``","diagnostics","netflow","getconfig",""
"``GET``","diagnostics","netflow","is_enabled",""
2020-02-16 10:08:40 -05:00
"``POST``","diagnostics","netflow","reconfigure",""
"``GET``","diagnostics","netflow","setconfig",""
"``GET``","diagnostics","netflow","status",""
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (NetworkinsightController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
2025-05-01 04:03:43 -04:00
"``GET``","diagnostics","networkinsight","export","$provider=null,$from_date=null,$to_date=null,$resolution=null"
"``GET``","diagnostics","networkinsight","get_interfaces",""
"``GET``","diagnostics","networkinsight","get_metadata",""
"``GET``","diagnostics","networkinsight","get_protocols",""
"``GET``","diagnostics","networkinsight","get_services",""
2025-05-01 04:03:43 -04:00
"``GET``","diagnostics","networkinsight","timeserie","$provider=null,$measure=null,$from_date=null,$to_date=null,$resolution=null,$field=null,$emulation=null"
"``GET``","diagnostics","networkinsight","top","$provider=null,$from_date=null,$to_date=null,$field=null,$measure=null,$max_hits=null"
2020-02-16 10:08:40 -05:00
2022-10-19 11:21:08 -04:00
.. csv-table:: Resources (PacketCaptureController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","packet_capture","download","$jobid"
"``GET``","diagnostics","packet_capture","get",""
"``GET``","diagnostics","packet_capture","mac_info","$macaddr"
2022-10-19 11:21:08 -04:00
"``POST``","diagnostics","packet_capture","remove","$jobid"
"``GET``","diagnostics","packet_capture","search_jobs",""
2022-10-19 11:21:08 -04:00
"``POST``","diagnostics","packet_capture","set",""
"``POST``","diagnostics","packet_capture","start","$jobid"
"``POST``","diagnostics","packet_capture","stop","$jobid"
2025-05-01 04:03:43 -04:00
"``GET``","diagnostics","packet_capture","view","$jobid,$detail=normal"
2022-10-19 11:21:08 -04:00
"``<<uses>>``", "", "", "", "*model* `PacketCapture.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Diagnostics/PacketCapture.xml>`__"
2025-05-01 04:03:43 -04:00
.. csv-table:: Resources (PingController.php)
2023-07-07 04:59:17 -04:00
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","ping","get",""
"``POST``","diagnostics","ping","remove","$jobid"
"``GET``","diagnostics","ping","search_jobs",""
2023-07-07 04:59:17 -04:00
"``POST``","diagnostics","ping","set",""
"``POST``","diagnostics","ping","start","$jobid"
"``POST``","diagnostics","ping","stop","$jobid"
"``<<uses>>``", "", "", "", "*model* `Ping.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Diagnostics/Ping.xml>`__"
2025-05-01 04:03:43 -04:00
.. csv-table:: Resources (PortprobeController.php)
2023-07-07 04:59:17 -04:00
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","portprobe","get",""
"``POST``","diagnostics","portprobe","set",""
"``<<uses>>``", "", "", "", "*model* `Portprobe.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Diagnostics/Portprobe.xml>`__"
2022-11-24 13:06:26 -05:00
.. csv-table:: Resources (SystemController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","system","memory",""
"``GET``","diagnostics","system","system_disk",""
"``GET``","diagnostics","system","system_information",""
"``GET``","diagnostics","system","system_mbuf",""
"``GET``","diagnostics","system","system_resources",""
"``GET``","diagnostics","system","system_swap",""
"``GET``","diagnostics","system","system_temperature",""
"``GET``","diagnostics","system","system_time",""
2022-11-24 13:06:26 -05:00
2020-02-16 10:08:40 -05:00
.. csv-table:: Resources (SystemhealthController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
2025-05-01 04:03:43 -04:00
"``GET``","diagnostics","systemhealth","export_as_c_s_v","$rrd='',$detail=-1"
"``GET``","diagnostics","systemhealth","get_interfaces",""
2025-07-23 08:08:33 -04:00
"``GET``","diagnostics","systemhealth","get_rrd_list",""
"``GET``","diagnostics","systemhealth","get_system_health","$rrd='',$detail=-1"
2025-05-01 04:03:43 -04:00
.. csv-table:: Resources (TracerouteController.php)
2023-07-07 04:59:17 -04:00
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","traceroute","get",""
"``POST``","diagnostics","traceroute","set",""
"``<<uses>>``", "", "", "", "*model* `Traceroute.xml <https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Diagnostics/Traceroute.xml>`__"
.. csv-table:: Resources (TrafficController.php)
:header: "Method", "Module", "Controller", "Command", "Parameters"
:widths: 4, 15, 15, 30, 40
"``GET``","diagnostics","traffic","_interface",""
"``GET``","diagnostics","traffic","_top","$interfaces"
2024-07-24 09:36:58 -04:00
"``GET``","diagnostics","traffic","stream","$poll_interval=1"