<?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: API scripting - Bulk creation and serial numbers in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448132#M7499</link>
    <description>&lt;P&gt;A device (serial number) can only exist in one org. If you attempt to claim a device serial into the network which you don't have in the org inventory, you'll receive an error:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px" style="padding-left : 30px;"&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"errors"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Device with serial Q234-ABCD-0001 not found"&lt;/SPAN&gt; &lt;SPAN class=""&gt;]&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;If you attempt to claim a serial already in the network:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px" style="padding-left : 30px;"&gt;&lt;SPAN class=""&gt;{ &lt;SPAN class=""&gt;"errors"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; [ &lt;SPAN class=""&gt;"Device with serial QXXV-FXXR-XXD7 is already claimed and in Test Network (network ID: L_9906373669455549372)"&lt;/SPAN&gt; ] }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Otherwise, success is just a 200, OK; success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The Meraki Dashboard will not allow you (or your API key) access to inventory that you don't have privileges for.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 13:27:31 GMT</pubDate>
    <dc:creator>dajirku</dc:creator>
    <dc:date>2023-10-11T13:27:31Z</dc:date>
    <item>
      <title>API scripting - Bulk creation and serial numbers</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448127#M7494</link>
      <description>&lt;P&gt;I was wondering if anyone could help. I am trying to write Python scripts. One of the scripts I am writing is to create networks. I can't seem to find any Meraki API code that would allow me to create networks and assign serial numbers to the newly created network (Meraki MX for SD-WAN). You can if you manually use Bulk network creator but this may be closed of by Meraki when it comes to scripting. Any help would be great.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 13:19:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448127#M7494</guid>
      <dc:creator>dan11</dc:creator>
      <dc:date>2023-10-10T13:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: API scripting - Bulk creation and serial numbers</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448128#M7495</link>
      <description>&lt;P&gt;Have you checked it?&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/meraki/automation-scripts" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/meraki/automation-scripts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 14:55:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448128#M7495</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2023-10-10T14:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: API scripting - Bulk creation and serial numbers</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448129#M7496</link>
      <description>&lt;P&gt;Thanks for the reply, but unfortunately it does not appear to have a create network, or update device with serial number. I can create networks with everything apart from the assigning serials of Meraki MX's to the network.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 20:09:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448129#M7496</guid>
      <dc:creator>dan11</dc:creator>
      <dc:date>2023-10-10T20:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: API scripting - Bulk creation and serial numbers</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448130#M7497</link>
      <description>&lt;P&gt;You can claim a device from inventory into a network using the following endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/claim-network-devices/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/claim-network-devices/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If they are not yet in inventory, you can use: &lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/claim-into-organization-inventory/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/claim-into-organization-inventory/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 20:51:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448130#M7497</guid>
      <dc:creator>dajirku</dc:creator>
      <dc:date>2023-10-10T20:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: API scripting - Bulk creation and serial numbers</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448131#M7498</link>
      <description>&lt;P&gt;Thanks David, I have seen that but here is my worry, and please correct me if I am wrong. When you run this code it simply asks for a NetworkID. Which is fine, but I have 3 organizations. How does it know which organization it is for and does this just pull from the Meraki database not the inventory ? Just worries me a little&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:52:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448131#M7498</guid>
      <dc:creator>dan11</dc:creator>
      <dc:date>2023-10-11T09:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: API scripting - Bulk creation and serial numbers</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448132#M7499</link>
      <description>&lt;P&gt;A device (serial number) can only exist in one org. If you attempt to claim a device serial into the network which you don't have in the org inventory, you'll receive an error:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px" style="padding-left : 30px;"&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"errors"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Device with serial Q234-ABCD-0001 not found"&lt;/SPAN&gt; &lt;SPAN class=""&gt;]&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;If you attempt to claim a serial already in the network:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px" style="padding-left : 30px;"&gt;&lt;SPAN class=""&gt;{ &lt;SPAN class=""&gt;"errors"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; [ &lt;SPAN class=""&gt;"Device with serial QXXV-FXXR-XXD7 is already claimed and in Test Network (network ID: L_9906373669455549372)"&lt;/SPAN&gt; ] }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Otherwise, success is just a 200, OK; success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The Meraki Dashboard will not allow you (or your API key) access to inventory that you don't have privileges for.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 13:27:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448132#M7499</guid>
      <dc:creator>dajirku</dc:creator>
      <dc:date>2023-10-11T13:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: API scripting - Bulk creation and serial numbers</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448133#M7500</link>
      <description>&lt;P&gt;Network IDs are globally unique, so org ID isn't needed.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 18:49:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448133#M7500</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2023-10-11T18:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: API scripting - Bulk creation and serial numbers</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448134#M7501</link>
      <description>&lt;P&gt;Funny story for you both, I was pulling and playing with the data and saw a network that was supposed to be in another organization pull through. I thought, Network_ID's must not be unique, only unique to the organization. Turns out, my work colleague was replicating the company in our lab so I was pulling through the correct one but it looked like the other. Thanks John and David for the advice. I am going to try all of the above today, much appreciated.  &lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 07:50:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-scripting-bulk-creation-and-serial-numbers/m-p/5448134#M7501</guid>
      <dc:creator>dan11</dc:creator>
      <dc:date>2023-10-12T07:50:44Z</dc:date>
    </item>
  </channel>
</rss>

