Class: OPNsenseAPI::Core::IPSec::SPD

Inherits:
Object
  • Object
show all
Includes:
OPNsenseAPI::Core
Defined in:
lib/opnsense_api/core/ipsec/spd.rb

Overview

Constant Summary collapse

BASE_PATH =
'/ipsec/spd'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#delete(body = {}, id:) ⇒ Object



27
28
29
# File 'lib/opnsense_api/core/ipsec/spd.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/spd.rb', line 31

def search(params = {})
  @client.get("#{BASE_PATH}/search", params)
end