Skip to content

update_firewall_group

Rename a firewall group or replace its members (read-modify-write).

Side effects:

  • Replaces the group’s name and/or members in place. The members list is replaced wholesale, not merged, so pass the full desired set. The group’s group_type is preserved (it is read first and written back unchanged); group type cannot be changed after creation, only members.
  • Every rule referencing this group immediately sees the new members.
  • Mutates controller state. Use dry_run=True to preview the before/ after diff without applying.

Read first: call get_firewall_group_details to see the current members.

update_firewall_group(group_id="65f...", members=["10.50.0.0/24", "10.70.0.0/24"])
Parameter Type Required Default Description
group_id string yes The _id from list_firewall_groups.
name string no “” New display name. Empty (default) keeps the current name.
members `array null` no null
controller string no “default” Name of the UniFi controller to target. Defaults to "default".
dry_run boolean no false Preview the before/after diff without applying it.