Skip to main content
Skip table of contents

FortiGate

LAST UPDATED: OCTOBER 27, 2025

Overview

FortiGate Next-Generation Firewall (NGFW) filters network traffic such as packet filtering, VPN support, network monitoring, and more.

D3 SOAR is providing REST operations to function with FortiGate.

FortiGate is available for use in:

D3 SOAR

V12.7.83.0+

Category

Network Security

Deployment Options

Option I, Option III

Connection

To connect to FortiGate from D3 SOAR, follow this part to collect the required information below:

Parameter

Description

Example

Server URL

The server URL of the FortiGate firewall instance. The connection must use the HTTPS protocol.

https://***.***.***.***

API Token

The API token used to authenticate the connection.

4r5x*****xzt7

API Version

The API version to use for the connection.

v2

Permission Requirements

Each endpoint in the FortiGate API requires a certain permission scope. The following are required scopes for the commands in this integration:

Command

Required Permissions

Add IPs To Address Group

Firewall > Address > Read/Write

Add IPs To Address Group V2

Add URLs To Address Group

Add URLs To Address Group V2

Create Address Group

List Addresses

Firewall > Address > Read

List Address Groups

List Policies

Firewall > Policy > Read

Remove IPs From Address Group

Firewall > Address > Read/Write

 

 

 

Remove IPs From Address Group V2

Remove URLs From Address Group

Remove URLs From Address Group V2

Update Policy

Firewall > Policy > Read/Write

Test Connection

Firewall > Address > Read

As FortiGate is using role-based access control (RBAC), the API Token is generated based on a specific user account and the application. Therefore, the command permissions are inherited from the user account’s role. Users need to configure their user profile from the FortiGate console for each command in this integration.

Configuring FortiGate to Work with D3 SOAR

  1. Log into the FortiGate console.

    Frame 9 (1).png
  2. Navigate to System > Admin Profiles, then click the + Create New button to create an administrator profile for API users.

    Frame 10 (2).png
  3. Configure the profile.

    Frame 17 (1).png
    1. Create a name for the profile.

    2. Click the Custom option for the Firewall row.

    3. Select the appropriate custom permissions according to the Permissions Requirements table.

    4. Click the OK button to save.

  4. Open the Administrators tab, click the + Create New button, then select the REST API Admin option.

    Frame 12 (1).png
  5. Configure the user profile.

    Frame 13 (2).png
    1. Create a username.

    2. Select the previously configured administrator profile.

    3. Ensure that the PKI Group toggle is turned off.

    4. Click the OK button to save.

  6. Click the Frame 15 (3).png button to copy the API key.

    Frame 14 (2).png

    Refer to step 3.i.2 in Configuring D3 SOAR to Work with FortiGate.

READER NOTE*

The API key will no longer be visible after exiting this side panel.

Configuring D3 SOAR to Work with FortiGate

  1. Log in to D3 SOAR.

  2. Find the FortiGate integration.

    Frame 18 (1).png
    1. Navigate to Configuration on the top header menu.

    2. Click on the Integration icon on the left sidebar.

    3. Type FortiGate in the search box to find the integration, then click it to select it.

    4. Click + Connection, on the right side of the Connections section. A new connection window will appear.

  3. Configure the following fields to create a connection to FortiGate.

    Frame 19.png
    1. Connection Name: The desired name for the connection.

    2. Site: The site on which to use the integration connection. Use the drop-down menu to select the site. The Share to Internal Sites option enables all internal sites to use the connection. Selecting a specific site will only enable that site to use the connection.

    3. Recipient site for events from connections Shared to Internal Sites: This field is displayed when Share to Internal Sites is selected for the Site field, allowing selection of the internal site for deploying the integration connection.

    4. Agent Name (Optional): The proxy agent required to build the connection. Use the dropdown menu to select the proxy agent from a list of previously configured proxy agents.

    5. Description (Optional): The description for the connection.

    6. Tenant (Optional): When configuring the connection from a master tenant site, users can choose the specific tenant sites with which to share the connection. Once this setting is enabled, users can filter and select the desired tenant sites from the dropdowns to share the connection.

      tenant.png
    7. Configure User Permissions: Defines which users have access to the connection.

    8. Active: The checkbox that enables the connection to be used when selected.

    9. System: This section contains the parameters defined specifically for the integration. These parameters must be configured to create the integration connection.

      Frame 20.png

      1. Input the domain level Server URL.

      2. Input the API Token. Refer to step 6 in Configuring FortiGate to Work with D3 SOAR.
      3. Input the API Version. The default value is v2.

    10. Enable Password Vault: An optional feature that allows users to take the stored credentials from their own password vault. Refer to the password vault connection guide if needed.

    11. Connection Health Check: Periodically checks the connection status by scheduling the Test Connection command at the specified interval (in minutes). Available only for active connections, this feature also allows configuring email notifications for failed attempts.

  4. Test the connection.

    Frame 21.png
    1. Click on the Test Connection button to verify credentials and connectivity. A success alert displays Passed with a green checkmark. If the connection fails, review the parameters and retry.

    2. Click OK to close the alert window.

    3. Click + Add to create and add the configured connection.

