FortiManager icon

FortiManager

Interact with FortiManager API

Firewall → Create Address

AI-generated

Summary

Create a new firewall address object in a specified Administrative Domain using the FortiManager API.

Inputs

  • domain (required) — API domain to operate on (e.g., "pm", "securityConsole", "task"). Must be one of the supported domains.
  • adom (required) — Administrative Domain name where the address will be created.
  • addressName (required) — Name of the address object to create.
  • addressType (required) — Type of address object (e.g., "ipmask", "iprange", "fqdn", "geography").
  • additionalFields — Extra configuration fields for the address (e.g., subnet, startIp, endIp, country, comment, associatedInterface, color, tags, allowRouting).

Output shape

a single address object (JSON)

Returns the created address object; may include fields such as ID, name, type, and other attributes. Missing optional fields are omitted.

Examples

Example 1: Create an IPv4 subnet address named "TestSubnet" in ADOM "root" using the Policy Manager domain.

domain=pm&adom=root&addressName=TestSubnet&addressType=ipmask&additionalFields.subnet=192.168.10.0/24

Discussion