Attempting to automate creating network objects and groups using Meraki API and python

Solved
EBuck
Conversationalist

Attempting to automate creating network objects and groups using Meraki API and python

I am developing a python application to automate creating FQDN network policy objects and policy groups and then load the newly created objects into the new group(s). My application works to create the objects and the groups, but I am uncertain which path is needed to put the new objects into the new group(s). From what I can see from the documentation for the API I need to use https://api.meraki.com/api/v1/organizations/{org_id}/policyObjects/groups/{group_id} load the objects. Obviously, group_id is the variable I am using to store the object id of the current group I am working with. I have some error checking in my code so I can validate the obj id for the group I want is what is getting passed into the variable, but when running the code, I get a page not found error. Is there a different path I should be using? The other paths I am using are https://api.meraki.com/api/v1/organizations/{org_id}/policyObjects to create the network policy object and https://api.meraki.com/api/v1/organizations/{org_id}/policyObjects/groups to create the groups.

1 Accepted Solution
PhilipDAth
Kind of a big deal
Kind of a big deal

I gave up using ChatGPT.  It's just not that good at this task.

 

Google Bard - it is on hole different level.

 

I can't understand why people keep using ChatGPT when Bard is both free and so much better.

View solution in original post

3 Replies 3
PhilipDAth
Kind of a big deal
Kind of a big deal

I haven't investigated this ... but I can tell you that Google Bard is excellent at writing Python scripts using the Meraki API ...

https://bard.google.com/ 

EBuck
Conversationalist

Thanks Philip, I might give that a try. I was using ChatGPT as a sounding board, but it's information it was using is a bit dated. It was completely wrong with the API paths.

PhilipDAth
Kind of a big deal
Kind of a big deal

I gave up using ChatGPT.  It's just not that good at this task.

 

Google Bard - it is on hole different level.

 

I can't understand why people keep using ChatGPT when Bard is both free and so much better.

Get notified when there are additional replies to this discussion.