<?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: Serial Number not working - 404? in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/serial-number-not-working-404/m-p/5420367#M3292</link>
    <description>&lt;P&gt;It still looks like a wrong/non-existing SN to me. To narrow down this, first, ensure you have the right network permission(which I assume you already have as you can get the organization list). Then try the below curl command to rule out any library issues. &lt;/P&gt;&lt;P&gt;curl -L --request GET \&lt;BR /&gt;--url &lt;A href="https://api.meraki.com/api/v1/devices/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/devices/&lt;/A&gt;&lt;STRONG&gt;[YOUR SERIAL NUMBER]&lt;/STRONG&gt; \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--header 'Accept: application/json' \&lt;BR /&gt;--header 'X-Cisco-Meraki-API-Key: &lt;STRONG&gt;[YOUR API KEY]&lt;/STRONG&gt;'&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 06:58:39 GMT</pubDate>
    <dc:creator>xiaoyhu</dc:creator>
    <dc:date>2022-08-19T06:58:39Z</dc:date>
    <item>
      <title>Serial Number not working - 404?</title>
      <link>https://community.cisco.com/t5/network-platform-api/serial-number-not-working-404/m-p/5420366#M3291</link>
      <description>&lt;P&gt;I'm using the meraki-cli project. My end goal is to monitor latency, but getting a 404 error. I can run meraki organizations getOrganizations, and I get valid return information. When I attempt to get device information though I'm getting a 404. Here is an example command meraki devices getDevice --serial 'mySerialNumber'. I have triple checked mySerialNumber matches the serial number listed matches my mx device serial number as listed in the Meraki dashboard Organization - Inventory. Any pointers?&lt;/P&gt;&lt;P&gt;Please note the serial number is in the format 1111-2222-3333. I've attempted removing the dashes but get the same errors(e.g. 111122223333)...&lt;/P&gt;&lt;P&gt;The errors I'm getting back are below.&lt;/P&gt;&lt;P&gt;2022-08-18 17:28:50,944 [INFO ] Target method is &amp;lt;bound method Devices.getDevice of &amp;lt;meraki.api.devices.Devices object at 0x7f5e00d1aa70&amp;gt;&amp;gt;&lt;BR /&gt;2022-08-18 17:28:50,944 [INFO ] No STDIN detected. No pipe behind this instance.&lt;BR /&gt;2022-08-18 17:28:50,945 [INFO ] Calling target method with:&lt;BR /&gt;2022-08-18 17:28:50,945 [INFO ] *Positionals: ['mySerialNumber']&lt;BR /&gt;2022-08-18 17:28:50,945 [INFO ] **Named/Kwargs: {}&lt;BR /&gt;2022-08-18 17:28:52,760 [ERROR] devices, getDevice - 404 Not Found, b' '&lt;BR /&gt;2022-08-18 17:28:52,760 [CRITI] An error occured in command execution, enable debugging to see more detail&lt;BR /&gt;2022-08-18 17:28:52,760 [CRITI] An exception was thrown and is logged below&lt;BR /&gt;2022-08-18 17:28:52,761 [ERROR] devices, getDevice - 404 Not Found, please wait a minute if the key or org was just newly created.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/eddie/.local/lib/python3.10/site-packages/meraki_cli/__main__.py", line 1314, in main&lt;BR /&gt;result = arg_obj.method(*positionals, **arg_dict)&lt;BR /&gt;File "/home/eddie/.local/lib/python3.10/site-packages/meraki/api/devices.py", line 26, in getDevice&lt;BR /&gt;return self._session.get(metadata, resource)&lt;BR /&gt;File "/home/eddie/.local/lib/python3.10/site-packages/meraki/rest_session.py", line 283, in get&lt;BR /&gt;response = self.request(metadata, 'GET', url, params=params)&lt;BR /&gt;File "/home/eddie/.local/lib/python3.10/site-packages/meraki/rest_session.py", line 277, in request&lt;BR /&gt;raise APIError(metadata, response)&lt;BR /&gt;meraki.exceptions.APIError: devices, getDevice - 404 Not Found, please wait a minute if the key or org was just newly created.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 00:32:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/serial-number-not-working-404/m-p/5420366#M3291</guid>
      <dc:creator>dawydiuk</dc:creator>
      <dc:date>2022-08-19T00:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Number not working - 404?</title>
      <link>https://community.cisco.com/t5/network-platform-api/serial-number-not-working-404/m-p/5420367#M3292</link>
      <description>&lt;P&gt;It still looks like a wrong/non-existing SN to me. To narrow down this, first, ensure you have the right network permission(which I assume you already have as you can get the organization list). Then try the below curl command to rule out any library issues. &lt;/P&gt;&lt;P&gt;curl -L --request GET \&lt;BR /&gt;--url &lt;A href="https://api.meraki.com/api/v1/devices/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/devices/&lt;/A&gt;&lt;STRONG&gt;[YOUR SERIAL NUMBER]&lt;/STRONG&gt; \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--header 'Accept: application/json' \&lt;BR /&gt;--header 'X-Cisco-Meraki-API-Key: &lt;STRONG&gt;[YOUR API KEY]&lt;/STRONG&gt;'&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 06:58:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/serial-number-not-working-404/m-p/5420367#M3292</guid>
      <dc:creator>xiaoyhu</dc:creator>
      <dc:date>2022-08-19T06:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Number not working - 404?</title>
      <link>https://community.cisco.com/t5/network-platform-api/serial-number-not-working-404/m-p/5420368#M3293</link>
      <description>&lt;P&gt;Thanks that worked, so I went back to the meraki-cli and by running the exact same command and not changing anything it worked... Not sure what to think but it's working today, thanks &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 13:30:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/serial-number-not-working-404/m-p/5420368#M3293</guid>
      <dc:creator>dawydiuk</dc:creator>
      <dc:date>2022-08-19T13:30:08Z</dc:date>
    </item>
  </channel>
</rss>

