--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "unifi_setting_usw Resource - terraform-provider-unifi" subcategory: "" description: |- Manages UniFi Switch (USW) settings for a UniFi site. These settings control global switch behaviors such as DHCP snooping. --- # unifi_setting_usw (Resource) Manages UniFi Switch (USW) settings for a UniFi site. These settings control global switch behaviors such as DHCP snooping. ## Example Usage ```terraform resource "unifi_setting_usw" "example" { # Enable DHCP snooping to protect against rogue DHCP servers dhcp_snoop = true # Specify the site (optional, defaults to site configured in provider, otherwise "default") # site = "default" } ``` ## Schema ### Required - `dhcp_snoop` (Boolean) Whether DHCP snooping is enabled. DHCP snooping is a security feature that filters untrusted DHCP messages and builds a binding database of valid hosts. ### Optional - `site` (String) The name of the UniFi site where this resource should be applied. If not specified, the default site will be used. ### Read-Only - `id` (String) The unique identifier of this resource.