HI All,
my first time here, hello everyone 🙂
i am reaching out to the community to get help on the following powershell syntax that is causing me a sight headache. i just want to get very basic information and take it from there but getting some errors. i have used snippets found from here: https://github.com/ronfowler/merakiapi
code:
$merakiAPI = "https://dashboard.meraki.com/api/v0"
$headers = @{
"X-Cisco-Meraki-API-Key" = "XXXXX"
"Content-Type" = "application/json"
}
$uriStem = "/organizations"
$uri = "$($merakiAPI)$($uriStem)"
#Write-Host "GET - $($uri)"
$response = Invoke-WebRequest -Method Get -Uri $uri -Headers $headers
Error:
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
any idea what i am doing incorrectly here any help would be awesome 🙂
thank you in advance,
Dan