Commands

FortiGate includes the following executable commands for users to set up schedules or create playbook workflows. With the Test Command, users can execute these commands independently for playbook troubleshooting.

Integration API Note

For more information about the FortiGate API, refer to the FortiGate API reference.

READER NOTE

Certain permissions are required for each command. Refer to the Permission Requirements and Configuring FortiGate to Work with D3 SOAR for details.

Add IPs To Address Group

Adds IP addresses to an Address Group.

READER NOTE

Address Group Name is a required parameter to run this command.

  • Run the List Address Groups command to obtain the Address Group Name. Address Group Names can be found in the raw data at $[*].results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

IPs

Required

The IP addresses with subnet mask to add to the Address Group.

JSON
[
  "5.5.5.5/10",
  "6.6.6.6/24"
]

Address Group Name

Required

The name of the Address Group where the IPs will be added. Address Group Name can be obtained using the List Address Groups command.

Block_Group

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Add IPs To Address Group failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Address group name Not Found.

Error Sample Data

Add IPs To Address Group failed.

Status Code: 404.

Message: Address group name Not Found.

Add IPs To Address Group V2

Adds IP addresses to an Address Group.

READER NOTE

Address Group Name is a required parameter to run this command.

  • Run the List Address Groups command to obtain the Address Group Name. Address Group Names can be found in the raw data at $[*].results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

IPs

Required

The IP addresses with subnet mask to add to the Address Group.

JSON
[
  "5.5.5.5/10",
  "6.6.6.6/24"
]

Address Group Name

Required

The name of the Address Group where the IPs will be added. Address Group Name can be obtained using the List Address Groups command.

Block_Group

Virtual Dom

Optional

The Virtual Domain from which results are retrieved or changes are applied. By default, the value is root.

root

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Add IPs To Address Group V2 failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Address group name Not Found.

Error Sample Data

Add IPs To Address Group V2 failed.

Status Code: 404.

Message: Address group name Not Found.

Add URLs To Address Group

Adds URLs to an Address Group.

READER NOTE

Address Group Name is a required parameter to run this command.

  • Run the List Address Groups command to obtain the Address Group Name. Address Group Names can be found in the raw data at $[*].results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

URLs

Required

The URLs to add to the Address Group.

JSON
[
  "www.1.com",
  "www.2.com"
]

Address Group Name

Required

The name of the Address Group where the URLs will be added. Address Group Name can be obtained using the List Address Groups command.

BlockURLGroup

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Add URLs To Address Group failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Address group name Not Found.

Error Sample Data

Add URLs To Address Group failed.

Status Code: 404.

Message: Address group name Not Found.

Add URLs To Address Group V2

Adds IP addresses to an Address Group.

READER NOTE

Address Group Name is a required parameter to run this command.

  • Run the List Address Groups command to obtain the Address Group Name. Address Group Names can be found in the raw data at $[*].results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

URLs

Required

The URLs to add to the Address Group.

JSON
[
  "www.1.com",
  "www.2.com"
]

Address Group Name

Required

The name of the Address Group where the URLs will be added. Address Group Name can be obtained using the List Address Groups command.

BlockURLGroup

Virtual Dom

Optional

The Virtual Domain from which results are retrieved or changes are applied. By default, the value is root.

root

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Add URLs To Address Group V2 failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Address group name Not Found.

Error Sample Data

Add URLs To Address Group V2 failed.

Status Code: 404.

Message: Address group name Not Found.

Create Address Group

Creates an address group on the firewall.

READER NOTE

Members and Exclude Members are required parameters to run this command.

  • Run the List Addresses command to obtain the Members and Exclude Members. Members and Exclude Members is referring to address names, which can be found in the raw data at $.results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

Group Name

Required

The name of the address group to create.

testGroup33

Members

Required

The address names to include in the group as members. Ensure that the IP addresses, ranges, or address names already exist in the database before adding them. Address names can be obtained using the List Addresses command.

