<?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: Is there a way to get a file using the API? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10296#M789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jordan,&lt;/P&gt;&lt;P&gt;I'm the API folk &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The response of the command should contain the full details of the command result.&lt;/P&gt;&lt;P&gt;You can run the mgmt_cli run-script command on your management and verify how the results should be.&lt;/P&gt;&lt;P&gt;Maybe you have to configure the ansible to correctly get the full results (verbose option...).&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2018 18:33:14 GMT</pubDate>
    <dc:creator>Robert_Decker</dc:creator>
    <dc:date>2018-07-18T18:33:14Z</dc:date>
    <item>
      <title>Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10293#M786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an ansible script that will audit the configuration settings of the firewall and output to a text file. &amp;nbsp;I can do all of that, but I don't know how to use the API to retrieve that output file. &amp;nbsp;I've seen the command put-file, but is there any equivalent to get-file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 16:51:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10293#M786</guid>
      <dc:creator>Jordan_Martin1</dc:creator>
      <dc:date>2018-07-18T16:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10294#M787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jordan,&lt;/P&gt;&lt;P&gt;There is no API for get-file operation, but maybe you can use the run-script command to run a script on the management that returns the content of a file as&amp;nbsp;its result.&lt;/P&gt;&lt;P&gt;BTW, I cannot sign in to GitHub from home and reply to you, but from your recent error I realize that you are not using the latest cpAnsible sources. Please check again.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 17:58:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10294#M787</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-07-18T17:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10295#M788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert. &amp;nbsp;You're right about GitHub. &amp;nbsp;I didn't realize that you had made a fix. &amp;nbsp;Thanks for that. &amp;nbsp;As for the run-script API, however, it is not possible to receive anything in response except for some json that indicates the command went through successfully. &amp;nbsp;You can never actually see the output of anything. &amp;nbsp;This is probably something that needs to be corrected by the API folks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:08:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10295#M788</guid>
      <dc:creator>Jordan_Martin1</dc:creator>
      <dc:date>2018-07-18T18:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10296#M789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jordan,&lt;/P&gt;&lt;P&gt;I'm the API folk &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The response of the command should contain the full details of the command result.&lt;/P&gt;&lt;P&gt;You can run the mgmt_cli run-script command on your management and verify how the results should be.&lt;/P&gt;&lt;P&gt;Maybe you have to configure the ansible to correctly get the full results (verbose option...).&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:33:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10296#M789</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-07-18T18:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10297#M790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jordan,&lt;/P&gt;&lt;P&gt;Please read this post, and watch the video, may be very helpful for you -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.checkpoint.com/thread/5478-leveraging-the-r8010-api-to-automate-and-streamline-security-operations"&gt;https://community.checkpoint.com/thread/5478-leveraging-the-r8010-api-to-automate-and-streamline-security-operations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The post also contains lots of scripts and ansible playbooks in a zip file.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:29:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10297#M790</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-07-18T19:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10298#M791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have probably watched that video ten times by now. &amp;nbsp;Thank you for the suggestion, though! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:33:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10298#M791</guid>
      <dc:creator>Jordan_Martin1</dc:creator>
      <dc:date>2018-07-18T19:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10299#M792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The response from run-script includes only one output as discussed in the documentation here:&amp;nbsp;&lt;A class="link-titled" href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/run-script~v1.2" title="https://sc1.checkpoint.com/documents/latest/APIs/index.html#gui-cli/run-script~v1.2"&gt;Check Point - Management API reference&lt;/A&gt;. &amp;nbsp;An example of the output is here:&amp;nbsp;{"tasks": [{"target": "ztestintfw1","task-id": "7edefe91-b4b3-4c8a-bbe8-a7286ca86133"}]}. &amp;nbsp;Note that there is no output listed, just a target and a task-id. &amp;nbsp;Neither or which is particularly helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:37:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10299#M792</guid>
      <dc:creator>Jordan_Martin1</dc:creator>
      <dc:date>2018-07-18T19:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10300#M793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jordan,&lt;/P&gt;&lt;P&gt;Remove the "&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;domain: System Data" parameter from the login command, this is the reason that the object&amp;nbsp;&lt;SPAN&gt;ztestintfw1 cannot be found.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;SPAN&gt;Robert.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:43:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10300#M793</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-07-18T19:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10301#M794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;This looks like a problem here - the run-script command returns a tasks container and not a single task-id.&lt;/P&gt;&lt;P&gt;I'll check tomorrow at work and get back to you.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:50:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10301#M794</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-07-18T19:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10302#M795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are the man, Robert! &amp;nbsp;Thank you so much. &amp;nbsp;Quick question, though: When is System Data needed and when is it not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 19:52:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10302#M795</guid>
      <dc:creator>Jordan_Martin1</dc:creator>
      <dc:date>2018-07-18T19:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10303#M796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the "system data" domain is needed for very specific objects, such as administrators.&lt;/P&gt;&lt;P&gt;most of the time you do not need to specify this dimain.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 20:05:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10303#M796</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-07-18T20:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10304#M797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any word on how to resolve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:11:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10304#M797</guid>
      <dc:creator>Jordan_Martin1</dc:creator>
      <dc:date>2018-07-19T14:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get a file using the API?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10305#M798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will take some time.&lt;/P&gt;&lt;P&gt;I need to change the code in our Python SDK to fix the issue.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:27:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-a-way-to-get-a-file-using-the-API/m-p/10305#M798</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-07-19T14:27:52Z</dc:date>
    </item>
  </channel>
</rss>

