Class: OPNsenseAPI::Core::Proxy::Service
- Inherits:
-
Object
- Object
- OPNsenseAPI::Core::Proxy::Service
- Includes:
- OPNsenseAPI::Core
- Defined in:
- lib/opnsense_api/core/proxy/service.rb
Overview
Constant Summary collapse
- BASE_PATH =
'/proxy/service'
Instance Method Summary collapse
- #download_acls(body = {}) ⇒ Object
- #fetch_acls(body = {}) ⇒ Object
- #reconfigure(body = {}) ⇒ Object
- #refresh_template(body = {}) ⇒ Object
- #reset(body = {}) ⇒ Object
- #restart(body = {}) ⇒ Object
- #start(body = {}) ⇒ Object
- #status(body = {}) ⇒ Object
- #stop(body = {}) ⇒ Object
Methods included from OPNsenseAPI::Core
Instance Method Details
#download_acls(body = {}) ⇒ Object
27 28 29 |
# File 'lib/opnsense_api/core/proxy/service.rb', line 27 def download_acls(body = {}) @client.post("#{BASE_PATH}/downloadacls", body) end |
#fetch_acls(body = {}) ⇒ Object
31 32 33 |
# File 'lib/opnsense_api/core/proxy/service.rb', line 31 def fetch_acls(body = {}) @client.post("#{BASE_PATH}/fetchacls", body) end |
#reconfigure(body = {}) ⇒ Object
35 36 37 |
# File 'lib/opnsense_api/core/proxy/service.rb', line 35 def reconfigure(body = {}) @client.post("#{BASE_PATH}/reconfigure", body) end |
#refresh_template(body = {}) ⇒ Object
39 40 41 |
# File 'lib/opnsense_api/core/proxy/service.rb', line 39 def refresh_template(body = {}) @client.post("#{BASE_PATH}/refreshTemplate", body) end |
#reset(body = {}) ⇒ Object
43 44 45 |
# File 'lib/opnsense_api/core/proxy/service.rb', line 43 def reset(body = {}) @client.post("#{BASE_PATH}/reset", body) end |
#restart(body = {}) ⇒ Object
47 48 49 |
# File 'lib/opnsense_api/core/proxy/service.rb', line 47 def restart(body = {}) @client.post("#{BASE_PATH}/restart", body) end |
#start(body = {}) ⇒ Object
51 52 53 |
# File 'lib/opnsense_api/core/proxy/service.rb', line 51 def start(body = {}) @client.post("#{BASE_PATH}/start", body) end |
#status(body = {}) ⇒ Object
55 56 57 |
# File 'lib/opnsense_api/core/proxy/service.rb', line 55 def status(body = {}) @client.post("#{BASE_PATH}/status", body) end |
#stop(body = {}) ⇒ Object
59 60 61 |
# File 'lib/opnsense_api/core/proxy/service.rb', line 59 def stop(body = {}) @client.post("#{BASE_PATH}/stop", body) end |