set_device_port_overrides, which lets you roll out consistent configuration across many switches without touching each port individually.
Tools
list_port_profiles
Returns all switch port profiles configured in the site. This is a read-only operation.
string
required
The site identifier to query.
integer
Maximum number of profiles to return.
integer
Number of profiles to skip, for pagination.
create_port_profile
Creates a new switch port profile. You must supply a name and a forwarding mode. All other parameters are optional and give you control over VLAN assignment, PoE, link speed, 802.1X, and LLDP-MED.
string
required
The site identifier where the profile will be created.
string
required
A unique, descriptive name for the profile (e.g.
"IP Camera").string
required
How the port forwards traffic. Accepted values:
all— forward all VLANs (trunk)native— forward native VLAN only (access port)customize— forward the native VLAN plus any tagged VLANs you specifydisabled— disable the port
string
The internal ID of the network configuration to use as the native (untagged) VLAN on this port. Use
get_network_details or list_vlans to find valid IDs.array
List of network configuration IDs whose traffic should be tagged on this port. Only meaningful when
forward is customize.array
List of network configuration IDs to explicitly exclude when
forward is all.string
Power over Ethernet delivery mode. Accepted values:
auto, off, pasv24, passthrough. Use auto for standard IEEE 802.3at/af PoE. Use pasv24 for passive 24 V PoE (legacy Ubiquiti devices). Defaults to the switch’s global PoE setting when omitted.integer
Fixed port speed in Mbps (e.g.
100, 1000). When omitted, the port auto-negotiates.boolean
Force full-duplex mode. Only relevant when
speed is also set and autoneg is false.boolean
Enable link auto-negotiation. Set to
false to lock speed and duplex manually.string
802.1X port access control mode. Accepted values:
auto, force_authorized, force_unauthorized, mac_based. Use auto for standard 802.1X supplicant authentication. Use mac_based for MAB (MAC Authentication Bypass) on devices that do not support 802.1X.boolean
Enable LLDP-MED (Media Endpoint Discovery) advertisements on this port. Useful for VoIP phones that use LLDP-MED to discover their voice VLAN.
boolean
required
Must be
true to create the profile.boolean
When
true, checks for duplicate names, validates parameters, and returns the payload that would be submitted without creating anything.update_port_profile
Modifies an existing port profile using a fetch-then-merge strategy. Only the fields you provide are changed; the rest of the profile is left as-is.
string
required
The site identifier.
string
required
The internal ID of the profile to update. Use
list_port_profiles to find this value.string
New profile name.
string
New forwarding mode:
all, native, customize, or disabled.string
New native VLAN network configuration ID.
array
New list of tagged VLAN network configuration IDs.
array
New list of excluded network configuration IDs.
string
New PoE mode:
auto, off, pasv24, or passthrough.integer
New fixed port speed in Mbps.
boolean
New full-duplex setting.
boolean
New auto-negotiation setting.
string
New 802.1X control mode.
boolean
Enable or disable LLDP-MED.
boolean
required
Must be
true to apply changes.boolean
When
true, returns a preview without writing changes.Updating a profile immediately affects all switch ports that currently use it. If you need to test a change on a single port first, create a new profile with your modified settings, apply it to a test port using
set_device_port_overrides, and promote the change to the main profile once verified.delete_port_profile
Permanently removes a port profile. The tool verifies the profile exists before deleting it and raises ResourceNotFoundError if the ID cannot be found.
string
required
The site identifier.
string
required
The internal ID of the profile to delete.
boolean
required
Must be
true to delete the profile.boolean
When
true, confirms the profile exists and returns a preview without deleting.set_device_port_overrides
Applies one or more port profile assignments to the physical ports of a specific switch. Each entry in port_overrides must specify the port index (port_idx) and the profile to apply (portconf_id). By default the tool merges your changes with existing overrides — only the ports you specify are changed, and all other port assignments are left intact.
string
required
The site identifier where the device lives.
string
required
The internal ID or MAC address of the switch to configure.
array
required
List of port override objects. Each object must contain:
port_idx(integer) — the physical port number (1-indexed)portconf_id(string) — the ID of the profile to apply
name or poe_mode may also be included to override individual settings at the port level.boolean
When
true (the default), existing port overrides are fetched and merged with your input — ports you do not mention are left unchanged. Set to false to replace all port overrides with exactly the list you provide.boolean
required
Must be
true to apply the changes.boolean
When
true, computes the final merged override list and returns it for review without writing to the device.