JSON
[
  "Block_101.com"
]

Exclude Members

Optional

The address names, IP addresses, or ranges to exclude from the group. Address names can be obtained using the List Addresses command.

JSON
[
  "172.16.0.1",
  "Block_4.4.4.3"
]

Comment

Optional

A comment or note for the address group.

Test02

Color

Optional

The display color assigned to the address group. Enter a number from 1 to 32.

Frame 16 (4).png

2

Virtual Domains

Optional

The Virtual Domains from which the group is created.

JSON
[
  "root"
]

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Create Address Group failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 500.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: entry not found in datasource\n\nvalue parse error before '***.***.***.***'\nCommand fail. Return code -3\n.

Error Sample Data

Create Address Group failed.

Status Code: 500.

Message: entry not found in datasource\n\nvalue parse error before '***.***.***.***'\nCommand fail. Return code -3\n.

List Addresses

Retrieves all IPv4 and FQDN address objects from the firewall configuration.

Input

Input Parameter

Required/Optional

Description

Example

Address Name

Optional

The pattern of the address name by which to filter results.

2.com

Address

Optional

The pattern of the address by which to filter results. It can include part or all of an address.

www.2

Limit

Optional

The maximum number of address records to return. By default, the value is 20.

10

Offset

Optional

The number of records to skip when returning results. This is useful for pagination. By default, the value is 0.

1

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

List Addresses failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Forbidden.

Error Sample Data

List Addresses failed.

Status Code: 403.

Message: Forbidden.

List Address Groups

Retrieves all address groups from the firewall configuration.

Input

Input Parameter

Required/Optional

Description

Example

Group Name

Optional

The part or full name of the address group by which to filter results.

My

Virtual Domains

Optional

The Virtual Domains from which results are returned. By default, all groups from accessible VDOMs are returned.

JSON
[
  "root"
]

Scope

Optional

The filter scope. Valid options are:

  • Global

  • Virtual Domain

  • Both

By default, the value is set to Both.

Both

Offset

Optional

The number of records to skip when returning results. This is useful for pagination. By default, the value is 0.

0

Limit

Optional

The maximum number of address groups to return. By default, the value is 20.

5

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

List Address Groups failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Forbidden.

Error Sample Data

List Address Groups failed.

Status Code: 403.

Message: Forbidden.

List Policies

Returns all firewall policies.

READER NOTE

Address Group Name is an optional parameter to run this command.

  • Run the List Address Groups command to obtain the Address Group Name. Address Group Names can be found in the raw data at $[*].results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

Address Group Name

Optional

The name of the address group by which to filter results. Address Group Name can be obtained using the List Address Groups command.

By default, all address groups are returned.

blockIPAddressGroup

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

List Policies failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Forbidden.

Error Sample Data

List Policies failed.

Status Code: 403.

Message: Forbidden.

Remove IPs From Address Group

Removes IP addresses from the specified Address Group.

READER NOTE

Address Group Name is a required parameter to run this command.

  • Run the List Address Groups command to obtain the Address Group Name. Address Group Names can be found in the raw data at $[*].results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

IPs

Required

The IP addresses with subnet masks to remove from the Address Group.

JSON
[
  "5.5.5.5/10",
  "6.6.6.6/24"
]

Address Group Name

Required

The name of the Address Group from which to remove the IPs. Address Group Name can be obtained using the List Address Groups command.

Block_Group

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Remove IPs From Address Group failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Address group name Not Found.

Error Sample Data

Remove IPs From Address Group failed.

Status Code: 404.

Message: Address group name Not Found.

Remove IPs From Address Group V2

Removes IP addresses from the specified Address Group.

READER NOTE

Address Group Name is a required parameter to run this command.

  • Run the List Address Groups command to obtain the Address Group Name. Address Group Names can be found in the raw data at $[*].results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

IPs

Required

The IP addresses with subnet masks to remove from the Address Group.

JSON
[
  "5.5.5.5/10",
  "6.6.6.6/24"
]

Address Group Name

Required

The name of the Address Group from which to remove the IPs. Address Group Name can be obtained using the List Address Groups command.

Block_Group

Virtual Dom

Optional

The Virtual Domain from which results are retrieved or changes are applied. By default, the value is root.

root

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data displays Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Remove IPs From Address Group V2 failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Address group name Not Found.

Error Sample Data

Remove IPs From Address Group V2 failed.

Status Code: 404.

Message: Address group name Not Found.

