Class: OPNsenseAPI::Core::IPSec::SAD
- Inherits:
-
Object
- Object
- OPNsenseAPI::Core::IPSec::SAD
- Includes:
- OPNsenseAPI::Core
- Defined in:
- lib/opnsense_api/core/ipsec/sad.rb
Overview
Constant Summary collapse
- BASE_PATH =
'/ipsec/sad'
Instance Method Summary collapse
Methods included from OPNsenseAPI::Core
Instance Method Details
#delete(body = {}, id:) ⇒ Object
27 28 29 |
# File 'lib/opnsense_api/core/ipsec/sad.rb', line 27 def delete(body = {}, id:) @client.post("#{BASE_PATH}/delete/#{id}", body) end |
#search(params = {}) ⇒ Object
31 32 33 |
# File 'lib/opnsense_api/core/ipsec/sad.rb', line 31 def search(params = {}) @client.get(BASE_PATH, params) end |