<?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: Error with API call getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407296#M1463</link>
    <description>&lt;P&gt;Hello, thank you. that worked perfectly. here is the code that worked for me for reference&lt;/P&gt;&lt;P&gt;# Set up headers correctly for Meraki API authentication&lt;BR /&gt;$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"&lt;BR /&gt;$headers.Add("Content-Type", "application/json")&lt;BR /&gt;$headers.Add("Accept", "application/json")&lt;BR /&gt;$headers.Add("X-Cisco-Meraki-API-Key", "YOURAPIKEY") # Replace with actual API key&lt;/P&gt;&lt;P&gt;# Define the API URL with proper query parameters&lt;BR /&gt;$networkId = "L_XXXX"&lt;BR /&gt;$organizationId = "XXXXXX"&lt;BR /&gt;$apiUrl = "&lt;A href="https://api.meraki.com/api/v1/organizations/$organizationId/appliance/trafficShaping/vpnExclusions/byNetwork?networkIds[]=$networkId" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/organizations/$organizationId/appliance/trafficShaping/vpnExclusions/byNetwork?networkIds[]=$networkId&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;# Make the GET request&lt;BR /&gt;try {&lt;BR /&gt;$response = Invoke-RestMethod -Uri $apiUrl -Method 'GET' -Headers $headers&lt;BR /&gt;$response | ConvertTo-Json -Depth 3 # Convert response to JSON format for readability&lt;BR /&gt;} catch {&lt;BR /&gt;Write-Host "Error occurred: $_"&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 21:35:41 GMT</pubDate>
    <dc:creator>uvega</dc:creator>
    <dc:date>2025-05-15T21:35:41Z</dc:date>
    <item>
      <title>Error with API call getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407293#M1460</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having some serious trouble getting the vpn exclusion rules for a single network or few in my organization.&lt;/P&gt;&lt;P&gt;I keep getting the error &lt;SPAN&gt;networkIds must be an array and I have tried any suggestion I have found to fix with no better results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am regularly using v1 and postman API v1.58, your help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;See example below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;SPAN&gt; = New-Object &lt;/SPAN&gt;&lt;SPAN&gt;"System.Collections.Generic.Dictionary[[String],[String]]"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;SPAN&gt;.Add(&lt;/SPAN&gt;&lt;SPAN&gt;"Accept"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"application/json"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;SPAN&gt;.Add(&lt;/SPAN&gt;&lt;SPAN&gt;"Authorization"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"••••••"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;$response&lt;/SPAN&gt;&lt;SPAN&gt; = Invoke-RestMethod &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.meraki.com/api/v1/organizations/0198272/appliance/trafficShaping/vpnExclusions/byNetwork?networkIds=['L_00011222" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/organizations/0198272/appliance/trafficShaping/vpnExclusions/byNetwork?networkIds=['L_00011222&lt;/A&gt;', 'L_00011222'] '&lt;/SPAN&gt;&lt;SPAN&gt; -Method &lt;/SPAN&gt;&lt;SPAN&gt;'GET'&lt;/SPAN&gt;&lt;SPAN&gt; -Headers &lt;/SPAN&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$response&lt;/SPAN&gt;&lt;SPAN&gt; | ConvertTo-Json&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 May 2025 21:05:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407293#M1460</guid>
      <dc:creator>uvega</dc:creator>
      <dc:date>2025-05-08T21:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error with API call getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407294#M1461</link>
      <description>&lt;P&gt;Arrays in REST calls have an annoying syntax. Did you try &lt;A href="https://developer.cisco.com/meraki/api-v1/query-parameters/#using-array-parameters" target="_blank" rel="noopener nofollow noreferrer"&gt;this&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 21:34:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407294#M1461</guid>
      <dc:creator>obrigg</dc:creator>
      <dc:date>2025-05-08T21:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error with API call getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407295#M1462</link>
      <description>&lt;P&gt;networkIds[]=xxxxxxxxx  should be the parameter&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 02:45:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407295#M1462</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2025-05-09T02:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error with API call getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407296#M1463</link>
      <description>&lt;P&gt;Hello, thank you. that worked perfectly. here is the code that worked for me for reference&lt;/P&gt;&lt;P&gt;# Set up headers correctly for Meraki API authentication&lt;BR /&gt;$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"&lt;BR /&gt;$headers.Add("Content-Type", "application/json")&lt;BR /&gt;$headers.Add("Accept", "application/json")&lt;BR /&gt;$headers.Add("X-Cisco-Meraki-API-Key", "YOURAPIKEY") # Replace with actual API key&lt;/P&gt;&lt;P&gt;# Define the API URL with proper query parameters&lt;BR /&gt;$networkId = "L_XXXX"&lt;BR /&gt;$organizationId = "XXXXXX"&lt;BR /&gt;$apiUrl = "&lt;A href="https://api.meraki.com/api/v1/organizations/$organizationId/appliance/trafficShaping/vpnExclusions/byNetwork?networkIds[]=$networkId" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/organizations/$organizationId/appliance/trafficShaping/vpnExclusions/byNetwork?networkIds[]=$networkId&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;# Make the GET request&lt;BR /&gt;try {&lt;BR /&gt;$response = Invoke-RestMethod -Uri $apiUrl -Method 'GET' -Headers $headers&lt;BR /&gt;$response | ConvertTo-Json -Depth 3 # Convert response to JSON format for readability&lt;BR /&gt;} catch {&lt;BR /&gt;Write-Host "Error occurred: $_"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 21:35:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407296#M1463</guid>
      <dc:creator>uvega</dc:creator>
      <dc:date>2025-05-15T21:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error with API call getOrganizationApplianceTrafficShapingVpnExclusionsByNetwork</title>
      <link>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407297#M1464</link>
      <description>&lt;P&gt;Well that was an annoying 30 mins. Thanks for the link.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 14:09:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/error-with-api-call/m-p/5407297#M1464</guid>
      <dc:creator>nicdc01</dc:creator>
      <dc:date>2025-11-05T14:09:02Z</dc:date>
    </item>
  </channel>
</rss>

