A discussion about add security policy to a lot of templates

Solved
kiwibird
New here

A discussion about add security policy to a lot of templates

Dear all:

        We have over 100 templates in our meraki dashboard, now we have a need that we want to add a same security policy into these every template... I want to know that is there a more easily way to do this than config it in each template one by one?

 

Best Wishes

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

The API could let you do this. What policies are you trying to update? Group Policies? and are you trying to edit an existing policy or create a new one?

 


if you are just creating a new one you can use this one and use this one. You would put the template id in place of the network id.

 

https://developer.cisco.com/meraki/api-v1/create-network-group-policy/

 

Editing in bulk could be harder.

I can try to address the basic steps if necessary.

If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.

View solution in original post

5 Replies 5
Mloraditch
Kind of a big deal
Kind of a big deal

The API could let you do this. What policies are you trying to update? Group Policies? and are you trying to edit an existing policy or create a new one?

 


if you are just creating a new one you can use this one and use this one. You would put the template id in place of the network id.

 

https://developer.cisco.com/meraki/api-v1/create-network-group-policy/

 

Editing in bulk could be harder.

I can try to address the basic steps if necessary.

If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.
kiwibird
New here

Thank you for your answer! I want to trying create a new security policy in firewall function,such as permit the traffic from A transmit to B,or permit the specific source visit internet. I need add the same policy into each template. Can I only use the webUI do this mission?

Mloraditch
Kind of a big deal
Kind of a big deal

Ok yes the API will definitely work. Id take a look at Postman and use a runner in this situation but there are other options like python and such.

If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.
Brash
Kind of a big deal
Kind of a big deal

The easiest way by far to do this is using the API. Iterate through each template and apply the group policy configuration.

Even if you're not comfortable with a bit of coding, the time investment learning that is better than sitting at the GUI clicking into each template and creating each policy manually.

You're also more likely to make mistakes doing it manually.

kiwibird
New here

Yes, I think you are right. Maybe I should try to learn some codes about this, I am going to find some videos or docs to learn this, I hope I can find it, thank you for your help!

Get notified when there are additional replies to this discussion.