Set The 1 1 NAT Mapping Rules For An MX Network

PUT {{baseUrl}}/networks/:networkId/appliance/firewall/oneToOneNatRules

Set the 1:1 NAT mapping rules for an MX network #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: rules| array| An array of 1:1 nat rules

Request Body

{"rules"=>[{"lanIp"=>"<string>", "name"=>"<string>", "publicIp"=>"<string>", "uplink"=>"<string>", "allowedInbound"=>[{"protocol"=>"<string>", "destinationPorts"=>["<string>", "<string>"], "allowedIps"=>["<string>", "<string>"]}, {"protocol"=>"<string>", "destinationPorts"=>["<string>", "<string>"], "allowedIps"=>["<string>", "<string>"]}]}, {"lanIp"=>"<string>", "name"=>"<string>", "publicIp"=>"<string>", "uplink"=>"<string>", "allowedInbound"=>[{"protocol"=>"<string>", "destinationPorts"=>["<string>", "<string>"], "allowedIps"=>["<string>", "<string>"]}, {"protocol"=>"<string>", "destinationPorts"=>["<string>", "<string>"], "allowedIps"=>["<string>", "<string>"]}]}]}

HEADERS

KeyDatatypeRequiredDescription
X-Cisco-Meraki-API-Keynull
Content-Typestring

RESPONSES

status: OK

{&quot;rules&quot;:[{&quot;name&quot;:&quot;Service behind NAT&quot;,&quot;lanIp&quot;:&quot;192.168.128.22&quot;,&quot;publicIp&quot;:&quot;146.12.3.33&quot;,&quot;uplink&quot;:&quot;internet1&quot;,&quot;allowedInbound&quot;:[{&quot;protocol&quot;:&quot;tcp&quot;,&quot;destinationPorts&quot;:[&quot;80&quot;],&quot;allowedIps&quot;:[&quot;10.82.112.0/24&quot;,&quot;10.82.0.0/16&quot;]},{&quot;protocol&quot;:&quot;udp&quot;,&quot;destinationPorts&quot;:[&quot;8080&quot;],&quot;allowedIps&quot;:[&quot;10.81.110.5&quot;,&quot;10.81.0.0/16&quot;]}]}]}