<?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 Am I using the Dashboard API correctly? in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414790#M2627</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Meraki and to the Dashboard API. I am trying to ascertain whether I am using the Dashboard API correctly or not. I need to get the status of all access points and switches in an organization. Currently this is how I approach it:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Request status for every device in the organization (API: &lt;SPAN&gt;&lt;A href="https://api.meraki.com/api/v0/organizations/***/deviceStatuses" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v0/organizations/***/deviceStatuses&lt;/A&gt;&lt;/SPAN&gt;).&lt;/LI&gt;&lt;LI&gt;Iterate over each device and request additional device details (&lt;SPAN&gt;&lt;A href="https://api.meraki.com/api/v0/networks/***/devices/***" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v0/networks/***/devices/***&lt;/A&gt;&lt;/SPAN&gt;).&lt;/LI&gt;&lt;LI&gt;Iterate over the device details, using the device's model name to group the devices into groups eg. all devices with a model name starting with "MR" belongs to the Access Point group, all devices starting with "MS" belongs to the switches group and so on.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have two questions to the above approach:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is there a better way than getting all the devices via the &lt;SPAN&gt;deviceStatuses endpoint and then requesting each device's details? It results in a lot of requests and I am concerned that I will quickly reach the API's max request limit - 5 calls pr second.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is there a better way to identify a device type (eg access point, switch etc) other than looking at the device's model name?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bjørn&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 08:38:04 GMT</pubDate>
    <dc:creator>Fridal</dc:creator>
    <dc:date>2019-01-07T08:38:04Z</dc:date>
    <item>
      <title>Am I using the Dashboard API correctly?</title>
      <link>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414790#M2627</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Meraki and to the Dashboard API. I am trying to ascertain whether I am using the Dashboard API correctly or not. I need to get the status of all access points and switches in an organization. Currently this is how I approach it:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Request status for every device in the organization (API: &lt;SPAN&gt;&lt;A href="https://api.meraki.com/api/v0/organizations/***/deviceStatuses" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v0/organizations/***/deviceStatuses&lt;/A&gt;&lt;/SPAN&gt;).&lt;/LI&gt;&lt;LI&gt;Iterate over each device and request additional device details (&lt;SPAN&gt;&lt;A href="https://api.meraki.com/api/v0/networks/***/devices/***" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v0/networks/***/devices/***&lt;/A&gt;&lt;/SPAN&gt;).&lt;/LI&gt;&lt;LI&gt;Iterate over the device details, using the device's model name to group the devices into groups eg. all devices with a model name starting with "MR" belongs to the Access Point group, all devices starting with "MS" belongs to the switches group and so on.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have two questions to the above approach:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is there a better way than getting all the devices via the &lt;SPAN&gt;deviceStatuses endpoint and then requesting each device's details? It results in a lot of requests and I am concerned that I will quickly reach the API's max request limit - 5 calls pr second.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is there a better way to identify a device type (eg access point, switch etc) other than looking at the device's model name?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bjørn&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 08:38:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414790#M2627</guid>
      <dc:creator>Fridal</dc:creator>
      <dc:date>2019-01-07T08:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the Dashboard API correctly?</title>
      <link>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414791#M2628</link>
      <description>&lt;P&gt;In cases like this, your only option is to make a lot of separate API calls.  To avoid the API request limit, you can use a rate limiter.  For example, I sometimes use the throttled-request package with Node.js.&lt;/P&gt;&lt;P&gt;Remember that the rate limit applies at the organization level.  If you have any other integrations or tasks using the API, you need to consider the total usage.&lt;/P&gt;&lt;P&gt;Using the first two letters of the model to determine the device type seems good enough for now.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 12:59:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414791#M2628</guid>
      <dc:creator>hody.crouch</dc:creator>
      <dc:date>2019-01-07T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the Dashboard API correctly?</title>
      <link>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414792#M2629</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for confirming my approach. I already have a throttler in mind, though the API rate limit still concerns me. I don't want to end up with a slow responding application.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bjørn</description>
      <pubDate>Mon, 07 Jan 2019 13:27:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414792#M2629</guid>
      <dc:creator>Fridal</dc:creator>
      <dc:date>2019-01-07T13:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the Dashboard API correctly?</title>
      <link>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414793#M2630</link>
      <description>&lt;P&gt;Once you've got your initial status of devices, if you are then looking for alerts on those devices you could look at using Webhooks (&lt;A href="https://documentation.meraki.com/zGeneral_Administration/Other_Topics/Webhooks" target="_self" rel="nofollow noopener noreferrer"&gt;https://documentation.meraki.com/zGeneral_Administration/Other_Topics/Webhooks&lt;/A&gt;) so that you don't exceed the API rate limit - just depends on what the goal of your solution is.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 00:40:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414793#M2630</guid>
      <dc:creator>BRUCE NEWTON</dc:creator>
      <dc:date>2019-01-08T00:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the Dashboard API correctly?</title>
      <link>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414794#M2631</link>
      <description>Hi Bruce,&lt;BR /&gt;&lt;BR /&gt;That's a good idea! I am building a dashboard that shows the status of certain Meraki devices. The dashboard should always stay open. so instead of requesting a new status for the devices every few minute, I might be able to use webhooks to report back if anything changes.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bjørn</description>
      <pubDate>Tue, 08 Jan 2019 11:49:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/am-i-using-the-dashboard-api-correctly/m-p/5414794#M2631</guid>
      <dc:creator>Fridal</dc:creator>
      <dc:date>2019-01-08T11:49:06Z</dc:date>
    </item>
  </channel>
</rss>

