Update Uplink Selection Settings For An MX Network

PUT {{baseUrl}}/networks/:networkId/appliance/trafficShaping/uplinkSelection

Update uplink selection settings for an MX network #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: activeActiveAutoVpnEnabled| boolean| Toggle for enabling or disabling active-active AutoVPN defaultUplink| string| The default uplink. Must be one of: 'wan1' or 'wan2' loadBalancingEnabled| boolean| Toggle for enabling or disabling load balancing wanTrafficUplinkPreferences| array| Array of uplink preference rules for WAN traffic vpnTrafficUplinkPreferences| array| Array of uplink preference rules for VPN traffic

Supports Action Batches

ResourceOperation
/networks/{networkId}/appliance/trafficShaping/uplinkSelectionupdate

Request Body

{"activeActiveAutoVpnEnabled"=>"<boolean>", "defaultUplink"=>"<string>", "loadBalancingEnabled"=>"<boolean>", "wanTrafficUplinkPreferences"=>[{"trafficFilters"=>[{"type"=>"<string>", "value"=>{"source"=>{"port"=>"<string>", "cidr"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>"}, "destination"=>{"port"=>"<string>", "cidr"=>"<string>"}, "protocol"=>"<string>"}}, {"type"=>"<string>", "value"=>{"source"=>{"port"=>"<string>", "cidr"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>"}, "destination"=>{"port"=>"<string>", "cidr"=>"<string>"}, "protocol"=>"<string>"}}], "preferredUplink"=>"<string>"}, {"trafficFilters"=>[{"type"=>"<string>", "value"=>{"source"=>{"port"=>"<string>", "cidr"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>"}, "destination"=>{"port"=>"<string>", "cidr"=>"<string>"}, "protocol"=>"<string>"}}, {"type"=>"<string>", "value"=>{"source"=>{"port"=>"<string>", "cidr"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>"}, "destination"=>{"port"=>"<string>", "cidr"=>"<string>"}, "protocol"=>"<string>"}}], "preferredUplink"=>"<string>"}], "vpnTrafficUplinkPreferences"=>[{"trafficFilters"=>[{"type"=>"<string>", "value"=>{"id"=>"<string>", "protocol"=>"<string>", "source"=>{"port"=>"<string>", "cidr"=>"<string>", "network"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>"}, "destination"=>{"port"=>"<string>", "cidr"=>"<string>", "network"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>", "fqdn"=>"<string>"}}}, {"type"=>"<string>", "value"=>{"id"=>"<string>", "protocol"=>"<string>", "source"=>{"port"=>"<string>", "cidr"=>"<string>", "network"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>"}, "destination"=>{"port"=>"<string>", "cidr"=>"<string>", "network"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>", "fqdn"=>"<string>"}}}], "preferredUplink"=>"<string>", "failOverCriterion"=>"<string>", "performanceClass"=>{"type"=>"<string>", "builtinPerformanceClassName"=>"<string>", "customPerformanceClassId"=>"<string>"}}, {"trafficFilters"=>[{"type"=>"<string>", "value"=>{"id"=>"<string>", "protocol"=>"<string>", "source"=>{"port"=>"<string>", "cidr"=>"<string>", "network"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>"}, "destination"=>{"port"=>"<string>", "cidr"=>"<string>", "network"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>", "fqdn"=>"<string>"}}}, {"type"=>"<string>", "value"=>{"id"=>"<string>", "protocol"=>"<string>", "source"=>{"port"=>"<string>", "cidr"=>"<string>", "network"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>"}, "destination"=>{"port"=>"<string>", "cidr"=>"<string>", "network"=>"<string>", "vlan"=>"<integer>", "host"=>"<integer>", "fqdn"=>"<string>"}}}], "preferredUplink"=>"<string>", "failOverCriterion"=>"<string>", "performanceClass"=>{"type"=>"<string>", "builtinPerformanceClassName"=>"<string>", "customPerformanceClassId"=>"<string>"}}]}

HEADERS

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

RESPONSES

status: OK

{&quot;activeActiveAutoVpnEnabled&quot;:true,&quot;defaultUplink&quot;:&quot;wan1&quot;,&quot;loadBalancingEnabled&quot;:true,&quot;wanTrafficUplinkPreferences&quot;:[{&quot;trafficFilters&quot;:[{&quot;type&quot;:&quot;custom&quot;,&quot;value&quot;:{&quot;protocol&quot;:&quot;tcp&quot;,&quot;source&quot;:{&quot;port&quot;:&quot;any&quot;,&quot;cidr&quot;:&quot;192.168.1.0/24&quot;},&quot;destination&quot;:{&quot;port&quot;:&quot;any&quot;,&quot;cidr&quot;:&quot;any&quot;}}}],&quot;preferredUplink&quot;:&quot;wan2&quot;},{&quot;trafficFilters&quot;:[{&quot;type&quot;:&quot;custom&quot;,&quot;value&quot;:{&quot;protocol&quot;:&quot;tcp&quot;,&quot;source&quot;:{&quot;port&quot;:&quot;1-1024&quot;,&quot;vlan&quot;:10,&quot;host&quot;:254},&quot;destination&quot;:{&quot;port&quot;:&quot;any&quot;,&quot;cidr&quot;:&quot;any&quot;}}}],&quot;preferredUplink&quot;:&quot;wan1&quot;}],&quot;vpnTrafficUplinkPreferences&quot;:[{&quot;trafficFilters&quot;:[{&quot;type&quot;:&quot;applicationCategory&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/category/1&quot;}},{&quot;type&quot;:&quot;application&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/application/33&quot;}},{&quot;type&quot;:&quot;custom&quot;,&quot;value&quot;:{&quot;protocol&quot;:&quot;tcp&quot;,&quot;source&quot;:{&quot;port&quot;:&quot;any&quot;,&quot;cidr&quot;:&quot;192.168.1.0/24&quot;},&quot;destination&quot;:{&quot;port&quot;:&quot;any&quot;,&quot;cidr&quot;:&quot;any&quot;}}},{&quot;type&quot;:&quot;custom&quot;,&quot;value&quot;:{&quot;protocol&quot;:&quot;tcp&quot;,&quot;source&quot;:{&quot;port&quot;:&quot;any&quot;,&quot;cidr&quot;:&quot;any&quot;},&quot;destination&quot;:{&quot;port&quot;:&quot;any&quot;,&quot;network&quot;:&quot;L_23456789&quot;,&quot;vlan&quot;:20,&quot;host&quot;:200}}},{&quot;type&quot;:&quot;custom&quot;,&quot;value&quot;:{&quot;protocol&quot;:&quot;tcp&quot;,&quot;source&quot;:{&quot;port&quot;:&quot;any&quot;,&quot;cidr&quot;:&quot;any&quot;},&quot;destination&quot;:{&quot;port&quot;:&quot;1-1024&quot;,&quot;fqdn&quot;:&quot;www.google.com&quot;}}}],&quot;preferredUplink&quot;:&quot;wan2&quot;,&quot;failOverCriterion&quot;:&quot;poorPerformance&quot;,&quot;performanceClass&quot;:{&quot;type&quot;:&quot;custom&quot;,&quot;customPerformanceClassId&quot;:&quot;123456&quot;}},{&quot;trafficFilters&quot;:[{&quot;type&quot;:&quot;application&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/application/9&quot;}}],&quot;preferredUplink&quot;:&quot;defaultUplink&quot;},{&quot;trafficFilters&quot;:[{&quot;type&quot;:&quot;application&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/application/106&quot;}}],&quot;preferredUplink&quot;:&quot;bestForVoIP&quot;},{&quot;trafficFilters&quot;:[{&quot;type&quot;:&quot;application&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/application/107&quot;}}],&quot;preferredUplink&quot;:&quot;loadBalancing&quot;,&quot;performanceClass&quot;:{&quot;type&quot;:&quot;builtin&quot;,&quot;builtinPerformanceClassName&quot;:&quot;VoIP&quot;}},{&quot;trafficFilters&quot;:[{&quot;type&quot;:&quot;application&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/application/162&quot;}}],&quot;preferredUplink&quot;:&quot;loadBalancing&quot;,&quot;performanceClass&quot;:{&quot;type&quot;:&quot;custom&quot;,&quot;customPerformanceClassId&quot;:&quot;123456&quot;}},{&quot;trafficFilters&quot;:[{&quot;type&quot;:&quot;application&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/application/168&quot;}}],&quot;preferredUplink&quot;:&quot;wan2&quot;,&quot;failOverCriterion&quot;:&quot;poorPerformance&quot;,&quot;performanceClass&quot;:{&quot;type&quot;:&quot;builtin&quot;,&quot;builtinPerformanceClassName&quot;:&quot;VoIP&quot;}},{&quot;trafficFilters&quot;:[{&quot;type&quot;:&quot;application&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/application/171&quot;}}],&quot;preferredUplink&quot;:&quot;wan2&quot;,&quot;failOverCriterion&quot;:&quot;poorPerformance&quot;,&quot;performanceClass&quot;:{&quot;type&quot;:&quot;custom&quot;,&quot;customPerformanceClassId&quot;:&quot;123456&quot;}}]}