<?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 Python script to copy service groups from SMS to new SMS in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-script-to-copy-service-groups-from-SMS-to-new-SMS/m-p/132192#M6352</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had a need to copy objects from one SMS to a new one.&amp;nbsp; After exporting and creating csv-files I realised that the csv-syntax for adding groups wasn't documented*. I decided to create a python-script, for the remaining objects - service groups.&lt;/P&gt;&lt;P&gt;My goal is to also copy the services themselves as they need to exist before creating the group (duh), and then also other kind objects.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/durd/cp-services" target="_blank" rel="noopener"&gt;https://github.com/durd/cp-services&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;I &lt;A href="https://community.checkpoint.com/t5/Management/Batch-add-objects-what-is-the-correct-CSV-format/m-p/131470/highlight/true#M28377" target="_blank" rel="noopener"&gt;figured it out&lt;/A&gt;, but decided it was easier with python as csv would have a column for each group-member, which would fail because all groups do not have the same amount of members, unless you create a csv per group which I felt wasn't feasible.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 09:12:59 GMT</pubDate>
    <dc:creator>David_Brodin</dc:creator>
    <dc:date>2021-10-20T09:12:59Z</dc:date>
    <item>
      <title>Python script to copy service groups from SMS to new SMS</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-script-to-copy-service-groups-from-SMS-to-new-SMS/m-p/132192#M6352</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had a need to copy objects from one SMS to a new one.&amp;nbsp; After exporting and creating csv-files I realised that the csv-syntax for adding groups wasn't documented*. I decided to create a python-script, for the remaining objects - service groups.&lt;/P&gt;&lt;P&gt;My goal is to also copy the services themselves as they need to exist before creating the group (duh), and then also other kind objects.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/durd/cp-services" target="_blank" rel="noopener"&gt;https://github.com/durd/cp-services&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&amp;nbsp;I &lt;A href="https://community.checkpoint.com/t5/Management/Batch-add-objects-what-is-the-correct-CSV-format/m-p/131470/highlight/true#M28377" target="_blank" rel="noopener"&gt;figured it out&lt;/A&gt;, but decided it was easier with python as csv would have a column for each group-member, which would fail because all groups do not have the same amount of members, unless you create a csv per group which I felt wasn't feasible.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 09:12:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-script-to-copy-service-groups-from-SMS-to-new-SMS/m-p/132192#M6352</guid>
      <dc:creator>David_Brodin</dc:creator>
      <dc:date>2021-10-20T09:12:59Z</dc:date>
    </item>
  </channel>
</rss>

