- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cannot create network through Meraki Python API
Hi!
I'm trying to create a network within my organization through the python API but I get this message and I cannot figure why is this method not recognized as it is in the documentation.
I have tried to update my pip installer, and upgrade the meraki library but no better results.
I am creating/updating organizations well with my code but I cannot create a Network, and that is a problem.
Here is my code for the creation of network :
Thanks in advance for your answers!
Solved! Go to solution.
- Labels:
-
Code Sample
-
Dashboard API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello hcoq,
Nice method you got there!
I believe you're running into an error here because the call is dashboard.organizations instead of dashboard.networks (Naturally because we are creating this network at the org level).
Here's a link to the API endpoint:
https://developer.cisco.com/meraki/api-v1/#!create-organization-network
I may be getting ahead of myself here, but you may run into further errors because you seem to be inputting net_type and tags as strings but the expected input for this is a list. You can use the split() method to turn a string to a list.
Hope this helps, everything else looks great!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello hcoq,
Nice method you got there!
I believe you're running into an error here because the call is dashboard.organizations instead of dashboard.networks (Naturally because we are creating this network at the org level).
Here's a link to the API endpoint:
https://developer.cisco.com/meraki/api-v1/#!create-organization-network
I may be getting ahead of myself here, but you may run into further errors because you seem to be inputting net_type and tags as strings but the expected input for this is a list. You can use the split() method to turn a string to a list.
Hope this helps, everything else looks great!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, that solves my problem! I have been consulting the older documentation so I think this is the main source of my problems. I did get that tags error so it's corrected all right now 🙂
