create_traffic_matching_list
Define network traffic rules by creating a traffic matching list on a UniFi site with host, site, and list type, name, and items.
Instructions
Create a new traffic matching list on a site.
host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID.
Validated locally before the request (a missing field raises ValueError naming it):
a top-level type — the discriminator the controller validates first (verified live:
an empty body is rejected with Missing $.type value; observed value: 'PORTS').
traffic_list: for a PORTS list the live object also carries name (str) and
items (list). Note: the list field is 'items', not 'entries'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| site | Yes | ||
| traffic_list | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||