<?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: Machine readable HTTP API (Mgmt) specifications ? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/209109#M8404</link>
    <description>&lt;P&gt;I am looking for a Swagger 2.0 or OPEN API3.0 specification file for an Integration Model. Do let me know if anyone has it in Json format or direct me where to get one for GAIA.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2024 12:51:29 GMT</pubDate>
    <dc:creator>Vivek_Ravi</dc:creator>
    <dc:date>2024-03-19T12:51:29Z</dc:date>
    <item>
      <title>Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/134309#M6438</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Ruby developer here. I had a look at the GitHub repos andI do not see a API SDK for Ruby.&lt;/P&gt;&lt;P&gt;It is extremely tedious work extracting information from the (very comprehensive and nice) human readable docs to manually type the specification for an API client.&lt;/P&gt;&lt;P&gt;Is there a machine readable API specification I can use to create my own HTTP API client library ?&lt;/P&gt;&lt;P&gt;I am thinking about something like the OpenAPI standard format that I can use tools like &lt;A href="https://swagger.io/solutions/getting-started-with-oas/" target="_self"&gt;Swagger&lt;/A&gt; to generate client code.&lt;/P&gt;&lt;P&gt;Or does the web API support &lt;A href="https://restfulapi.net/hateoas/" target="_self"&gt;HyperMedia&lt;/A&gt; for API discovery ?&lt;/P&gt;&lt;P&gt;In a pinch, any machine readable file format would beat trying to scrape the APIs documentation pages.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-gf-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 22:06:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/134309#M6438</guid>
      <dc:creator>Gerard_Fowley</dc:creator>
      <dc:date>2021-11-17T22:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/134555#M6446</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;any comment here?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2021 00:26:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/134555#M6446</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-11-20T00:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/134743#M6451</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We don't have an SDK for Ruby.&lt;/P&gt;
&lt;P&gt;The API documentation is&amp;nbsp;generated from a JSON file but it is not in any standard format and can't be used in any of the mentioned tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Omer&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 15:24:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/134743#M6451</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2021-11-23T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/134747#M6452</link>
      <description>&lt;P&gt;Hi Omer,&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;I see that the API documentation web page is dynamically created from JSON files. They are broken into diffs between versions (probably to reduce bandwidth) leaving much re-assembly to be done to extract an API spec for the latest version.&lt;/P&gt;&lt;P&gt;Having an original version-specific file(s) to parse would greatly reduce the quantity of work required to create our own client.&lt;/P&gt;&lt;P&gt;Can the API spec JSON file be made available (with no expectations of support) for those of us who need to create their own client ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-gf-&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 16:03:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/134747#M6452</guid>
      <dc:creator>Gerard_Fowley</dc:creator>
      <dc:date>2021-11-23T16:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/209109#M8404</link>
      <description>&lt;P&gt;I am looking for a Swagger 2.0 or OPEN API3.0 specification file for an Integration Model. Do let me know if anyone has it in Json format or direct me where to get one for GAIA.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 12:51:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/209109#M8404</guid>
      <dc:creator>Vivek_Ravi</dc:creator>
      <dc:date>2024-03-19T12:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/209162#M8406</link>
      <description>&lt;P&gt;Hey, your comment prompted me to look into this again...&lt;/P&gt;&lt;P&gt;Since last time I checked, there are now links to Postman collection specs for some APIs on the Checkpoint API page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/api_reference/index.html" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/api_reference/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Look for links titled "Copy URL with API spec", they point to Postman Collection JSON files. There is one for the Management API I was looking for, did not see one for the GAIA API. Maybe there will be in future.&lt;/P&gt;&lt;P&gt;That started me down the rabbit hole of Postman conversion to OpenAPI format with open source tools:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kevinswiber/postman2openapi" target="_blank"&gt;https://github.com/kevinswiber/postman2openapi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/joolfe/postman-to-openapi" target="_blank"&gt;https://github.com/joolfe/postman-to-openapi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, both formats can be quite complex and there is no simple one-to-one mapping. Both tools made an incomplete conversion to OpenAPI for the management API, but postman-to-openapi came closest. It's output may be useful as the basis of a manual conversion.&lt;/P&gt;&lt;P&gt;I also found the Postman code generators project:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/postmanlabs/postman-code-generators" target="_blank"&gt;https://github.com/postmanlabs/postman-code-generators&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seems to generate code snippets for individual API requests. That may be useful if your use case only needs a few different requests, but it may not scale to a complete client.&lt;/P&gt;&lt;P&gt;I'll look into this some more as time allows. Let me know if you discover anything interesting.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-gf-&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 17:44:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/209162#M8406</guid>
      <dc:creator>Gerard_Fowley</dc:creator>
      <dc:date>2024-03-19T17:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/209234#M8408</link>
      <description>&lt;P&gt;Thanks for the recommendations &lt;SPAN class=""&gt;&lt;A class="" href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/26150" target="_self"&gt;&lt;SPAN class=""&gt;Gerard_Fowley&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;, yeah the link converts the JSON/postman files to Open API specification, but the integration model rejects it saying non-compliance with Open API specifications. Will explore more into this.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 04:37:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/209234#M8408</guid>
      <dc:creator>Vivek_Ravi</dc:creator>
      <dc:date>2024-03-20T04:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/209979#M8423</link>
      <description>&lt;P&gt;After researching a bit more on this one, I finally created Swagger JSON for GAIA. Attached is the file. Unlike other adapters, the GAIA's Authentication is empty. Can someone guide me what type of authentication does this uses. The tool I am using provides three type of Authentications&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;API Key&lt;/H4&gt;&lt;DIV class=""&gt;&lt;PRE&gt;"authentication": {
  "API-Token": {
    "value": "&amp;lt;INSERT API-Token HERE&amp;gt;"
  }
},​&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;HTTP (Basic &amp;amp; Bearer)&lt;/H4&gt;&lt;P&gt;&lt;STRONG&gt;Basic&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;"authentication": {
          "httpBasic": {
            "username": "&amp;lt;INSERT username HERE&amp;gt;",
            "password": "&amp;lt;INSERT password HERE&amp;gt;"
          }
      },&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;JSON&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Bearer&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;"authentication": {
          "bearerAuth": "&amp;lt;INSERT bearerAuth HERE&amp;gt;"
      },&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;JSON&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H4&gt;Oauth2&lt;/H4&gt;&lt;DIV class=""&gt;&lt;PRE&gt;"authentication": {
  "oauth2": {
    "token": {
      "access_token": "&amp;lt;INSERT access_token HERE&amp;gt;",
      "token_type": "Bearer"
    }
  }
},&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Mar 2024 04:22:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/209979#M8423</guid>
      <dc:creator>Vivek_Ravi</dc:creator>
      <dc:date>2024-03-29T04:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/210019#M8427</link>
      <description>&lt;P&gt;OAuth is closest, but Check Point's management API authentication isn't actually OAuth.&lt;/P&gt;
