beginer for API

Scott_CC
Here to help

beginer for API

Hello

I have enough network knowledge and Meraki dashboard experience for dashboard UI process.

Because of SDWAN enroll, I have large setup task. So I need the skill for automation.

But I found below course don't help me. It more like a quick guide use for developer but I am not developer.

Meraki APIs Using Node-RED

It don't have sample for one of below topic.

  1. create network like build-in tools Bulk network creation.
  2. update device IP and relate information.
  3. change MX subnet
  4. update device address.
  5. move device
  6. delete device or network
  7. claim device or unclaim device.

May you please guide me how to learn relate knowledge? Any document, guide and sample are welcome.

Python open to learn. I have a Python book, but it also don't have sample for my request.

Thanks for your help.

Best Regards

Scott

 

6 Replies 6
rhbirkelund
Kind of a big deal
Kind of a big deal

Before jumping out into the Meraki API, you might want to consider getting the python basics first.

My employer ran an internal python course where part of it, was going through this Coursera course on Python.

I found it okay, although I already had been doing some stuff in Python.

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.
Scott_CC
Here to help

Hello

when I follow https://developer.cisco.com/meraki/ to get Org, I get below error.

ERROR > organizations, getOrganizations - 401 Unauthorized, {'errors': ['Invalid API key']}

I think I should set URL to properly region. May you please advise how to define URL?

Thank you.

 

Best Regards.

Scott Gao

PhilipDAth
Kind of a big deal
Kind of a big deal

You could also look at third-party commercial tools like Boundless Digital.
https://www.boundlessdigital.com/network-management/meraki-automation/ 

Scott_CC
Here to help

Hello Philip

when I follow https://developer.cisco.com/meraki/ to get Org, I get below error.

ERROR > organizations, getOrganizations - 401 Unauthorized, {'errors': ['Invalid API key']}

I think I should set URL to properly region. May you please advise how to define URL?

Thank you.

 

Best Regards.

Scott Gao

alemabrahao
Kind of a big deal
Kind of a big deal

Have you already enabled API usage and generated the API key?

https://documentation.meraki.com/General_Administration/Other_Topics/Cisco_Meraki_Dashboard_API

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Scott_CC
Here to help

Hello

I success by below code for my first query.

Thank you.

base_url = 'https://api.meraki.cn/api/v1'
API_KEY = "****************"
import meraki
dashboard = meraki.DashboardAPI(API_KEY,base_url)
response = dashboard.organizations.getOrganizations()
print(response)

Get notified when there are additional replies to this discussion.