Error with API call getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork

Ozzyraven
Just browsing

Error with API call getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork

Hello,

 

I am having some serious trouble getting the vpn exclusion rules for a single network or few in my organization.

I keep getting the error networkIds must be an array and I have tried any suggestion I have found to fix with no better results.

 

I am regularly using v1 and postman API v1.58, your help would be appreciated.

 

See example below:

 

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Accept", "application/json")
$headers.Add("Authorization", "••••••")

$response = Invoke-RestMethod 'https://api.meraki.com/api/v1/organizations/0198272/appliance/trafficShaping/vpnExclusions/byNetwork...', 'L_00011222'] ' -Method 'GET' -Headers $headers
$response | ConvertTo-Json
2 Replies 2
Oren
Meraki Employee
Meraki Employee

Arrays in REST calls have an annoying syntax. Did you try this?

RaphaelL
Kind of a big deal
Kind of a big deal

networkIds[]=xxxxxxxxx  should be the parameter

Get notified when there are additional replies to this discussion.