cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4826
Views
1
Helpful
4
Replies

limited Meraki Python Library

chinpohpang851
Level 3
Level 3

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

Accepted Solutions

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

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

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

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?

#########
LinkedIn ::: https://blog.rhbirkelund.dk/
Like what you see? - Mark as helpful ## Did it answer your question? - Mark it as a Solution 🙂
All code examples are provided as is. Responsibility for Code execution is solely your own.

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