FortiManager icon

FortiManager

Interact with FortiManager API

Firewall → Update Address Group

AI-generated

Summary

Update an existing address group on FortiManager

Inputs

  • domain (required) — API domain to operate on (e.g., pm, dvm, dvmdb, etc.)
  • adom (required) — Administrative Domain name where the address group resides
  • groupName (required) — Name of the address group to update
  • updateFields — Collection of fields to modify in the address group
  • newName — New name for the address group
  • members — Comma-separated list of address object names to include in the group
  • comment — Comment for the address group
  • excludeMembers — Comma-separated list of address object names to exclude
  • color — Color code for GUI display (0-32)
  • tags — Comma-separated list of tag names
  • allowRouting — Enable or disable use of this address group in static route configuration

Output shape

a JSON object representing the updated address group

Returns the updated object on success; may include an error envelope on failure

Examples

Example 1: Update an address group's members and add a comment

Set adom to 'root', domain to 'pm', groupName to 'group1', updateFields.newName to 'group1upd', updateFields.members to 'subnet1,subnet2', updateFields.comment to 'Updated group'

Example 2: Modify group members and enable routing

domain='pm', adom='root', groupName='group2', updateFields.members='subnet3,hostA', updateFields.allowRouting='enable'

Example 3: Change name, color, and tags

domain='pm', adom='root', groupName='group3', updateFields.newName='group3new', updateFields.color=5, updateFields.tags='tag1,tag2'

Discussion