Generate a FortiOS API Token

Step 1:

  • Determine your source address. The source address is needed to ensure the API token can only be used from trusted hosts. You can skip this step if you already know the trusted host IP address.

Step 2:

  • In the FortiGate GUI, select the Status dashboard and locate the Administrators widget.

  • Select your-userid > Show active administrator sessions.

Step 3:

Create an Administrator profile:

  • Select System > Admin Profiles > Create New.

  • Populate the fields as shown in the image:

  • Select OK.

Step 4:

Create the REST API Admin:

  • Select System > Administrators > Create New > REST API Admin.

  • Populate the fields as shown in the image:

  • Select OK. An API token will be generated.

  • Select Close to complete creation of the REST API Admin.

FortiOS Manual Collection

In In the event that local API collection is not possible, data can be manually collected for the network modeling process. A command line interface (CLI) connection to the devices is needed, as well as a terminal emulator such as Putty or SecureCRT, capable of logging data presented via the show commands used.

Step 1:

  • Authenticate to the device.

  • Enter the following commands into the command line interface:

Get Configuration
show
get router info routing-table all

Last updated