<?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: Can someone provide an API example that clearly shows the use of an element &amp;quot;List: string&amp;quot; type entry, like multiple domains in &amp;quot;add trusted-clients&amp;quot; in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3318#M310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. appreciate it. i am converting thousand rules from other brand to CP. it really makes me crazy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 23:14:49 GMT</pubDate>
    <dc:creator>Yansen_Jong</dc:creator>
    <dc:date>2018-04-24T23:14:49Z</dc:date>
    <item>
      <title>Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3313#M305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The API reference is missing a clear section that fully explains and provides examples for standard value types and entries, like "List: string", since none of the actual examples provided are sufficient, and there is no document or SK about the basic API elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is a "List: string" a list of comma separated entries within quotes, is it a list of semi-colon separated entries within quotes, is it a list of quoted strings that are semi-colon separated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 19:35:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3313#M305</guid>
      <dc:creator>Eric_Beasley</dc:creator>
      <dc:date>2017-05-11T19:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3314#M306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the way you use the APIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;When using web-services (REST) APIs:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The data is always sent using JSON format.&lt;/P&gt;&lt;P&gt;In JSON, arrays are passed using the [ ] characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;When using command line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Provide the members of the list as key value pairs. For example: param-name.0 value0 param-name.1 value1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Examples&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The set-host command can accept a list of group names (list of strings) for its "groups" parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using REST, the same command would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;POST {{server}}/set-host&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Content-Type: application/json&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;X-chkp-sid: {{session}}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "my host"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "groups": [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "group0",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "group1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using CLI, the command would look like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mgmt_cli set-host name "my host" groups.0 "group0" groups.1 "group1"&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 11:08:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3314#M306</guid>
      <dc:creator>Eugene_Grybinny</dc:creator>
      <dc:date>2017-05-15T11:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3315#M307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a good start, but does not illustrate how to create a list in a csv file for batch upload via -b option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, based on some examples I've found, it looks like the list is "a;b;c;d" with semi-color (;) as separator, but I need to verify that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 00:56:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3315#M307</guid>
      <dc:creator>Eric_Beasley</dc:creator>
      <dc:date>2017-05-26T00:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3316#M308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried the method of "a:b:c" does not work. tried different ways, still not figure it out. anyone successfully know the syntax of multiple object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 12:26:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3316#M308</guid>
      <dc:creator>Yansen_Jong</dc:creator>
      <dc:date>2018-04-24T12:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3317#M309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll check this in code and get back to you.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 14:41:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3317#M309</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-04-24T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3318#M310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. appreciate it. i am converting thousand rules from other brand to CP. it really makes me crazy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 23:14:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3318#M310</guid>
      <dc:creator>Yansen_Jong</dc:creator>
      <dc:date>2018-04-24T23:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3319#M311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yansen,&lt;/P&gt;&lt;P&gt;Which brand are you migrating? Cisco? Juniper?&lt;/P&gt;&lt;P&gt;We have the &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk115416"&gt;SmartMove tool&lt;/A&gt; for that migration...&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 01:51:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3319#M311</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-04-25T01:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3320#M312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am migrating from Cisco FWSM. it should be the same like ASA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you can share the syntax format of list string in csv will be great. i already have the excel list source,destination and ports. the problem i can only import with single object as the syntax format i tried not correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 02:59:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3320#M312</guid>
      <dc:creator>Yansen_Jong</dc:creator>
      <dc:date>2018-04-25T02:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3321#M313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;First, how does the CSV file is organized? The first row (the header) is a comma separated list of fields names, same as they appear in the specific command's parameters - please copy paste from the command refs to avoid typos.&lt;/P&gt;&lt;P&gt;Then, all the following rows just contain list of comma separated values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of list values, you should use the notation as &lt;A href="https://community.checkpoint.com/migrated-users/2061"&gt;Eugene Grybinnyk&lt;/A&gt;‌ mentioned above. Let's take an example of &lt;STRONG&gt;add-host&lt;/STRONG&gt; command:&lt;/P&gt;&lt;P&gt;In the &lt;SPAN style="text-decoration: underline;"&gt;header row&lt;/SPAN&gt; you put the list fields names as follows -&amp;nbsp;&lt;/P&gt;&lt;P&gt;groups.1,groups.2,etc&lt;/P&gt;&lt;P&gt;In the &lt;SPAN style="text-decoration: underline;"&gt;values rows&lt;/SPAN&gt;, at the appropriate columns you put the corresponding values -&amp;nbsp;&lt;/P&gt;&lt;P&gt;my_grp1,my_grp2,etc&lt;/P&gt;&lt;P&gt;BTW, you do not have to provide values to these fields in all values rows, as there may be hosts without groups...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full example:&lt;/P&gt;&lt;PRE class="language-none"&gt;&lt;CODE&gt;name,ip-address,color,groups.1,groups.2&lt;BR /&gt;h1,1.1.1.1,red,my_grp1,my_grp2&lt;BR /&gt;h2,2.2.2.2,yellow,my_grp1,my_grp2&lt;BR /&gt;h3,3.3.3.3,black,my_grp1,&lt;BR /&gt;h4,4.4.4.4,orange,,‍‍‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the second hand, when you want to modify existing host objects (&lt;STRONG&gt;set-host&lt;/STRONG&gt; command), sometimes you wish to add values to the list, or sometimes reset or remove the values. In this case you shoud use "add" or "remove" keywords. For a complete samples, take a look at the examples section of this command -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-vpn-community-star~v1.1%20"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-vpn-community-star~v1.1%20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 12:48:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3321#M313</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-04-25T12:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone provide an API example that clearly shows the use of an element "List: string" type entry, like multiple domains in "add trusted-clients"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3322#M314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert for your valuable inputs. i can import multiple objects now. but i need to adjust my csv list. i thought it can be done in column Format but it is not. i need to convert like source.1,source.2, source.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 13:38:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-someone-provide-an-API-example-that-clearly-shows-the-use-of/m-p/3322#M314</guid>
      <dc:creator>Yansen_Jong</dc:creator>
      <dc:date>2018-04-26T13:38:19Z</dc:date>
    </item>
  </channel>
</rss>

