<?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: Adding new network groups via API gives out a Error 404 in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191545#M7990</link>
    <description>&lt;P&gt;You're welcome&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 08:28:15 GMT</pubDate>
    <dc:creator>Amir_Senn</dc:creator>
    <dc:date>2023-09-05T08:28:15Z</dc:date>
    <item>
      <title>Adding new network groups via API gives out a Error 404</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191415#M7973</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm having trouble adding new network groups using the API add-group endpoint. I was able can create new hosts using the add-host endpoint so that confirms that my user does have Write permissions too so the issue is not related to that. I followed the documentation part which states the API has a option for "add-group with multiple members" but can't seem to make it work, I end up getting 404 client errors for some reason. When I try the format for adding a group with a single member I also keep getting 404 errors. Is there something I don't know about? Maybe this option is deprecated or something?&lt;/P&gt;&lt;P&gt;Here's an example just like the payload I'm trying to POST to the API add-group endpoint...&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "name" :&amp;nbsp; "my_testing_group",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "members" :&amp;nbsp; [ "192.168.1.156", "192.168.1.158" ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 19:59:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191415#M7973</guid>
      <dc:creator>mateus_cruz</dc:creator>
      <dc:date>2023-09-02T19:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new network groups via API gives out a Error 404</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191424#M7975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I see that in the member you used IPs and not hostname.&lt;/P&gt;
&lt;P&gt;I reproduced in my env. I tried to add IPs to a group and got a failure, after creating hosts for IPs I managed to add them with hostname. Can you try to create an object for them as well and then retry?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 10:16:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191424#M7975</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2023-09-03T10:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new network groups via API gives out a Error 404</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191490#M7981</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;the provided solution worked, but only when I added the hosts using the API mgmt_cli command line, when adding using the Web Services API (which I used via Python) it seems like the hosts objects are not saved and don't show up anywhere, even after publishing. Weird thing is that I can make multiple add-host commands in the web services API and it doesn't complain about repeated hosts being added, however, using the mgmt_cli and adding the same host more than once displays a error message since the host already exists of course.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 13:11:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191490#M7981</guid>
      <dc:creator>mateus_cruz</dc:creator>
      <dc:date>2023-09-04T13:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new network groups via API gives out a Error 404</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191494#M7982</link>
      <description>&lt;P&gt;Any case the publish is to another session? When you run a few commands do you save/provide session ID?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 13:26:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191494#M7982</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2023-09-04T13:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new network groups via API gives out a Error 404</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191501#M7983</link>
      <description>&lt;P&gt;Hey Amir,&lt;/P&gt;&lt;P&gt;I found the problem, my python code ended my user session too soon, not giving time for checkpoint to publish the session properly, I fixed that. Your help with the insight of using hostnames instead of IPs solved my main problem. Thank you for the help Amir!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 14:41:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191501#M7983</guid>
      <dc:creator>mateus_cruz</dc:creator>
      <dc:date>2023-09-04T14:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new network groups via API gives out a Error 404</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191504#M7984</link>
      <description>&lt;P&gt;Would be great if you could share the Python code snippet.&amp;nbsp; I'm currently working with the web services API and am curious what everyone's using as far as modules/libraries and especially how they're handling sessions and timeouts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, I'm using &lt;A href="https://docs.aiohttp.org/en/stable/" target="_blank" rel="noopener"&gt;aiohttp&lt;/A&gt; so I can make the calls async, but would image &lt;A href="https://pypi.org/project/requests/" target="_blank" rel="noopener"&gt;requests&lt;/A&gt; is the most popular.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 15:37:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191504#M7984</guid>
      <dc:creator>johnnyringo</dc:creator>
      <dc:date>2023-09-04T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new network groups via API gives out a Error 404</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191505#M7985</link>
      <description>&lt;P&gt;Hey I'm not sure I can share my code, but I can tell you I'm using the requests library, first using the /login endpoint, then using the returned token from the POST request to make further queries in the API.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 16:50:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191505#M7985</guid>
      <dc:creator>mateus_cruz</dc:creator>
      <dc:date>2023-09-04T16:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new network groups via API gives out a Error 404</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191545#M7990</link>
      <description>&lt;P&gt;You're welcome&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 08:28:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Adding-new-network-groups-via-API-gives-out-a-Error-404/m-p/191545#M7990</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2023-09-05T08:28:15Z</dc:date>
    </item>
  </channel>
</rss>

