cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

limited Meraki Python Library

SOLVED
Highlighted
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

Accepted Solutions
Highlighted
Kind of a big deal

Re: limited Meraki Python Library

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
Highlighted
Kind of a big deal

Re: limited Meraki Python Library

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

Comes here often

Re: limited Meraki Python Library

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.

Highlighted
A model citizen

Re: limited Meraki Python Library

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?

Highlighted
Comes here often

Re: limited Meraki Python Library

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

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.