<?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 Tips on using generic-object API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tips-on-using-generic-object-API/m-p/192583#M8053</link>
    <description>&lt;P&gt;While we have made a number of improvements with respect to API support for Quantum Security Management, there are still a number of object types that are currently not supported with the API.&lt;BR /&gt;In some cases, you may be able to manipulate these objects using the generic-object API calls.&lt;BR /&gt;These API endpoints are NOT DOCUMENTED as they are not officially supported (through TAC or other mechanisms).&lt;BR /&gt;You should always use supported API endpoints where possible.&lt;/P&gt;
&lt;P&gt;Having said that, there are a few tips for working with these objects.&amp;nbsp;&lt;BR /&gt;First of all, you'll need the UID of the object in question.&lt;BR /&gt;This can be obtained using the following command from your management server: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli -r true show-generic-objects name "ObjectName" --format json&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;From here, you can use the generic-object API to list the details of said object.&lt;BR /&gt;For example:&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli -r true show-generic-object uid xxxx --format json&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Some example threads where folks have successfully used the Generic API to either make changes or programmatically get certain information:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/td-p/20956" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/td-p/20956&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/class-names-available-for-use-with-the-quot-show-generic-objects/m-p/29388" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/class-names-available-for-use-with-the-quot-show-generic-objects/m-p/29388&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Happy for folks to share their own tips for using this API!&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 17:42:33 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2023-09-13T17:42:33Z</dc:date>
    <item>
      <title>Tips on using generic-object API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tips-on-using-generic-object-API/m-p/192583#M8053</link>
      <description>&lt;P&gt;While we have made a number of improvements with respect to API support for Quantum Security Management, there are still a number of object types that are currently not supported with the API.&lt;BR /&gt;In some cases, you may be able to manipulate these objects using the generic-object API calls.&lt;BR /&gt;These API endpoints are NOT DOCUMENTED as they are not officially supported (through TAC or other mechanisms).&lt;BR /&gt;You should always use supported API endpoints where possible.&lt;/P&gt;
&lt;P&gt;Having said that, there are a few tips for working with these objects.&amp;nbsp;&lt;BR /&gt;First of all, you'll need the UID of the object in question.&lt;BR /&gt;This can be obtained using the following command from your management server: &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli -r true show-generic-objects name "ObjectName" --format json&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;From here, you can use the generic-object API to list the details of said object.&lt;BR /&gt;For example:&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli -r true show-generic-object uid xxxx --format json&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Some example threads where folks have successfully used the Generic API to either make changes or programmatically get certain information:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/td-p/20956" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Missing-API-possibility-to-set-vpn-community-star-objects/td-p/20956&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/class-names-available-for-use-with-the-quot-show-generic-objects/m-p/29388" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/class-names-available-for-use-with-the-quot-show-generic-objects/m-p/29388&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Happy for folks to share their own tips for using this API!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 17:42:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tips-on-using-generic-object-API/m-p/192583#M8053</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-09-13T17:42:33Z</dc:date>
    </item>
  </channel>
</rss>

