I have written Python code using the "meraki" Python package and it's working great. I just ran into an issue where my code attempted to add MR devices to a "Switch Only" network. This got me thinking that along with the serial number format validation regex I'm using, r'([A-Z0-9]{4}-){2}([A-Z0-9]{4})\b', I'd like to identify the "Device Type" with ReGex as well. This way if I have a network that's not "Combined" and I try to add a new device I will know prior to getting the reject message. I've looked on the Cisco DevNet site and API documentation and can't seem to find an official listing of how the first four (4) characters of the serial number Identify the device type. Someone posted this here, but it's pretty old.
https://community.meraki.com/t5/Security-SD-WAN/Serial-Number-Lookup/m-p/46655#M11682
I would think that Meraki would have a table listed somewhere, but can't seem to find it.
Thanks for any help,
Todd
youtube.com/@toddomation