<?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: Web API issues with run-script and install-policy from PowerShell in R80.10 in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6371#M552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your answer to #2 concerns me - I think you need to review the privileges&amp;nbsp;in SmartConsole -&amp;gt; Manage &amp;amp; Settings -&amp;gt;Permissions &amp;amp; Administrators -&amp;gt; Administrators for any restrictions and check trusted Clients to be sure Any is the only setting - for instance. Then if no issues there - check under&amp;nbsp;&lt;SPAN&gt;SmartConsole -&amp;gt; Manage &amp;amp; Settings -&amp;gt; Blades -&amp;gt; Management API and confirm that your windows machine is in the community of All IP Addresses that can be ... or just All IP Addresses. There may be something cludgey - that is why I am suggesting you verify theses things - because basically I suspect you are getting an Access Denied -&amp;nbsp;due to the machine you are accessing from. Since the code works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If no issue - there may be other issues but keep it simple 1st.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2017 18:23:55 GMT</pubDate>
    <dc:creator>Charles_Currier</dc:creator>
    <dc:date>2017-09-26T18:23:55Z</dc:date>
    <item>
      <title>Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6364#M545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've recently deployed a test R80.10 management server in our environment, and I've started working on a couple of scripts to automate routine tasks.&amp;nbsp; I'm really interested in the run-script and install-policy modules, but I'm having difficulty getting either of them to work when making calls to the web API.&amp;nbsp; Here's the code I've come up with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$checkpoint_mgmt_server = "10.X.X.X"&lt;/P&gt;&lt;P&gt;# Disable certificate check&lt;/P&gt;&lt;P&gt;[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$True}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$login_url = "&lt;A href="https://$checkpoint_mgmt_server/web_api/login"&gt;https://$checkpoint_mgmt_server/web_api/login&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;$query_url = "&lt;A href="https://$checkpoint_mgmt_server/web_api/run-script"&gt;https://$checkpoint_mgmt_server/web_api/run-script&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$creds_hash = @{"user"="admin";"password"="xxxxxx"}&lt;/P&gt;&lt;P&gt;$json_login_body = $creds_hash | ConvertTo-Json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Login call&lt;/P&gt;&lt;P&gt;$json_login_response = Invoke-WebRequest -uri $login_url -ContentType "application/json" -Method "POST" -body $json_login_body -ErrorAction Stop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Assign the sid to x-chkp-sid for future calls&lt;/P&gt;&lt;P&gt;$chkp_header = @{"x-chkp-sid"=($json_login_response | ConvertFrom-Json).sid}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Create a string array with test-gateway as the only element&lt;/P&gt;&lt;P&gt;$install_target = @("test-gateway")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Build the query body for run-script and convert it&lt;/P&gt;&lt;P&gt;$json_query_body = @{"script-name"="test";script="ls -la /var/tmp";targets=$install_target} | ConvertTo-Json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Call the uri for run-script&lt;/P&gt;&lt;P&gt;$json_query_response = Invoke-WebRequest -uri $query_url -ContentType "application/json" -Method "POST" -body $json_query_body -Headers $chkp_header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Invoke-WebRequest : The remote server returned an error: (404) Not Found.&lt;BR /&gt;At line:1 char:24&lt;BR /&gt;+ ... _response = Invoke-WebRequest -uri $query_url -ContentType "applicati ...&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc&lt;BR /&gt;&amp;nbsp;&amp;nbsp; eption&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query Body:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PS Y:\&amp;gt; $json_query_body&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "script":&amp;nbsp; "ls -la /var/tmp",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "script-name":&amp;nbsp; "test",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "targets":&amp;nbsp; [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "test-gateway"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried everything that I can think of to get this to work (using a simple string instead of the string array for targets, using the UID of the gateway, etc), but I'm getting the same result every time.&amp;nbsp; If I leave one of the required parameters off (i.e. targets), I get a 400 bad request error, and I can browse to the URL from my PC, so it appears to be available.&amp;nbsp; I've been able to get other API functions to work correctly (show-simple-gateway), but these are of course the two I'm really interested in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The management server is running R80.10, and the gateway is at R77.30, and I can run the demo commands from the Command Line/API button within SmartConsole on the management server without any issues.&amp;nbsp; I've yet to get either of these web calls to respond correctly though, so I was wondering if anyone had any insight.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 18:42:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6364#M545</guid>
      <dc:creator>Ryan_Pitman</dc:creator>
      <dc:date>2017-09-19T18:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6365#M546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using the power-shell module posted -&amp;gt; &amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.checkpoint.com/docs/DOC-2163?commentID=2199#comment-2199" title="https://community.checkpoint.com/docs/DOC-2163?commentID=2199#comment-2199"&gt;https://community.checkpoint.com/docs/DOC-2163?commentID=2199#comment-2199&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 16:05:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6365#M546</guid>
      <dc:creator>Neil_ZInk</dc:creator>
      <dc:date>2017-09-21T16:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6366#M547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the Basic questions First:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Confirm you have the API enabled (even if just to humor the suggestion)&lt;/LI&gt;&lt;LI&gt;Confirm that the machine you are running the API calls from is in the IP access list allowed to connect to / manage the SmartCenter.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If no changes there:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Your code - at first glance looks ok - are you running this in a linux or windows environment&lt;/LI&gt;&lt;LI&gt;You can do this through postman and test / confirm your calls / formatting&lt;/LI&gt;&lt;LI&gt;If working with Python or PowerShell - there are some modules that will help you - json formatting etc that you can find on the community site.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So some more details will help point you in a better direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 19:33:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6366#M547</guid>
      <dc:creator>Charles_Currier</dc:creator>
      <dc:date>2017-09-22T19:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6367#M548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not implemented the API calls Ryan is after yet. That said if it will help you Ryan I could get that implemented this week for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for what might be wrong with your code a little hard to say. As long as the API is enabled and configured for your IP, then most 404 errors will still also return a JSON response including the Check Point error message. If you look at that you will probably have a better idea what the problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I implement this in my module I may find out if there are any tricks, and let you know, as the API documentation is not 100% for some calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 21:24:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6367#M548</guid>
      <dc:creator>Tim_Koopman</dc:creator>
      <dc:date>2017-09-25T21:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6368#M549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually got time today so I have added the commands you are trying to use to v0.5.2 of psCheckPoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for tricks while using run-script. What you have looks good as long as the gateway "test-gateway" exists. That said this is one of the commands that the official documentations is incorrect for the response, and even what is mandatory or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PowerShell command for run-script in psCheckPoint is Invoke-CheckPointScript.&lt;/P&gt;&lt;P&gt;I also implemented Get-CheckPointTask so that you can view the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 07:25:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6368#M549</guid>
      <dc:creator>Tim_Koopman</dc:creator>
      <dc:date>2017-09-26T07:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6369#M550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; The API is definitely enabled, I enabled it a couple of weeks ago and have double checked it.&amp;nbsp; I'm able to successfully call &lt;STRONG&gt;login&lt;/STRONG&gt; and &lt;STRONG&gt;show-simple-gateways&lt;/STRONG&gt; without any issues, and I can use/parse the results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; I double checked this as well, and I'm currently allowing any IP address to hit the API URL (this is a sandbox environment that will eventually be torn down).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;This is a Windows environment.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; I actually downloaded postman (the standalone install, not the browser plugin)&amp;nbsp;last week while I was troubleshooting, along with the&amp;nbsp;R80 collection that someone had been kind enough to put together.&amp;nbsp; Whenever I make a post call though, the HTML response that I get back is as follows: &lt;STRONG&gt;For full functionality of this site it is necessary to enable JavaScript&lt;/STRONG&gt;.&amp;nbsp; I tried searching through their documentation but hit a wall, and figured I'd revisit it this week.&amp;nbsp; Downloading the browser plugin isn't an option, as any third party plugins will require an AD Group Policy update.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; I work pretty much exclusively with PowerShell.&amp;nbsp; I was a Windows engineer in a previous life and still enjoy automating as much as I can with it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not even sure it's a code issue at this point though, it might be environmental.&amp;nbsp; On Thursday I started using the mgmt_cli executable, just to see if I could get different results, but I'm running into the same issues.&amp;nbsp; I tried calling install_policy, but kept getting errors that it couldn't find the policy I was specifying (even though I know it was present, and yes the changes have been published).&amp;nbsp; When I call&lt;STRONG&gt; show packages&lt;/STRONG&gt; from the command line utility within SmartConsole, it returns all of the packages, as I'd expect.&amp;nbsp; When I call it from the API though (either mgmt-cli or the web API), it returns 0 results.&amp;nbsp; This is very similar to the issue I encountered with run-script, where it told me that it couldn't find the gateway, even though I know for a fact it was present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From the command line utility within SmartConsole R80.10:&lt;/STRONG&gt;&lt;BR /&gt;&amp;gt; show packages&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;packages: &lt;BR /&gt;- uid: "d947d97e-ae4e-464e-a54b-9d98e01652a7"&lt;BR /&gt;&amp;nbsp; name: "ryanstestpolicy"&lt;BR /&gt;&amp;nbsp; type: "package"&lt;BR /&gt;&amp;nbsp; domain: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uid: "a1327ee7-7a28-460d-9218-f3f7bbb10360"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "FWM-Ryan_API_Testing"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain-type: "domain"&lt;BR /&gt;- uid: "188efd13-6d5c-42a5-a3c7-d8f6bcdb4757"&lt;BR /&gt;&amp;nbsp; name: "Standard"&lt;BR /&gt;&amp;nbsp; type: "package"&lt;BR /&gt;&amp;nbsp; domain: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uid: "a1327ee7-7a28-460d-9218-f3f7bbb10360"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "FWM-Ryan_API_Testing"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; domain-type: "domain"&lt;BR /&gt;from: 1&lt;BR /&gt;to: 2&lt;BR /&gt;total: 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From mgmt_cli on my PC (win 7)&lt;/STRONG&gt;&lt;BR /&gt;mgmt_cli -m 10.X.X.X login user xxxxxxx password yyyyyyy&lt;BR /&gt;uid: "a580bd6f-5592-4672-b54e-a90e21ce2673"&lt;BR /&gt;sid: "QwHu86GAN-ybL5s6NSIHD6DkC-0rUvGIGkrDg1E-g6U"&lt;BR /&gt;url: &lt;A href="https://10.X.X.X:443/web_api"&gt;https://10.X.X.X:443/web_api&lt;/A&gt;&lt;BR /&gt;session-timeout: 600&lt;BR /&gt;last-login-was-at:&lt;BR /&gt;&amp;nbsp; posix: 1506014982363&lt;BR /&gt;&amp;nbsp; iso-8601: "2017-09-21T13:29-0400"&lt;BR /&gt;api-server-version: "1.1"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;mgmt_cli -m 10.X.X.X --session-id QwHu86GAN-ybL5s6NSIHD6DkC-0rUvGIGkrDg1E-g6U show packages&lt;BR /&gt;packages: []&lt;BR /&gt;total: 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 17:47:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6369#M550</guid>
      <dc:creator>Ryan_Pitman</dc:creator>
      <dc:date>2017-09-26T17:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6370#M551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tim - I will look into these.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 17:49:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6370#M551</guid>
      <dc:creator>Ryan_Pitman</dc:creator>
      <dc:date>2017-09-26T17:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6371#M552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your answer to #2 concerns me - I think you need to review the privileges&amp;nbsp;in SmartConsole -&amp;gt; Manage &amp;amp; Settings -&amp;gt;Permissions &amp;amp; Administrators -&amp;gt; Administrators for any restrictions and check trusted Clients to be sure Any is the only setting - for instance. Then if no issues there - check under&amp;nbsp;&lt;SPAN&gt;SmartConsole -&amp;gt; Manage &amp;amp; Settings -&amp;gt; Blades -&amp;gt; Management API and confirm that your windows machine is in the community of All IP Addresses that can be ... or just All IP Addresses. There may be something cludgey - that is why I am suggesting you verify theses things - because basically I suspect you are getting an Access Denied -&amp;nbsp;due to the machine you are accessing from. Since the code works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If no issue - there may be other issues but keep it simple 1st.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 18:23:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6371#M552</guid>
      <dc:creator>Charles_Currier</dc:creator>
      <dc:date>2017-09-26T18:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6372#M553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The account that I'm using is a multi domain super user.&amp;nbsp; It's a local account that I created, and I'm able to call the API to run other commands without any issues (add host, show simple gateways, etc).&amp;nbsp; The Management API settings are set to accept API calls from "All IP addresses."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 13:02:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6372#M553</guid>
      <dc:creator>Ryan_Pitman</dc:creator>
      <dc:date>2017-09-27T13:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6373#M554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need to define the domain in your session login:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;$creds_hash = @{"user"="admin";"password"="xxxxxx","domain"="domainname"}&lt;BR /&gt;or as in the&amp;nbsp; API v1.1 Reference&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="" style="color: #191919; background: #efefef; border: 0px none; margin: 0px 0px 10px; padding: 9.5px;"&gt;POST {{server}}/login Content-Type: application/json&amp;nbsp; {&amp;nbsp;&amp;nbsp; "user" : "aa",&amp;nbsp;&amp;nbsp; "password" : "aaaa",&amp;nbsp;&amp;nbsp; "domain" : "Domain Name" }&lt;/PRE&gt;&lt;P&gt;Hope that clears it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 20:58:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6373#M554</guid>
      <dc:creator>Charles_Currier</dc:creator>
      <dc:date>2017-10-02T20:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6374#M555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That fixed it.&amp;nbsp; Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 13:43:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6374#M555</guid>
      <dc:creator>Ryan_Pitman</dc:creator>
      <dc:date>2017-10-03T13:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Web API issues with run-script and install-policy from PowerShell in R80.10</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6375#M556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to have helped and happy to see that you stuck with this !&lt;/P&gt;&lt;P&gt;Keep posting !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 21:17:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-issues-with-run-script-and-install-policy-from/m-p/6375#M556</guid>
      <dc:creator>Charles_Currier</dc:creator>
      <dc:date>2017-10-03T21:17:27Z</dc:date>
    </item>
  </channel>
</rss>

