I'm referencing to this document https://developer.cisco.com/meraki/api/#!get-device-switch-port and found that the script is using SerialNumber as argument to print the result. What other variables can I use to achieve this?
I would like to use device hostname but I don't see the documentation for this, so how would I know what are the variables I can use?
Solved! Go to solution.
If you want to do that I would first of all use:
https://developer.cisco.com/meraki/api/#!get-organization-inventory
Then grab the serial number of the device name you are interested in, and then call get-device-switch-port.
If you want to do that I would first of all use:
https://developer.cisco.com/meraki/api/#!get-organization-inventory
Then grab the serial number of the device name you are interested in, and then call get-device-switch-port.
I was wondering that's the full documentation for python library?
For example, method dashboard.switch_ports.updateDeviceSwitchPort is using arguments (serial, number) so does it means that there're only 2 value under updateDeviceSwitchPort?
I would like to know what other values I can use under updateDeviceSwitchPort.
You need to be able to uniquely identify the device you are working with. That's why you need the serialnumber.
Imagine, you have access to multiple organizations, each with a main switch that's called HX-Sw1. How would you then be able to distginguish between devices, when matching on the hostname?
that's what i'm thinking. So, I'm guessing that documentation listed all the available value that I can use.