Update Port Forwarding Rules Using Postman Runner

Brad_Walker
Conversationalist

Update Port Forwarding Rules Using Postman Runner

I have been attempting to update a list of port forwarding rules using Postman Runner. It runs through the iterations as expected, but when I check the configuration, it only shows the last rule from my .csv file.

 

The body code I am using is:

{
    "rules": [
        {
        "lanIp""{{lanIp}}",
        "name""{{name}}",
        "allowedIps": ["{{allowedIps}}"],
        "publicPort""{{publicPort}}",
        "localPort""{{localPort}}",
        "uplink""{{uplink}}",
        "protocol""{{protocol}}"
        }
    ]
}
 
What am I doing wrong?
 
TIA,
Brad Walker
4 Replies 4
Inderdeep
Kind of a big deal
Kind of a big deal

@Brad_Walker : Are you looking the below port forwarding using API calls 

https://community.meraki.com/t5/Developers-APIs/Port-Forwarding-API-Uplink/m-p/94813

Regards/Inder
Cisco IT Blogs awarded in 2020 & 2021
www.thenetworkdna.com
ww
Kind of a big deal
Kind of a big deal

Some api calls do not add but replace the current rule. Like the fw rules you need to put all rules at once. I suppose this api call has the same behavior

Brad_Walker
Conversationalist

Yes, I have tested it with the json and all rules added. I was kind of afraid of that. I am trying to automate some tasks for our Ops team and was hoping it would be easy to just import a csv, which is easier to update than json. 

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.