Class: Hostinterfaces
- Inherits:
-
Base
- Object
- Base
- Hostinterfaces
- Defined in:
- lib/zapix/proxies/hostinterfaces.rb
Instance Method Summary collapse
Instance Method Details
#create(options) ⇒ Object
5 6 7 |
# File 'lib/zapix/proxies/hostinterfaces.rb', line 5 def create() client.hostinterface_create() unless exists?() end |
#exists?(options) ⇒ Boolean
9 10 11 |
# File 'lib/zapix/proxies/hostinterfaces.rb', line 9 def exists?() get().empty? ? false : true end |
#get(options) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/zapix/proxies/hostinterfaces.rb', line 13 def get() client.hostinterface_get( {'filter' => {'hostid' => ['hostid'], 'port' => ['port'], 'type' => ['type']}, 'output' => 'extend'}) end |