<?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 Limited search in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/limited-search/m-p/5445240#M7047</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am doing a search of all my MDM devices associated with a network.&lt;/P&gt;&lt;P&gt;I have more than 1000 devices associated but the API only lets me see 1000. Is there a way to remove this restriction?&lt;/P&gt;&lt;P&gt;$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"&lt;BR /&gt;$headers.Add("X-Cisco-Meraki-API-Key", $API_key)&lt;/P&gt;&lt;P&gt;$response = Invoke-RestMethod "&lt;A href="https://api-mp.meraki.com/api/v1/networks/${Net_ID}/sm/devices?perPage=1000" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api-mp.meraki.com/api/v1/networks/${Net_ID}/sm/devices?perPage=1000&lt;/A&gt;" -Method 'GET' -Headers $headers -Body $body&lt;BR /&gt;return $response&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 10:26:40 GMT</pubDate>
    <dc:creator>Kenneth_rf</dc:creator>
    <dc:date>2020-11-16T10:26:40Z</dc:date>
    <item>
      <title>Limited search</title>
      <link>https://community.cisco.com/t5/network-platform-api/limited-search/m-p/5445240#M7047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am doing a search of all my MDM devices associated with a network.&lt;/P&gt;&lt;P&gt;I have more than 1000 devices associated but the API only lets me see 1000. Is there a way to remove this restriction?&lt;/P&gt;&lt;P&gt;$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"&lt;BR /&gt;$headers.Add("X-Cisco-Meraki-API-Key", $API_key)&lt;/P&gt;&lt;P&gt;$response = Invoke-RestMethod "&lt;A href="https://api-mp.meraki.com/api/v1/networks/${Net_ID}/sm/devices?perPage=1000" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api-mp.meraki.com/api/v1/networks/${Net_ID}/sm/devices?perPage=1000&lt;/A&gt;" -Method 'GET' -Headers $headers -Body $body&lt;BR /&gt;return $response&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 10:26:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/limited-search/m-p/5445240#M7047</guid>
      <dc:creator>Kenneth_rf</dc:creator>
      <dc:date>2020-11-16T10:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Limited search</title>
      <link>https://community.cisco.com/t5/network-platform-api/limited-search/m-p/5445241#M7048</link>
      <description>&lt;P&gt;That retrieves the first "page" of 1,000 entries.  Then you call it again with the startingAfter/endingBefore parameters.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/#!get-network-sm-devices" target="_self" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/#!get-network-sm-devices&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 14:39:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/limited-search/m-p/5445241#M7048</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2020-11-16T14:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Limited search</title>
      <link>https://community.cisco.com/t5/network-platform-api/limited-search/m-p/5445242#M7049</link>
      <description>&lt;P&gt;Thank you for the information. But I don't understand from where I can get this token to do the filter.&lt;BR /&gt;For example in my network I have 2000 clients, so how do I define the filter to see all the devices if the perPage option has a limitation&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 12:21:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/limited-search/m-p/5445242#M7049</guid>
      <dc:creator>Kenneth_rf</dc:creator>
      <dc:date>2020-11-20T12:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Limited search</title>
      <link>https://community.cisco.com/t5/network-platform-api/limited-search/m-p/5445243#M7050</link>
      <description>&lt;P&gt;Limiting the number of items returned in an API is normal, and common, as otherwise you could end up making a call that takes a long time to process, and returns a huge amount of data. The most you can return in this instance is 1,000 devices, and then you have to make a second call, with appropriate pagination details, to get the next 1,000 and so on.&lt;/P&gt;&lt;P&gt;More detail on how pagination works within the API can be found here &lt;A href="https://developer.cisco.com/meraki/api-v1/#!pagination/how-does-pagination-work-in-the-dashboard-api" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/#!pagination/how-does-pagination-work-in-the-dashboard-api&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 21:56:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/limited-search/m-p/5445243#M7050</guid>
      <dc:creator>BRUCE NEWTON</dc:creator>
      <dc:date>2020-11-20T21:56:46Z</dc:date>
    </item>
  </channel>
</rss>

