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
Resource | Operation |
---|---|
/networks/{networkId}/appliance/ports/{portId} | update |
Request Body
{"enabled"=>"<boolean>", "dropUntaggedTraffic"=>"<boolean>", "type"=>"<string>", "vlan"=>"<integer>", "allowedVlans"=>"<string>", "accessPolicy"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Cisco-Meraki-API-Key | null | ||
Content-Type | string |
RESPONSES
status: OK
{"number":1,"enabled":true,"type":"access","dropUntaggedTraffic":false,"vlan":3,"accessPolicy":"open"}