Update The Traffic Shaping Settings Rules For An MX Network

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

Update the traffic shaping settings rules for an MX network #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: defaultRulesEnabled| boolean| Whether default traffic shaping rules are enabled (true) or disabled (false). There are 4 default rules, which can be seen on your network's traffic shaping page. Note that default rules count against the rule limit of 8. rules| array| An array of traffic shaping rules. Rules are applied in the order that they are specified in. An empty list (or null) means no rules. Note that you are allowed a maximum of 8 rules.

Supports Action Batches

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

Request Body

{"defaultRulesEnabled"=>"<boolean>", "rules"=>[{"definitions"=>{"type"=>"array", "description"=>"    A list of objects describing the definitions of your traffic shaping rule. At least one definition is required.\n", "maxItems"=>2, "minItems"=>2, "items"=>{"type"=>"object", "required"=>["type", "value"], "properties"=>{"type"=>{"type"=>"string", "enum"=>["application", "applicationCategory", "host", "port", "ipRange", "localNet"], "description"=>"The type of definition. Can be one of 'application', 'applicationCategory', 'host', 'port', 'ipRange' or 'localNet'.", "default"=>"<string>"}, "value"=>{"type"=>"string", "description"=>"    If \"type\" is 'host', 'port', 'ipRange' or 'localNet', then \"value\" must be a string, matching either\n    a hostname (e.g. \"somesite.com\"), a port (e.g. 8080), or an IP range (\"192.1.0.0\",\n    \"192.1.0.0/16\", or \"10.1.0.0/16:80\"). 'localNet' also supports CIDR notation, excluding\n    custom ports.\n     If \"type\" is 'application' or 'applicationCategory', then \"value\" must be an object\n    with the structure { \"id\": \"meraki:layer7/...\" }, where \"id\" is the application category or\n    application ID (for a list of IDs for your network, use the trafficShaping/applicationCategories\n    endpoint).\n", "default"=>"<string>"}}}}, "perClientBandwidthLimits"=>{"settings"=>"<string>", "bandwidthLimits"=>{"limitUp"=>"<integer>", "limitDown"=>"<integer>"}}, "dscpTagValue"=>"<integer>", "priority"=>"<string>"}, {"definitions"=>{"type"=>"array", "description"=>"    A list of objects describing the definitions of your traffic shaping rule. At least one definition is required.\n", "maxItems"=>2, "minItems"=>2, "items"=>{"type"=>"object", "required"=>["type", "value"], "properties"=>{"type"=>{"type"=>"string", "enum"=>["application", "applicationCategory", "host", "port", "ipRange", "localNet"], "description"=>"The type of definition. Can be one of 'application', 'applicationCategory', 'host', 'port', 'ipRange' or 'localNet'.", "default"=>"<string>"}, "value"=>{"type"=>"string", "description"=>"    If \"type\" is 'host', 'port', 'ipRange' or 'localNet', then \"value\" must be a string, matching either\n    a hostname (e.g. \"somesite.com\"), a port (e.g. 8080), or an IP range (\"192.1.0.0\",\n    \"192.1.0.0/16\", or \"10.1.0.0/16:80\"). 'localNet' also supports CIDR notation, excluding\n    custom ports.\n     If \"type\" is 'application' or 'applicationCategory', then \"value\" must be an object\n    with the structure { \"id\": \"meraki:layer7/...\" }, where \"id\" is the application category or\n    application ID (for a list of IDs for your network, use the trafficShaping/applicationCategories\n    endpoint).\n", "default"=>"<string>"}}}}, "perClientBandwidthLimits"=>{"settings"=>"<string>", "bandwidthLimits"=>{"limitUp"=>"<integer>", "limitDown"=>"<integer>"}}, "dscpTagValue"=>"<integer>", "priority"=>"<string>"}]}

HEADERS

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

RESPONSES

status: OK

{&quot;defaultRulesEnabled&quot;:true,&quot;rules&quot;:[{&quot;definitions&quot;:[{&quot;type&quot;:&quot;host&quot;,&quot;value&quot;:&quot;google.com&quot;},{&quot;type&quot;:&quot;port&quot;,&quot;value&quot;:&quot;9090&quot;},{&quot;type&quot;:&quot;ipRange&quot;,&quot;value&quot;:&quot;192.1.0.0&quot;},{&quot;type&quot;:&quot;ipRange&quot;,&quot;value&quot;:&quot;192.1.0.0/16&quot;},{&quot;type&quot;:&quot;ipRange&quot;,&quot;value&quot;:&quot;10.1.0.0/16:80&quot;},{&quot;type&quot;:&quot;localNet&quot;,&quot;value&quot;:&quot;192.168.0.0/16&quot;},{&quot;type&quot;:&quot;applicationCategory&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/category/2&quot;,&quot;name&quot;:&quot;Blogging&quot;}},{&quot;type&quot;:&quot;application&quot;,&quot;value&quot;:{&quot;id&quot;:&quot;meraki:layer7/application/133&quot;,&quot;name&quot;:&quot;Battle.net&quot;}}],&quot;perClientBandwidthLimits&quot;:{&quot;settings&quot;:&quot;custom&quot;,&quot;bandwidthLimits&quot;:{&quot;limitUp&quot;:1000000,&quot;limitDown&quot;:1000000}},&quot;dscpTagValue&quot;:null,&quot;priority&quot;:&quot;normal&quot;}]}