class Hostinterfaces
Public Instance Methods
create(options)
click to toggle source
# File lib/zapix/proxies/hostinterfaces.rb, line 4 def create(options) client.hostinterface_create(options) unless exists?(options) end
exists?(options)
click to toggle source
# File lib/zapix/proxies/hostinterfaces.rb, line 8 def exists?(options) get(options).empty? ? false : true end
get(options)
click to toggle source
# File lib/zapix/proxies/hostinterfaces.rb, line 12 def get(options) client.hostinterface_get( 'filter' => { 'hostid' => options['hostid'], 'port' => options['port'], 'type' => options['type'] }, 'output' => 'extend' ) end