<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API - Host creation in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-Host-creation/m-p/115875#M76216</link>
    <description>&lt;P&gt;Thanks for the reply....Tried that &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; No luck.&lt;/P&gt;&lt;P&gt;Worked it out though....It's&lt;/P&gt;&lt;P&gt;add host host-servers.dns-server "true" name MYHOST ip-address 192.168.1.2 comments "this is my Host"&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 17:25:02 GMT</pubDate>
    <dc:creator>djhornby</dc:creator>
    <dc:date>2021-04-12T17:25:02Z</dc:date>
    <item>
      <title>API - Host creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-Host-creation/m-p/115868#M76214</link>
      <description>&lt;P&gt;I'm using the API to create hosts for the first time.&lt;/P&gt;&lt;P&gt;add host name MYHOST ip-address 192.28.1.115 comments MY HOST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how do I use the host-servers option to configure it as a dns-server&lt;/P&gt;&lt;P&gt;Ive tried:&lt;/P&gt;&lt;P&gt;add host name MYHOST ip-address 192.28.1.115 host-servers dns-server comments MY HOST&lt;/P&gt;&lt;P&gt;But this fails.&amp;nbsp; I can't find any good examples anywhere.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 14:51:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-Host-creation/m-p/115868#M76214</guid>
      <dc:creator>djhornby</dc:creator>
      <dc:date>2021-04-12T14:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: API - Host creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-Host-creation/m-p/115871#M76215</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Based on the documentation, dns-server is a boolean value, that means True or False ,&amp;nbsp;&lt;SPAN&gt;host-servers dns-server "True" , try it like this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 16:41:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-Host-creation/m-p/115871#M76215</guid>
      <dc:creator>funkylicious</dc:creator>
      <dc:date>2021-04-12T16:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: API - Host creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-Host-creation/m-p/115875#M76216</link>
      <description>&lt;P&gt;Thanks for the reply....Tried that &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; No luck.&lt;/P&gt;&lt;P&gt;Worked it out though....It's&lt;/P&gt;&lt;P&gt;add host host-servers.dns-server "true" name MYHOST ip-address 192.168.1.2 comments "this is my Host"&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 17:25:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-Host-creation/m-p/115875#M76216</guid>
      <dc:creator>djhornby</dc:creator>
      <dc:date>2021-04-12T17:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: API - Host creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-Host-creation/m-p/115876#M76217</link>
      <description>&lt;P&gt;For reference, this JSON sent via an HTTP POST to /add-host would yield the same result:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "name": "MYHOST",
  "ip-address": "192.168.1.2",
  "comments": "this is my Host",
  "host-servers": {
    "dns-server": true
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;I add this because it's sometimes a little confusing going from the command line to JSON suitable for sending over the network.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 17:39:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/API-Host-creation/m-p/115876#M76217</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-04-12T17:39:59Z</dc:date>
    </item>
  </channel>
</rss>