Remove URLs From Address Group

Removes URLs from the specified Address Group.

READER NOTE

Address Group Name is a required parameter to run this command.

  • Run the List Address Groups command to obtain the Address Group Name. Address Group Names can be found in the raw data at $[*].results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

URLs

Required

The URLs to remove from the Address Group.

JSON
[
  "www.1.com",
  "www.2.com"
]

Address Group Name

Required

The name of the Address Group from which to remove the URLs. Address Group Name can be obtained using the List Address Groups command.

BlockURLGroup

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Remove URLs From Address Group failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Address group name Not Found.

Error Sample Data

Remove URLs From Address Group failed.

Status Code: 404.

Message: Address group name Not Found.

Remove URLs From Address Group V2

Removes URLs from the specified Address Group.

READER NOTE

Address Group Name is a required parameter to run this command.

  • Run the List Address Groups command to obtain the Address Group Name. Address Group Names can be found in the raw data at $[*].results[*].name.

Input

Input Parameter

Required/Optional

Description

Example

URLs

Required

The URLs to remove from the Address Group.

JSON
[
  "www.1.com",
  "www.2.com"
]

Address Group Name

Required

The name of the Address Group from which to remove the URLs. Address Group Name can be obtained using the List Address Groups command.

BlockURLGroup

Virtual Dom

Optional

The Virtual Domain from which results are retrieved or changes are applied. By default, the value is root.

root

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Remove URLs From Address Group V2 failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Address group name Not Found.

Error Sample Data

Remove URLs From Address Group V2 failed.

Status Code: 404.

Message: Address group name Not Found.

Update Policy

Updates the specified firewall policy. This command can be used to add an address group to the source address of a policy configured with the Deny action, blocking traffic from the IP addresses included in that group.

READER NOTE

Policy ID is a required parameter to run this command.

  • Run the List Policies command to obtain the Policy ID. Policy IDs can be found in the raw data at $.results[*].policyid.

To add additional values using the Source Addresses, Destination Addresses, Source Interfaces, or Destination Interfaces parameters, first retrieve the existing list with the List Policies command, then append the new entries.

  • Source Addresses can be found in the raw data at $.results[*].srcaddr

  • Destination Addresses can be found in the raw data at $.results[*].dstaddr

  • Source Interfaces can be found in the raw data at $.results[*].srcintf

  • Destination Interfaces can be found in the raw data at $.results[*].dstintf

Input

Input Parameter

Required/Optional

Description

Example

Policy ID

Required

The ID of the policy to update. Policy ID can be obtained using the List Policies command.

5

Policy Name

Optional

The new name of the policy.

blockIPAddressGroup1

Source Addresses

Optional

The source IPv4 addresses or address group names. If specified, existing entries are replaced. To add new ones, retrieve the current list using the List Policies command and append the new entries.

JSON
[
  "Block_Group"
]

Destination Addresses

Optional

The destination IPv4 addresses or address group names. If specified, existing entries are replaced. To add new ones, retrieve the current list using the List Policies command and append the new entries.

JSON
[
  "all"
]

Source Interfaces

Optional

The source interface names. If specified, existing interfaces are replaced. To add new ones, retrieve the current list using the List Policies command and append the new entries.

JSON
[
  "port1"
]

Destination Interfaces

Optional

The destination interface names. If specified, existing interfaces are replaced. To add new ones, retrieve the current list using the List Policies command and append the new entries.

JSON
[
  "port2"
]

Action

Optional

The action to apply to the policy. Valid options are:

  • Accept

  • Deny

Deny

Additional Parameters

Optional

Used to update additional policy attributes not listed above. Valid additional parameters include schedule and service. Refer to the raw data at $.results[*] returned by the List Policies command to view all available fields.

JSON
{
  "schedule": "always",
  "service": [
    {
      "name": "ALL"
    }
  ]
}

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Update Policy failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 404.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Not Found.

Error Sample Data

Update Policy failed.

Status Code: 404.

Message: Not Found.

Test Connection

Allows users to perform a health check on an integration connection. Users can schedule a periodic health check by selecting Connection Health Check when editing an integration connection.

Input

N/A

Output

Output Type

Description

Return Data Type

Return Data

Indicates one of the possible command execution states: Successful or Failed.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

More details about an error can be viewed in the Error tab.

String

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Test Connection failed. Failed to check the connector.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the FortiGate portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Forbidden.

Error Sample Data

Test Connection failed. Failed to check the connector.

Status Code: 403.

Message: Forbidden.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.