06-02-2020 07:14 PM
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.
06-02-2020 08:48 PM
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.
06-02-2020 08:48 PM
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.
06-02-2020 10:49 PM
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.
06-02-2020 11:45 PM
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?
06-03-2020 12:54 AM
that's what i'm thinking. So, I'm guessing that documentation listed all the available value that I can use.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide