Services
- async OPNsenseClient.get_services()
Return all manageable OPNsense services.
- Returns:
- Service rows from the core service search
endpoint with a derived boolean
statusfield indicating whether each service is currently running. HTTP 404 yields an empty list. Withthrow_errors=False, HTTP 403, other read failures, and undecodable responses yieldNone. Withthrow_errors=True, those failures raise anOPNsenseError.
- Return type:
- async OPNsenseClient.get_service_is_running(service)
Return whether a named OPNsense service is running.
- async OPNsenseClient.start_service(service)
Start an OPNsense service.
- async OPNsenseClient.stop_service(service)
Stop an OPNsense service.
- async OPNsenseClient.restart_service(service)
Restart an OPNsense service.