07-27-2023 09:00 AM
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.
Solved! Go to Solution.
07-27-2023 02:28 PM
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.
07-27-2023 02:19 PM
I haven't investigated this ... but I can tell you that Google Bard is excellent at writing Python scripts using the Meraki API ...
07-27-2023 02:22 PM
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.
07-27-2023 02:28 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide