<?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: How to create a new Network with multiple groups via csv on mgmt_cli in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/222060#M8621</link>
    <description>&lt;P&gt;Worked! thx&lt;BR /&gt;In which documentation can this be found?&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jul 2024 20:23:33 GMT</pubDate>
    <dc:creator>D_W</dc:creator>
    <dc:date>2024-07-27T20:23:33Z</dc:date>
    <item>
      <title>How to create a new Network with multiple groups via csv on mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/221876#M8612</link>
      <description>&lt;P&gt;Hi Mates,&lt;/P&gt;
&lt;P&gt;try to create a csv that creates a new network object and put it into more then one group at creation.&lt;BR /&gt;At the moment this works but I do not know how to add more then one group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;name,subnet,subnet-mask,comments,color,groups
NW_TestNeT,10.11.12.0,255.255.255.0,NW-Description,orange,Group1
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 09:31:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/221876#M8612</guid>
      <dc:creator>D_W</dc:creator>
      <dc:date>2024-07-25T09:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new Network with multiple groups via csv on mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/221904#M8613</link>
      <description>&lt;P&gt;In the header line, use groups.1, groups.2, etc (for as many groups as you wish to add)&lt;BR /&gt;Then in the data lines, you can list multiple groups.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 13:22:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/221904#M8613</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-07-25T13:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new Network with multiple groups via csv on mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/222060#M8621</link>
      <description>&lt;P&gt;Worked! thx&lt;BR /&gt;In which documentation can this be found?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 20:23:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/222060#M8621</guid>
      <dc:creator>D_W</dc:creator>
      <dc:date>2024-07-27T20:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new Network with multiple groups via csv on mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/222079#M8624</link>
      <description>&lt;P&gt;This is just a side-effect of how you have to specify arrays in mgmt_cli calls and how its CSV handling works.&amp;nbsp;I haven't seen good documentation for mgmt_cli.&lt;/P&gt;
&lt;P&gt;In short, the CSV handling works by taking each line of the CSV after the header, and mixing it with the header to construct an API command. You end up with the contents of cell 1A followed by the contents of nA followed by the contents of 1B followed by the contents of nB, and so on.&lt;/P&gt;
&lt;P&gt;mgmt_cli doesn't have a direct concept of arrays in its input. Instead, you have to specify the array members in the form "&amp;lt;key&amp;gt;.&amp;lt;index&amp;gt;". For example, to specify that the key "groups" should contain a three-member array, you need to provide "groups.1 &amp;lt;value&amp;gt; groups.2 &amp;lt;value&amp;gt; groups.3 &amp;lt;value&amp;gt;".&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 20:05:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/222079#M8624</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-07-28T20:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new Network with multiple groups via csv on mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/222133#M8629</link>
      <description>&lt;P&gt;Sadly, this is not well documented (officially).&lt;BR /&gt;It comes up periodically on CheckMates.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 12:26:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-a-new-Network-with-multiple-groups-via-csv-on-mgmt/m-p/222133#M8629</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-07-29T12:26:36Z</dc:date>
    </item>
  </channel>
</rss>

