<?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: Script API object not found in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/91415#M18240</link>
    <description>&lt;P&gt;Hello Aromegom. I am facing the same issue than you. Did you find the proper target to run-script operation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and kind regards.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 08:18:50 GMT</pubDate>
    <dc:creator>Francisco_Jose1</dc:creator>
    <dc:date>2020-07-14T08:18:50Z</dc:date>
    <item>
      <title>Script API object not found</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/76375#M15513</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing roles for scripting with Ansible using the API. I have followed the API Documentation:&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/run-script~v1.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/run-script~v1.1%20&lt;/A&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the token and add it to headers for run-script call. I use the body like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"script-name": "Test",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"script": "ls -l /",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"targets": [ "1.1.1.1" ]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And this is the output&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;"code":&amp;nbsp;"generic_err_object_not_found",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;"message":&amp;nbsp;"Requested&amp;nbsp;object&amp;nbsp;[1.1.1.1]&amp;nbsp;not&amp;nbsp;found"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;1.1.1.1&lt;/EM&gt; is the CMA's IP,&amp;nbsp;I have tried to with CMA's Name and FW's IP and FW's name but I always get the same response.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you!&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 17:05:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/76375#M15513</guid>
      <dc:creator>Aromegom</dc:creator>
      <dc:date>2020-02-25T17:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script API object not found</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/76385#M15516</link>
      <description>Per the API documentation: "Targets may be identified by their name, or object unique identifier."&lt;BR /&gt;Specifically we're talking object name.&lt;BR /&gt;An IP address definitely won't work.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Feb 2020 19:39:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/76385#M15516</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-02-25T19:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script API object not found</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/76388#M15518</link>
      <description>True, but I have tried it with the name and didn't work. I could try with the ID (for my development I prefer name, but for testing should be usefull to).&lt;BR /&gt;So, Why did fail with the CMA's name?. How can I get the id from a name?&lt;BR /&gt;&lt;BR /&gt;Thank your for you answer and your help</description>
      <pubDate>Tue, 25 Feb 2020 20:03:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/76388#M15518</guid>
      <dc:creator>Aromegom</dc:creator>
      <dc:date>2020-02-25T20:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Script API object not found</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/76393#M15520</link>
      <description>Commands run at the machine level, so a CMA or VS are not supported targets.&lt;BR /&gt;It's meant for gateways, but I believe the MDS name will work as well.&lt;BR /&gt;&lt;BR /&gt;The relevant "show" command for a given object type (e.g. show-simple-gateway) will take a name as input and provide the uid in the output.</description>
      <pubDate>Tue, 25 Feb 2020 20:12:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/76393#M15520</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-02-25T20:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script API object not found</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/91415#M18240</link>
      <description>&lt;P&gt;Hello Aromegom. I am facing the same issue than you. Did you find the proper target to run-script operation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and kind regards.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 08:18:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Script-API-object-not-found/m-p/91415#M18240</guid>
      <dc:creator>Francisco_Jose1</dc:creator>
      <dc:date>2020-07-14T08:18:50Z</dc:date>
    </item>
  </channel>
</rss>

