Update The Per Port VLAN Settings For A Single MX Port

PUT {{baseUrl}}/networks/:networkId/appliance/ports/:portId

Update the per-port VLAN settings for a single MX port. #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: enabled| boolean| The status of the port dropUntaggedTraffic| boolean| Trunk port can Drop all Untagged traffic. When true, no VLAN is required. Access ports cannot have dropUntaggedTraffic set to true. type| string| The type of the port: 'access' or 'trunk'. vlan| integer| Native VLAN when the port is in Trunk mode. Access VLAN when the port is in Access mode. allowedVlans| string| Comma-delimited list of the VLAN ID's allowed on the port, or 'all' to permit all VLAN's on the port. accessPolicy| string| The name of the policy. Only applicable to Access ports. Valid values are: 'open', '8021x-radius', 'mac-radius', 'hybris-radius' for MX64 or Z3 or any MX supporting the per port authentication feature. Otherwise, 'open' is the only valid value and 'open' is the default value if the field is missing.

Supports Action Batches

ResourceOperation
/networks/{networkId}/appliance/ports/{portId}update

Request Body

{"enabled"=>"<boolean>", "dropUntaggedTraffic"=>"<boolean>", "type"=>"<string>", "vlan"=>"<integer>", "allowedVlans"=>"<string>", "accessPolicy"=>"<string>"}

HEADERS

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

RESPONSES

status: OK

{&quot;number&quot;:1,&quot;enabled&quot;:true,&quot;type&quot;:&quot;access&quot;,&quot;dropUntaggedTraffic&quot;:false,&quot;vlan&quot;:3,&quot;accessPolicy&quot;:&quot;open&quot;}