limited Meraki Python Library

SOLVED
morris
Comes here often

limited Meraki Python Library

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?

1 ACCEPTED SOLUTION
PhilipDAth
Kind of a big deal
Kind of a big deal

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.

View solution in original post

4 REPLIES 4
PhilipDAth
Kind of a big deal
Kind of a big deal

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.

rhbirkelund
Kind of a big deal

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?

LinkedIn ::: https://blog.rhbirkelund.dk/

Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution 🙂

All code examples are provided as is. Responsibility for Code execution lies solely your own.

that's what i'm thinking. So, I'm guessing that documentation listed all the available value that I can use.

Get notified when there are additional replies to this discussion.