<?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: Powershell Error using GET request: Cannot connect to remote server in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446969#M7324</link>
    <description>&lt;P&gt;Thank you both for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2023 01:36:23 GMT</pubDate>
    <dc:creator>Ishcob</dc:creator>
    <dc:date>2023-09-29T01:36:23Z</dc:date>
    <item>
      <title>Powershell Error using GET request: Cannot connect to remote server</title>
      <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446961#M7316</link>
      <description>&lt;P&gt;This is based on the Postman documentation and some other stuff I saw online.  I am able to use the same API key and uri to perform a get through Postman. &lt;/P&gt;&lt;P&gt;For automation reasons I would like to use Powershell.  This is a piece of a bigger script that generates a random password and makes an update using a PUT.  I have simplified it to what is seen below in the screenshot (including making it a GET) to make it easier to diagnose (hopefully).&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="api err.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263175iAB6AC29BE45662E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also, if the uri has https, then do I need the tls1.2 line (line 3)?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 19:17:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446961#M7316</guid>
      <dc:creator>Ishcob</dc:creator>
      <dc:date>2023-09-27T19:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Error using GET request: Cannot connect to remote server</title>
      <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446962#M7317</link>
      <description>&lt;P&gt;This appears to be a fundamental issue, it is saying it is unable to connect to &lt;A href="https://api.meraki.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can I web browser on that machine connect?  When I try I get redirected to the Meraki dashboard login (so this should happen for you as well).&lt;/P&gt;&lt;P&gt;You don't have an internal proxy server or something you need to use to connect to the Internet?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 20:46:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446962#M7317</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2023-09-27T20:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Error using GET request: Cannot connect to remote server</title>
      <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446963#M7318</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;api.meraki.com redirects to the dashboard from a browser on the same machine. &lt;/P&gt;&lt;P&gt;I don't believe there is a proxy.  The same operation can be done from Postman, but powershell gives the error shown prior. &lt;/P&gt;&lt;P&gt;I also tried using nXXX.meraki.com through powershell (just to try other things) and it was unsuccessful as well (with the same error).&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 22:07:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446963#M7318</guid>
      <dc:creator>Ishcob</dc:creator>
      <dc:date>2023-09-27T22:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Error using GET request: Cannot connect to remote server</title>
      <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446964#M7319</link>
      <description>&lt;P&gt;Are you able to make a request to google.com?  (aka, prove you can access something else on the Internet)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 22:22:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446964#M7319</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2023-09-27T22:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Error using GET request: Cannot connect to remote server</title>
      <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446965#M7320</link>
      <description>&lt;P&gt;I personally haven't set the TLS version in my scripts.&lt;BR /&gt;Not sure whether that would cause a problem or not.&lt;BR /&gt;&lt;BR /&gt;As &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/340"&gt;@Philip D'Ath&lt;/A&gt; mentioned - the error could be indicating a connection problem to the API backend.&lt;/P&gt;&lt;P&gt;For reference, this is a script that I use quite frequently without issue.&lt;BR /&gt;&lt;A href="https://github.com/Brash92/Meraki/blob/main/Meraki%20Update%20Switchports.ps1" target="_blank" rel="nofollow noopener noreferrer"&gt;Meraki/Meraki Update Switchports.ps1 at main · Brash92/Meraki (github.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 23:10:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446965#M7320</guid>
      <dc:creator>Brash</dc:creator>
      <dc:date>2023-09-27T23:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Error using GET request: Cannot connect to remote server</title>
      <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446966#M7321</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="web err.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263177i3F0E7D0CE201B2EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is this sufficient.  Maybe powershell is blocked by something?  Not sure if my syntax is even correct.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 00:45:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446966#M7321</guid>
      <dc:creator>Ishcob</dc:creator>
      <dc:date>2023-09-28T00:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Error using GET request: Cannot connect to remote server</title>
      <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446967#M7322</link>
      <description>&lt;P&gt;Your syntax is right.&lt;BR /&gt;That should give you back an HTTP 200 along with some other data.&lt;BR /&gt;&lt;BR /&gt;It definitely seems like the connection is getting blocked somewhere.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 01:09:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446967#M7322</guid>
      <dc:creator>Brash</dc:creator>
      <dc:date>2023-09-28T01:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Error using GET request: Cannot connect to remote server</title>
      <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446968#M7323</link>
      <description>&lt;P&gt;Yeah, Powershell was blocked by CarbonBlack.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 01:35:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446968#M7323</guid>
      <dc:creator>Ishcob</dc:creator>
      <dc:date>2023-09-29T01:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Error using GET request: Cannot connect to remote server</title>
      <link>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446969#M7324</link>
      <description>&lt;P&gt;Thank you both for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 01:36:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/powershell-error-using-get-request-cannot-connect-to-remote/m-p/5446969#M7324</guid>
      <dc:creator>Ishcob</dc:creator>
      <dc:date>2023-09-29T01:36:23Z</dc:date>
    </item>
  </channel>
</rss>

