plan_client_qos_policy
Create a deterministic QoS bandwidth plan for clients, tags, or groups without modifying the controller, and receive a plan token for later activation with apply_client_qos_policy.
Instructions
Persist a deterministic QoS target preview without controller mutation.
Mutating (local) operation: resolves selector_type/selector_value to concrete client keys and stores a durable QoS plan (plan_token) on the server with the requested download/upload limits. It does NOT change the controller. Pair the returned plan_token with apply_client_qos_policy to attempt activation. Requires UNIFI_RUNTIME_ENABLED=true; use get_client_qos_capabilities to check adapters.
Args: selector_type: Scope of the policy - "client", "tag", or "group". selector_value: Client identity (MAC/IP/hostname) when selector_type is "client", otherwise the tag or group name to expand to clients. download_kbps: Maximum download bandwidth in kilobits per second. upload_kbps: Maximum upload bandwidth in kilobits per second. site: Site to operate on. Defaults to "default". device: Optional device name to target a specific console; omit for default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site to operate on. Defaults to "default". | default |
| device | No | Optional device name to target a specific console; omit for default. | |
| upload_kbps | Yes | Maximum upload bandwidth in kilobits per second. | |
| download_kbps | Yes | Maximum download bandwidth in kilobits per second. | |
| selector_type | Yes | Scope of the policy - "client", "tag", or "group". | |
| selector_value | Yes | Client identity (MAC/IP/hostname) when selector_type is "client", otherwise the tag or group name to expand to clients. |