<?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 Syntax in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Syntax/m-p/89884#M4988</link>
    <description>What I probably should have added to the above is that sometimes a value is, itself, a JSON object.&lt;BR /&gt;Nested JSON is where I occasionally get confused at times.</description>
    <pubDate>Fri, 26 Jun 2020 06:53:55 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-06-26T06:53:55Z</dc:date>
    <item>
      <title>API Syntax</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Syntax/m-p/89744#M4981</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have searched high and low but cannot find any descriptions of the syntax for the API. I have seen the API Reference and understand the concept of "key" "value" pairs and what a "string" or "Boolean" value is. What I am looking for is what happens when the "key" refers to an "Object" or a "List: Object", particularly when using "set-xxx".&lt;/P&gt;&lt;P&gt;What started me down this path is the desire to simplify overriding the actions for IPS protections for one profile. I could ask if anyone has done anything like this but I really want to understand the API so I can start automating/simplifying repetitive tasks.&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 03:11:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Syntax/m-p/89744#M4981</guid>
      <dc:creator>Colin_Campbell1</dc:creator>
      <dc:date>2020-06-25T03:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: API Syntax</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Syntax/m-p/89745#M4982</link>
      <description>When you make a call to the API, you are passing a JSON object.&lt;BR /&gt;A JSON object is an unordered set of name/value pairs.&lt;BR /&gt;An object begins with a left brace '{' and ends with a right brace '}'.&lt;BR /&gt;Each name is followed by a colon ':' and the name/value pairs are separated by a comma ','.&lt;BR /&gt;More about JSON in general here: &lt;A href="https://www.json.org/json-en.html" target="_blank"&gt;https://www.json.org/json-en.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Even if you're using mgmt_cli to talk to the API, the underlying API call happens in JSON.&lt;BR /&gt;That might require some specific syntax if you use mgmt_cli.&lt;BR /&gt;A couple threads might be helpful here:&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Adjust-Threat-Protection-Action/m-p/62902" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Adjust-Threat-Protection-Action/m-p/62902&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Intermittent-error-for-web-api-set-threat-protection/m-p/80495" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Intermittent-error-for-web-api-set-threat-protection/m-p/80495&lt;/A&gt;</description>
      <pubDate>Thu, 25 Jun 2020 04:12:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Syntax/m-p/89745#M4982</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-06-25T04:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: API Syntax</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Syntax/m-p/89880#M4987</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was initially not overly enamored with this response but then re-acquainted myself with the JSON page and it became much clearer. Kind of "give a man a fish and feed him for a day; teach a man to fish and feed him for life". Thanks for the fishing rod.&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 05:51:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Syntax/m-p/89880#M4987</guid>
      <dc:creator>Colin_Campbell1</dc:creator>
      <dc:date>2020-06-26T05:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: API Syntax</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Syntax/m-p/89884#M4988</link>
      <description>What I probably should have added to the above is that sometimes a value is, itself, a JSON object.&lt;BR /&gt;Nested JSON is where I occasionally get confused at times.</description>
      <pubDate>Fri, 26 Jun 2020 06:53:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Syntax/m-p/89884#M4988</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-06-26T06:53:55Z</dc:date>
    </item>
  </channel>
</rss>