&lt;P&gt;You must call &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/login~v1.9.1%20" target="_self"&gt;/login&lt;/A&gt; with the credentials in the body of the request. It responds with a JSON object. The key 'sid' contains a value which you must add to the 'X-chkp-sid' header in all subsequent requests. The token is invalidated after calling &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/logout~v1.9.1%20" target="_self"&gt;/logout&lt;/A&gt; or after 10 minutes with no API calls by default. You can request a different validity period in the call to /login, but the actual timeout will be in the key 'session-timeout' in the /login response. If building something user-interactive, you can call &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/keepalive~v1.9.1%20" target="_self"&gt;/keepalive&lt;/A&gt; to reset the timeout without actually changing anything on the management.&lt;/P&gt;
&lt;P&gt;Check Point management servers do not perform 401 authentication challenges, and do not accept session tokens in cookies.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 17:18:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/210019#M8427</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-03-29T17:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Machine readable HTTP API (Mgmt) specifications ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/210154#M8436</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt; for your answer. Yeah indeed we use the above said method in the Postman. But I am using a automation tool called Itential. It has Integration Model based on OpenAPI 3.0 or Swagger 2.0. I imported the GAIA's OpenAPI file to Itential and it converted all the HTTP requests as tasks.&lt;/P&gt;&lt;P&gt;Here is how the Itential imported the Integration file as, the integration isn't working as expected. I believe there is something weird with "authentication":"" part&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"name": "Dallab Gaia",&lt;BR /&gt;"model": "@itential/adapter_GAIA API-1.6:1.0.0",&lt;BR /&gt;"type": "Adapter",&lt;BR /&gt;"properties": {&lt;BR /&gt;"id": "Dallab Gaia",&lt;BR /&gt;"type": "GAIA API-1.6:1.0.0",&lt;BR /&gt;"brokers": [],&lt;BR /&gt;"groups": [],&lt;BR /&gt;"properties": {&lt;BR /&gt;"server": {&lt;BR /&gt;"protocol": "https",&lt;BR /&gt;"host": "192.168.1.1",&lt;BR /&gt;"base_path": "/gaia_api",&lt;BR /&gt;"port": 443&lt;BR /&gt;},&lt;BR /&gt;"version": "1.0.0",&lt;BR /&gt;"authentication": {},&lt;BR /&gt;"tls": {&lt;BR /&gt;"enabled": false,&lt;BR /&gt;"rejectUnauthorized": true&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"isEncrypted": true,&lt;BR /&gt;"loggerProps": {&lt;BR /&gt;"log_max_files": 5,&lt;BR /&gt;"log_max_file_size": 1048576,&lt;BR /&gt;"log_level": "error",&lt;BR /&gt;"log_directory": "/opt/itential/logs",&lt;BR /&gt;"log_filename": "pronghorn.log",&lt;BR /&gt;"console_level": "info",&lt;BR /&gt;"description": "Logging"&lt;BR /&gt;},&lt;BR /&gt;"virtual": true&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link to Itential's Token management &lt;A href="https://docs.itential.com/docs/integration-token-management" target="_blank"&gt;https://docs.itential.com/docs/integration-token-management&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 11:34:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Machine-readable-HTTP-API-Mgmt-specifications/m-p/210154#M8436</guid>
      <dc:creator>Vivek_Ravi</dc:creator>
      <dc:date>2024-04-01T11:34:45Z</dc:date>
    </item>
  </channel>
</rss>

