Updates The Port Forwarding Rules For A Single MG
PUT {{baseUrl}}/devices/:serial/cellularGateway/portForwardingRules
Updates the port forwarding rules for a single MG. #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: rules| array| An array of port forwarding params
Supports Action Batches
Resource | Operation |
---|---|
/devices/{serial}/cellularGateway/portForwardingRules | update |
Request Body
{"rules"=>[{"lanIp"=>"<string>", "publicPort"=>"<string>", "localPort"=>"<string>", "protocol"=>"<string>", "access"=>"<string>", "name"=>"<string>", "allowedIps"=>["<string>", "<string>"]}, {"lanIp"=>"<string>", "publicPort"=>"<string>", "localPort"=>"<string>", "protocol"=>"<string>", "access"=>"<string>", "name"=>"<string>", "allowedIps"=>["<string>", "<string>"]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Cisco-Meraki-API-Key | null | ||
Content-Type | string |
RESPONSES
status: OK
{"rules":[{"lanIp":"172.31.128.5","name":"test","access":"any","publicPort":"11-12","localPort":"4","uplink":"both","protocol":"tcp"},{"lanIp":"172.31.128.5","name":"test 2","access":"restricted","allowedIps":["10.10.10.10","10.10.10.11"],"publicPort":"99","localPort":"5","uplink":"both","protocol":"tcp"}]}