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