def add(name, ip_address, options={})
      client = CpMgmt.configuration.client
      CpMgmt.logged_in?
      params = {name: name, "ip-address": ip_address}
      body = params.merge(options).to_json

      response = client.post do |req|
        req.url '/web_api/add-host'
        req.headers['Content-Type'] = 'application/json'
        req.headers['X-chkp-sid'] = ENV.fetch("sid")
        req.body = body
      end
      CpMgmt.transform_response(response)
    end
def add(name, ip_address, options={})
      client = CpMgmt.configuration.client
      CpMgmt.logged_in?
      params = {name: name, "ip-address": ip_address}
      body = params.merge(options).to_json

      response = client.post do |req|
        req.url '/web_api/add-host'
        req.headers['Content-Type'] = 'application/json'
        req.headers['X-chkp-sid'] = ENV.fetch("sid")
        req.body = body
      end
      CpMgmt.transform_response(response)
    end
Adds a host