Fortinet FortiGate v2
Fortinet FortiGate enterprise firewall provide high performance, consolidated advanced security and granular visibility for broad protection across the entire…
fortigatev2_1.1.0.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Configuration · 7 fields
- Hostname
addresstext requiredIP address or Hostname of the Fortinet FortiGate endpoint server to connect and perform the automated operations.
- API Key
api_keypassword requiredAPI Key of the Fortinet FortiGate endpoint server to connect and perform the automated operations. You can get the API key from the administration settings in FortiGate. Important:To create a REST API key from Fortinet FortiGate, see the "Create a REST API administrator" section in the Fortinet FortiGate Documentation.
- Port
portinteger requiredPort number used for connecting to the Fortinet FortiGate server. Defaults to 443.
Default
443 - Web Filter Profile Name
url_block_policytextName of the Web Filter Profile that you have specified on Fortinet FortiGate for blocking or unblocking IP addresses. Based on our example, enter default in this field. See the Blocking or Unblocking IP addresses, URLs, or applications in the Fortinet FortiGate section.
- Application Control Profile Name
app_block_policytextName of the Application Control Profile that you have specified on Fortinet FortiGate for blocking or unblocking IP addresses. Based on our example, enter default in this field. See the Blocking or Unblocking IP addresses, URLs, or applications in the Fortinet FortiGate section.
- VDOM
vdomtextVDOMs, in the CSV or List format, if the VDOM mode is enabled.
- Verify SSL
verify_sslcheckboxSpecifies whether the SSL certificate for the server is to be verified. By default, this option is set as True.
Default
true
Operations · 45
Get Applications Detail
get_list_of_applicationsget_list_of_applicationsRetrieves a list of all application names and associated details from the Fortinet FortiGate server.
No parameters.
Returnsstatushttp_statushttp_methodresultsvdombuildserialsizelimit_reachedmatched_countnext_idxactionversionnamerevisionpathGet Blocked IP Addresses 2 params
get_blocked_ipget_blocked_ipRetrieves a list of IP Addresses that are blocked on Fortinet FortiGate.
- Block Method
methodselect requiredSpecify the method to be used for retrieving the list of IP Addresses blocked on Fortinet FortiGate. You can choose from following options: Quarantine Based, Policy Based.
Default
Quarantine BasedOptions Quarantine BasedPolicy BasedWhen Block Method is Policy Based
- Policy Name
ip_block_policytext requiredSpecify the name of the policy specified on Fortinet FortiGate for blocking or unblocking IP addresses and whose associated list of blocked IP addresses to retrieve from Fortinet FortiGate. Based on our example, enter FortiSOAR_Blocked_Policy in this field. See the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- Address Group Name
ip_group_nametextSpecify the name of the IP address group, in CSV("1.1.1.1", "2.2.2.2") or list(["1.1.1.1", "2.2.2.2"]) specified on Fortinet FortiGate for blocking or unblocking IP addresses. Based on our example, enter default in this field. See the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- NGFW Mode
ngfw_modeselectSpecify the next-generation firewall(NGFW) mode of the VDOM where the specified policy is present on Fortinet FortiGate for blocking or unblocking IP addresses. You can choose from following options: Profile Based, Policy Based. By default it is Profile Based.
Default
Profile BasedOptions Profile BasedPolicy Based
- VDOM
vdomtext(Optional) Specify the VDOMs whose associated list of blocked IP addresses is to be retrieved from Fortinet FortiGate. You can specify VDOMs in CSV("1.1.1.1", "2.2.2.2") or list(["1.1.1.1", "2.2.2.2"]) format. NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
Get Blocked Applications 1 param
get_blocked_applicationsget_blocked_applicationsRetrieves a list of application names that are blocked on Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the VDOM whose associated list of blocked applications are to be retrieved from Fortinet FortiGate. The VDOM mode should be enabled and accepts a single VDOM value in this field. Ensure that the specified VDOM contains a valid Application Control Profile Name to execute the action.NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
Get Blocked URLs 1 param
get_blocked_urlsget_blocked_urlsRetrieves a list of URLs that are blocked on Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the VDOM whose associated list of blocked URLs are to be retrieved from Fortinet FortiGate. The VDOM mode should be enabled and accepts a single VDOM value in this field. Ensure that the specified VDOM contains a valid Web Filter Profile Name to execute the action.NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
Block IP Address (Deprecated) 1 param
block_ipblock_ipBlocks IP addresses on Fortinet FortiGate using the IPv4 Block Policy that you have specified as the "action" parameter of Fortinet FortiGate or by Quarantine based- adds IP into the banned IP list. For more information see the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section. IMPORTANT: This operation has been retained to avoid failures of existing…
- Block Method
methodselect requiredMethod to be used for blocking IP addresses using Fortinet FortiGate. You can choose from following options: Quarantine Based, Policy Based
Default
Quarantine BasedOptions Quarantine BasedPolicy BasedWhen Block Method is Quarantine Based
- IP Addresses
ip_addressestext requiredSpecify the IP addresses to block using Fortinet FortiGate in CSV("1.1.1.1", "2.2.2.2") or list(["1.1.1.1", "2.2.2.2"]) format.
- Time to Live
time_to_liveselect requiredSpecify the time till when the IP addresses are blocked. You can choose between the following options: 1 Hour, 6 Hour, 12 Hour, 1 Day, 6 Months, 1 Year, Custom.
Default
12 HourOptions 1 Hour6 Hour12 Hour1 Day6 Months1 YearNeverCustom TimeWhen Time to Live is Custom Time
- Time to Live
durationinteger requiredSpecify a value, in seconds, in the Time to Live field.
Default
21600
- VDOM
vdomtext(Optional) Specify the VDOM to use for blocking IP address on Fortinet FortiGate. NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
When Block Method is Policy Based
- Policy Name
ip_block_policytext requiredSpecify the name of the policy specified on Fortinet FortiGate for blocking or unblocking IP addresses. Based on our example, enter FortiSOAR_Blocked_Policy in this field. See the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- IP Type
ip_typeselect requiredSelect the type of IP address to block. You can select from the following options: IPv4, IPv6
Default
IPv4Options IPv4IPv6When IP Type is IPv4
- Address Group Name
ip_group_nametext requiredSpecify the IPv4 address group name, that you have specified in Fortinet FortiGate for blocking or unblocking IP addresses. User can specify source or destination address group name. Based on our example, enter Blocked_IPs in this field. See the Blocking or Unblocking IP addresses, URLs, or applications in Fortinet FortiGate section.
- IP Address
iptext requiredSpecify the IP addresses that you want to block using Fortinet FortiGate in the "CSV" or "list" format.For example, ["1.1.1.1", "2.2.2.2"] or "1.1.1.1", "2.2.2.2".
When IP Type is IPv6
- Address Group Name
ip_group_nametext requiredSpecify the name of the IP address group, that you have specified in Fortinet FortiGate for blocking or unblocking IP addresses. User can specify source or destination address group name.
- IPv6 Address
iptext requiredSpecify the IPv6 address group name, that you have specified in Fortinet FortiGate for blocking or unblocking IP addresses. User can specify source or destination address group name.
- NGFW Mode
ngfw_modeselectSpecify the next-generation firewall(NGFW) mode of the VDOM where the specified policy is present on Fortinet FortiGate for blocking or unblocking IP addresses. You can choose from following options: Profile Based, Policy Based. By default it is Profile Based.
Default
Profile BasedOptions Profile BasedPolicy Based - VDOM
vdomtext(Optional) Specify the VDOM that is used to block IP addresses. The VDOMs that you specify here will overwrite the VDOM(s) that you have specified as Configuration parameters.
Block IP Address 1 param
block_ip_newblock_ip_newBlocks IP addresses on Fortinet FortiGate using the IPv4 Block Policy that you have specified as the "action" parameter of Fortinet FortiGate or by Quarantine based- adds IP into the banned IP list. For more information see the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- Block Method
methodselect requiredMethod to be used for blocking IP addresses using Fortinet FortiGate. You can choose from following options: Quarantine Based, Policy Based
Default
Quarantine BasedOptions Quarantine BasedPolicy BasedWhen Block Method is Quarantine Based
- IP Addresses
ip_addressestext requiredSpecify the IP addresses to block using Fortinet FortiGate in CSV("1.1.1.1", "2.2.2.2") or list(["1.1.1.1", "2.2.2.2"]) format.
- Time to Live
time_to_liveselect requiredSpecify the time till when the IP addresses are blocked. You can choose between the following options: 1 Hour, 6 Hour, 12 Hour, 1 Day, 6 Months, 1 Year, Custom.
Default
12 HourOptions 1 Hour6 Hour12 Hour1 Day6 Months1 YearNeverCustom TimeWhen Time to Live is Custom Time
- Time to Live
durationinteger requiredSpecify a value, in seconds, in the Time to Live field.
Default
21600
- VDOM
vdomtext(Optional) Specify the VDOM to use for blocking IP address on Fortinet FortiGate. NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
When Block Method is Policy Based
- Policy Name
ip_block_policytext requiredSpecify the name of the policy specified on Fortinet FortiGate for blocking or unblocking IP addresses. Based on our example, enter FortiSOAR_Blocked_Policy in this field. See the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- IP Type
ip_typeselect requiredSelect the type of IP address to block. You can select from the following options: IPv4, IPv6
Default
IPv4Options IPv4IPv6When IP Type is IPv4
- Address Group Name
ip_group_nametext requiredSpecify the IPv4 address group name, that you have specified in Fortinet FortiGate for blocking or unblocking IP addresses. User can specify source or destination address group name. Based on our example, enter Blocked_IPs in this field. See the Blocking or Unblocking IP addresses, URLs, or applications in Fortinet FortiGate section.
- IP Address
iptext requiredSpecify the IP addresses that you want to block using Fortinet FortiGate in the "CSV" or "list" format.For example, ["1.1.1.1", "2.2.2.2"] or "1.1.1.1", "2.2.2.2".
When IP Type is IPv6
- Address Group Name
ip_group_nametext requiredSpecify the name of the IP address group, that you have specified in Fortinet FortiGate for blocking or unblocking IP addresses. User can specify source or destination address group name.
- IPv6 Address
iptext requiredSpecify the IPv6 address group name, that you have specified in Fortinet FortiGate for blocking or unblocking IP addresses. User can specify source or destination address group name.
- NGFW Mode
ngfw_modeselectSpecify the next-generation firewall(NGFW) mode of the VDOM where the specified policy is present on Fortinet FortiGate for blocking or unblocking IP addresses. You can choose from following options: Profile Based, Policy Based. By default it is Profile Based.
Default
Profile BasedOptions Profile BasedPolicy Based - VDOM
vdomtext(Optional) Specify the VDOM that is used to block IP addresses. The VDOMs that you specify here will overwrite the VDOM(s) that you have specified as Configuration parameters.
Block Application 2 params
block_applicationsblock_applicationsBlocks applications on Fortinet FortiGate using the Application Control Profile Name that you have specified while configuring Fortinet FortiGate. For more information see the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- Application Names
app_listtext requiredSpecify a list of application names to block on Fortinet FortiGate. To block more than one application, their names must be in the list format. For example, for a list of applications enter ["Application_Name1", "Application_Name2"] in this field. For a single application enter Application_Name. NOTE: You can retrieve application names using the Get Application Details action.
- VDOM
vdomtext(Optional) Specify the VDOM whose associated applications are to be blocked from Fortinet FortiGate. The VDOM mode should be enabled and a a single VDOM value in this field. Ensure that the specified VDOM contains a valid Application Control Profile Name to execute the action. NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
Block URL 2 params
block_urlblock_urlBlocks URLs on Fortinet FortiGate using the Web Filter Profile Name Policy that you have specified while configuring Fortinet FortiGate. For more information see the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- URL
urltext requiredSpecify the List of URLs that to block on Fortinet FortiGate. URLs must be in the list format if to block more than one URL. For example, for a list of URLs, enter: ["URL1", "URL2"] in this field. For a single URL enter: example.com
- VDOM
vdomtext(Optional) Specify the VDOM whose associated list of blocked URLs are to be retrieved from Fortinet FortiGate. The VDOM mode should be enabled and accepts a single VDOM value in this field. Ensure that the specified VDOM contains a valid Web Filter Profile Name to execute the action. NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
Returnsalready_blockednewly_blockednot_blockUnblock IP Address 2 params
unblock_ipunblock_ipUnblocks IP addresses on Fortinet FortiGate using the IPv4 Block Policy that you have specified as the "action" parameter of Fortinet FortiGate. For more information see the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- Unblock Method
methodselect requiredMethod to be used for unblocking IP addresses using Fortinet FortiGate. You can choose from following options: Quarantine Based, Profile Based.
Default
Quarantine BasedOptions Quarantine BasedPolicy BasedWhen Unblock Method is Quarantine Based
- IP Addresses
ip_addressestext requiredSpecify the IP addresses to unblock using Fortinet FortiGate in CSV("1.1.1.1", "2.2.2.2") or list(["1.1.1.1", "2.2.2.2"]) format.
When Unblock Method is Policy Based
- Policy Name
ip_block_policytext requiredSpecify the name of the policy specified on Fortinet FortiGate for blocking or unblocking IP addresses. Based on our example, enter FortiSOAR_Blocked_Policy in this field. See the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- IP Type
ip_typeselect requiredSelect the type of IP address to unblock. You can select from the following options: IPv4, IPv6
Default
IPv4Options IPv4IPv6When IP Type is IPv4
- Address Group Name
ip_group_nametext requiredSpecify the IP address group name, that you have specified in Fortinet FortiGate for blocking or unblocking IP addresses. User can specify source or destination address group name. Based on our example, enter Blocked_IPs in this field. See the Blocking or Unblocking IP addresses, URLs, or applications in Fortinet FortiGate section.
- IP Address
iptext requiredIP addresses that you want to unblock using Fortinet FortiGate in the "CSV" or "list" format.For example, ["1.1.1.1", "2.2.2.2"] or "1.1.1.1", "2.2.2.2".
When IP Type is IPv6
- Address Group Name
ip_group_nametext requiredName of the IP address group name, that you have specified in Fortinet FortiGate for blocking or unblocking IP addresses. User can specify source or destination address group name. Based on our example, enter Blocked_IPs in this field. See the Blocking or Unblocking IP addresses, URLs, or applications in Fortinet FortiGate section.
- IPv6 Address
iptext requiredIP addresses that you want to unblock from the FortiGate server, in the .csv or list format.For example, ff06::/120
- NGFW Mode
ngfw_modeselectSpecify the next-generation firewall(NGFW) mode of the VDOM where the specified policy is present on Fortinet FortiGate for blocking or unblocking IP addresses. You can choose from following options: Profile Based, Policy Based. By default it is Profile Based.
Default
Profile BasedOptions Profile BasedPolicy Based
- VDOM
vdomtext(Optional) Specify the VDOM to use for unblocking IP address on Fortinet FortiGate. NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
Unblock Application 2 params
unblock_applicationsunblock_applicationsUnblocks applications on Fortinet FortiGate using the Application Control Profile Name that you have specified while configuring Fortinet FortiGate. For more information see the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- Application Names
app_listtext requiredSpecify a list of application names to unblock on Fortinet FortiGate. To unblock more than one application, their names must be in the list format. For example, for a list of applications enter ["Application_Name1", "Application_Name2"] in this field. For a single application enter Application_Name. NOTE: You can retrieve application names using the Get Application Details action
- VDOM
vdomtext(Optional) Specify the VDOM whose associated applications are to be unblocked from Fortinet FortiGate. The VDOM mode should be enabled and a a single VDOM value in this field. Ensure that the specified VDOM contains a valid Application Control Profile Name to execute the action. NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
Unblock URL 2 params
unblock_urlunblock_urlUnblocks URLs on Fortinet FortiGate using the Web Filter Profile Name that you have specified while configuring Fortinet FortiGate. For more information see the Blocking or Unblocking IP addresses, URLs, or applications on Fortinet FortiGate section.
- URL
urltext requiredSpecify the list of URLs that to unblock on Fortinet FortiGate. URLs must be in the list format if to block more than one URL. For example, for a list of URLs, enter: ["URL1", "URL2"] in this field. For a single URL enter: example.com
- VDOM
vdomtext(Optional) Specify the VDOM whose associated list of unblocked URLs are to be retrieved from Fortinet FortiGate. The VDOM mode should be enabled and accepts a single VDOM value in this field. Ensure that the specified VDOM contains a valid Web Filter Profile Name to execute the action. NOTE: The VDOM value that you specify in this field overwrites the VDOM(s) values that you have specified in the Configuration Parameters while configuring this connector.
Returnsnot_existnewly_unblockednot_unblockQuarantine Host 2 params
quarantine_hostquarantine_hostQuarantines hosts on the Fortinet FortiGate server based on MAC addresses and other input parameters you have specified
- MAC Address
macstext requiredSpecify the list of MAC addresses that to quarantine on Fortinet FortiGate. MAC addresses must be in a list format if to quarantine more than one MAC address. For example, 00:15:00:e8:27:25 or ['00:15:00:e8:27:25', '00:15:00:e8:27:26'].
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsalready_quarantinenewly_quarantinenot_quarantineUnquarantine Host 2 params
unquarantine_hostunquarantine_hostUnquaratines host entries from the Fortinet FortiGate server based on MAC addresses and other input parameters you have specified.
- MAC Address
macstext requiredSpecify the list of MAC addresses that to remove from quarantine on Fortinet FortiGate. MAC addresses must be in a list format if to remove more than one MAC address from quarantine. For example, 00:15:00:e8:27:25 or ['00:15:00:e8:27:25', '00:15:00:e8:27:26'].
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsnot_existnewly_unquarantinenot_unquarantineGet Quarantine Hosts 1 param
get_quarantine_hostsget_quarantine_hostsRetrieves a list of all quarantine hosts from Fortinet FortiGate.
- VDOM
vdomtextOptional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsnamepathvdombuildserialactionstatusresultsversionrevisionhttp_methodhttp_statusCreate Address 2 params
create_addresscreate_addressCreate a new address on Fortinet FortiGate based on the name of the address, type, and other input parameters you have specified.
- Address Category
address_categoryselect requiredSelect address category to create on Fortinet FortiGate. You can choose from following options: IPv4 Address, IPv6 Address.
Default
IPv4 AddressOptions IPv4 AddressIPv6 AddressWhen Address Category is IPv4 Address
- Address Name
nametext requiredSpecify a name of the address to create on Fortinet FortiGate.
- Type
typeselect requiredSelect the type of address being specified in the subsequent field. You can choose from Subnet, IP Range, FQDN, Geography, Device (MAC Address)
Options SubnetIP RangeFQDNGeographyDevice (MAC Address)When Type is Subnet
- IP/Netmask
subnettext requiredSpecify an IP address or Netmask name of the address to create on Fortinet FortiGate.
- Static Route Configuration
allow-routingselect: Select one of the following options: Enable: Select to use this address in the static route configuration. Disable: Select to disable the use of this address in the static route configuration
Options EnableDisable
When Type is IP Range
- Start IP
start_iptext requiredSpecify the first IP address in the range of addresses to be created on Fortinet FortiGate.
- End IP
end_iptext requiredSpecify the last IP address in the range of addresses to be created on Fortinet FortiGate.
- Static Route Configuration
allow-routingselectSelect one of the following options: Enable: Select to use this address in the static route configuration. Disable: Select to disable the use of this address in the static route configuration.
Options EnableDisable
When Type is FQDN
- FQDN
fqdntext requiredSpecify a fully qualified domain name(FQDN) of the address to create on Fortinet FortiGate.
- Static Route Configuration
allow-routingselectSelect one of the following options: Enable: Select to use this address in the static route configuration. Disable: Select to disable the use of this address in the static route configuration.
Options EnableDisable
When Type is Geography
- Country/Region
countryselect requiredSelect the country whose associated IP addresses is to be created on Fortinet FortiGate.
When Type is Device (MAC Address)
- MAC Address Scope
scopeselect requiredSelect option forMAC Address Scope
Options Single AddressAddress RangeWhen MAC Address Scope is Single Address
- MAC Address
mac_addrstext requiredSpecify the MAC address to create on Fortinet FortiGate in MAC Address field. For example, 00:15:00:e8:27:25.
When MAC Address Scope is Address Range
- Starting MAC
start_mactext requiredSpecify the first MAC address in the range of MAC addresses to create on Fortinet FortiGate.
- Ending MAC
end_mactext requiredSpecify the last MAC address in the range of MAC addresses to create on Fortinet FortiGate.
- Comments
commenttext(Optional) Comment to be added to the address to be created on Fortinet FortiGate.
When Address Category is IPv6 Address
- Address Name
nametext requiredSpecify a name of the address to create on Fortinet FortiGate.
- Type
typeselect requiredSelect the type of address being specified
Options IPv6 SubnetIPv6 RangeIPv6 FQDNIPv6 GeographyIPv6 Fabric Connector AddressIPv6 TemplateDevice (MAC Address)When Type is IPv6 Subnet
- IPv6 Address
subnettext requiredSpecify an IPv6 address or Netmask name of the address to create on Fortinet FortiGate..
When Type is IPv6 Range
- Start IP
start_iptext requiredSpecify the first IPv6 address in the range of addresses to be created on Fortinet FortiGate.
- End IP
end_iptext requiredSpecify the last IPv6 address in the range of addresses to be created on Fortinet FortiGate.
When Type is IPv6 FQDN
- FQDN
fqdntext requiredSpecify a fully qualified domain name(FQDN) of the IPv6 address to create on Fortinet FortiGate in FQDN field.
When Type is IPv6 Geography
- Country/Region
countryselect requiredSelect the country whose associated IPv6 addresses is to be created on Fortinet FortiGate.
When Type is IPv6 Fabric Connector Address
- SDN Connector
sdn_connectortext requiredSpecify an SDN connector name.
When Type is IPv6 Template
- IPv6 Address Template
ipv6_address_templatetext requiredSpecify the IPv6 address template to use.
- Host Type
host_typeselect requiredSelect Specific to enter a particular IPv6 host
Options AnySpecificWhen Host Type is Specific
- Host
hosttext requiredEnter IPv6 Host address
When Type is Device (MAC Address)
- MAC Address Scope
scopeselect requiredSelect option forMAC Address Scope
Options Single AddressAddress RangeWhen MAC Address Scope is Single Address
- MAC Address
mac_addrstext requiredSpecify the MAC address to create on Fortinet FortiGate in MAC Address field. For example, 00:15:00:e8:27:25.
When MAC Address Scope is Address Range
- Starting MAC
start_mactext requiredSpecify the first MAC address in the range of MAC addresses to create on Fortinet FortiGate.
- Ending MAC
end_mactext requiredSpecify the last MAC address in the range of MAC addresses to create on Fortinet FortiGate.
- Comments
commenttext(Optional) Comment to be added to the address that you want to create in Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsmkeynamepathactionvdombuildserialstatusversionrevisionhttp_methodhttp_statusold_revisionrevision_changedGet Addresses 3 params
get_addressesget_addressesRetrieves a list of all addresses or specific addresses that are configured on Fortinet FortiGate based on the input parameters you have specified.
- Address Category
address_categoryselectSelect the address type to retrieve its details from Fortinet FortiGate. You can select from following options: IPv4 Address, IPv6 Address
Default
IPv4 AddressOptions IPv4 AddressIPv6 Address - Address Name
nametextSpecify the name of the address to retrieve its details from Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionresultssizelimit_reachedmatched_countnext_idxactionvdompathnamemkeystatushttp_statusserialversionbuildUpdate Address 2 params
update_addressupdate_addressUpdate an existing address on Fortinet FortiGate based on the address name, type, and other input parameters you have specified.
- Address Category
address_categoryselect requiredSelect address category to update on Fortinet FortiGate. You can choose from following options: IPv4 Address, IPv6 Address.
Options IPv4 AddressIPv6 AddressWhen Address Category is IPv4 Address
- Address Name
nametext requiredSpecify the name of the address to update on Fortinet FortiGate.
- Type
typeselectSelect Type of address which you wants to update
Options SubnetIP RangeFQDNGeographyDevice (MAC Address)When Type is Subnet
- IP/Netmask
subnettext requiredSpecify an IP address or Netmask name of the address to update on Fortinet FortiGate.
- Static Route Configuration
allow-routingselectSelect one of the following options: Enable: Select to use this address in the static route configuration. Disable: Select to disable the use of this address in the static route configuration.
Options EnableDisable
When Type is IP Range
- Start IP
start-iptext requiredSpecify the first IP address in the range of addresses to be updated on Fortinet FortiGate.
- End IP
end-iptext requiredSpecify the last IP address in the range of addresses to be updated on Fortinet FortiGate.
- Static Route Configuration
allow-routingselectSelect one of the following options: Enable: Select to use this address in the static route configuration. Disable: Select to disable the use of this address in the static route configuration.
Options EnableDisable
When Type is FQDN
- FQDN
fqdntext requiredSpecify a fully qualified domain name(FQDN) of the address to update on Fortinet FortiGate.
- Static Route Configuration
allow-routingselectSelect one of the following options: Enable: Select to use this address in the static route configuration. Disable: Select to disable the use of this address in the static route configuration.
Options EnableDisable
When Type is Geography
- Country/Region
countryselect requiredSelect the country whose associated IP addresses is to be updated on Fortinet FortiGate.
When Type is Device (MAC Address)
- MAC Address Scope
scopeselect requiredSelect option forMAC Address Scope
Options Single AddressAddress RangeWhen MAC Address Scope is Single Address
- MAC Address
mac_addrstext requiredSpecify the MAC address to update on Fortinet FortiGate in MAC Address field. For example, 00:15:00:e8:27:25.
When MAC Address Scope is Address Range
- Starting MAC
start-mactext requiredSpecify the first MAC address in the range of MAC addresses to update on Fortinet FortiGate.
- Ending MAC
end-mactext requiredSpecify the last MAC address in the range of MAC addresses to update on Fortinet FortiGate.
- New Address Name
new_nametext(Optional) Specify a new name for the address if you want to update its name in Fortinet FortiGate.
- Comments
commenttext(Optional) Comment to be added to the address that you want to update in Fortinet FortiGate.
When Address Category is IPv6 Address
- Address Name
nametext requiredSpecify a name of the address to update on Fortinet FortiGate.
- Type
typeselectSelect the type of address being specified
Options IPv6 SubnetIPv6 RangeIPv6 FQDNIPv6 GeographyIPv6 Fabric Connector AddressIPv6 TemplateDevice (MAC Address)When Type is IPv6 Subnet
- IPv6 Address
subnettext requiredIP address or Netmask name of the address that you want to update in Fortinet FortiGate.
When Type is IPv6 Range
- Start IP
start_iptext requiredStarting (First) IP address (inclusive) in the range for the address to be added to the address that you want to update in Fortinet FortiGate.
- End IP
end_iptext requiredEnding (Final) IP address (inclusive) in the range for the address to be added to the address that you want to update in Fortinet FortiGate.
When Type is IPv6 FQDN
- FQDN
fqdntext requiredFully Qualified Domain Name address of the address that you want to update in Fortinet FortiGate
When Type is IPv6 Geography
- Country/Region
countryselect requiredSelect the country whose IP addresses you want to associate with the address that you want to update in Fortinet FortiGate.
When Type is IPv6 Fabric Connector Address
- SDN Connector
sdn_connectortext requiredEnter SDN Connector name
When Type is IPv6 Template
- IPv6 Address Template
ipv6_address_templatetext requiredEnter IPv6 Address Template
- Host Type
host_typeselect requiredSelect host type
Options AnySpecificWhen Host Type is Specific
- Host
hosttext requiredEnter Host
When Type is Device (MAC Address)
- MAC Address Scope
scopeselect requiredSelect option forMAC Address Scope
Options Single AddressAddress RangeWhen MAC Address Scope is Single Address
- MAC Address
mac_addrstext requiredMAC Address that you want to add to the address that you want to update in Fortinet FortiGate. For example, 00:15:00:e8:27:25
When MAC Address Scope is Address Range
- Starting MAC
start_mactext requiredStarting (First) MAC address in the range for the address to be added to the address that you want to update in Fortinet FortiGate. For example, 00:15:00:e8:27:25
- Ending MAC
end_mactext requiredEnding (Final) MAC address in the range for the address to be added to the address that you want to update in Fortinet FortiGate. For example, 00:15:00:e8:27:27
- New Address Name
new_nametext(Optional) Specify a new name for the address if you want to update its name in Fortinet FortiGate.
- Comments
commenttext(Optional) Comment to be added to the address that you want to update in Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsmkeynamepathvdombuildactionserialstatusversionrevisionhttp_methodhttp_statusold_revisionrevision_changedDelete Address 3 params
delete_addressdelete_addressDeletes an address that is configured on Fortinet FortiGate based on the name of the address and other input parameters you have specified
- Address Category
address_categoryselect requiredSelect the address type to delete from Fortinet FortiGate. You can select from following options: IPv4 Address IPv6 Address
Default
IPv4 AddressOptions IPv4 AddressIPv6 Address - Address Name
nametext requiredSpecify the name of the address to delete from Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the VDOM on which to perform automated operations. NOTE: You can specify VDOMs as a Configuration parameter or here, as an input parameter. You can specify VDOMs in CSV("1.1.1.1", "2.2.2.2") or list(["1.1.1.1", "2.2.2.2"]) format, if the VDOM mode is enabled. By default, VDOM is set to root.
Returnsmkeynamepathvdomactionbuildserialstatusversionrevisionhttp_methodhttp_statusold_revisionrevision_changedCreate Address Group 2 params
create_address_groupcreate_address_groupCreates a new address group on Fortinet FortiGate based on the name of the address group, members of the group, and other input parameters you have specified.
- Address Group Category
address_group_categoryselect requiredSelect address group category to create group. You can select from following options: IPv4 Group, IPv6 Group
Options IPv4 GroupIPv6 GroupWhen Address Group Category is IPv4 Group
- Group Name
group_nametext requiredSpecify the name of address group to create on Fortinet FortiGate.
- Members
membertext requiredSpecify the list of IP address names to add to the address group being created on Fortinet FortiGate.
- Type
typeselectSpecify the type of address group to create on Fortinet FortiGate. You can choose from following options: Group: Select this option if the addresses within may belong to multiple groups. This is the default address group type. Folder: Select this option if the members cannot belong to any other group.
Default
GroupOptions GroupFolder - Exclude
excludecheckboxSelect this checkbox, i.e., set it to True, to enable address exclusion.
Default
falseWhen Exclude is true
- Exclude Members
exclude_membertext requiredSpecify the list of IP addresses or URLs that you want to add to the exclusion list in Fortinet FortiGate.
- Comments
commenttext(Optional) Specify the comment to be added to the address group to be created on Fortinet FortiGate.
- Static Route Configuration
allow-routingselectSelect the Enable option to enable usage of this address group in the static route configuration, else select Disable
Options EnableDisable
When Address Group Category is IPv6 Group
- Group Name
group_nametext requiredName of address group that you want to create in Fortinet FortiGate
- Members
membertext requiredList of IP address names to add to the address group you want to create in Fortinet FortiGate.
- Comments
commenttext(Optional) Comment to be added to the address group that you want to create in Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionactionrevision_changedold_revisionmkeystatushttp_statusvdompathnameserialversionbuildGet Address Groups 3 params
get_address_groupsget_address_groupsRetrieves a list of all address groups or specific address groups that are configured on Fortinet FortiGate based on the input parameters you have specified.
- Address Group Category
address_group_categoryselectSelect the address group type to retrieve its details from Fortinet FortiGate. You can select from following options: IPv4 Group IPv6 Group
Default
IPv4 GroupOptions IPv4 GroupIPv6 Group - Address Group Name
group_nametextSpecify the name of the address group to retrieve its details from Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionsizelimit_reachedmatched_countnext_idxactionresultsvdompathnamemkeystatushttp_statusserialversionbuildUpdate Address Group 2 params
update_address_groupupdate_address_groupUpdates an existing address group on Fortinet FortiGate based on the name of the address group, members of the group, and other input parameters you have specified.
- Address Group Category
address_group_categoryselect requiredSelect address group category to update group. You can select from following options: IPv4 Group, IPv6 Group
Options IPv4 GroupIPv6 GroupWhen Address Group Category is IPv4 Group
- Group Name
group_nametext requiredSpecify the name of address group to update on Fortinet FortiGate.
- New Group Name
new_group_nametext(Optional) Specify a new name for the address group to update its name on Fortinet FortiGate.
- Add Members
add_membertextSpecify the list of IP address names to add to the address group being updated on Fortinet FortiGate.
- Remove Members
remove_membertextSpecify the list of IP address names to remove from the address group being updated on Fortinet FortiGate.
- Exclude
excludecheckboxSelect this checkbox, i.e., set it to True, to enable address exclusion.
When Exclude is true
- Add Exclude Members
add_exclude_membertextSpecify the list of IP address names or URL names to add into exclusion list.
- Remove Exclude Members
remove_exclude_membertextSpecify the list of IP address names that you want to remove from the exclusion list in Fortinet FortiGate.
- Comments
commenttext(Optional) Specify the comment to be added to the address group to be created on Fortinet FortiGate.
- Static Route Configuration
allow-routingselectSelect one of the following options: Enable: Select to use this address in the static route configuration. Disable: Select to disable the use of this address in the static route configuration.
Options EnableDisable
When Address Group Category is IPv6 Group
- Group Name
group_nametext requiredSpecify the name of address group to be updated on Fortinet FortiGate
- New Group Name
new_group_nametext(Optional) Specify a new name for the address group to update its name on Fortinet FortiGate.
- Add Members
add_membertextSpecify the list of IP address names to add to the address group being updated on Fortinet FortiGate.
- Remove Members
remove_membertextSpecify the list of IP address names to remove from the address group being updated on Fortinet FortiGate.
- Comments
commenttext(Optional) Specify the comment to be added to the address group to be created on Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Delete Address Group 3 params
delete_address_groupdelete_address_groupDeletes an address group that is configured on Fortinet FortiGate based on the name of the address group and other input parameters you have specified.
- Address Group Category
address_group_categoryselect requiredSelect the address group type to delete from Fortinet FortiGate. You can select from following options: IPv4 Address IPv6 Address
Default
IPv4 GroupOptions IPv4 GroupIPv6 Group - Address Group Name
group_nametext requiredSpecify the name of the address group to delete its details from Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionactionrevision_changedold_revisionmkeystatushttp_statusvdompathnameserialversionbuildCreate Service 6 params
create_firewall_servicecreate_firewall_serviceCreate a new service on Fortinet FortiGate based on the name of the service and other input parameters you have specified.
- Name
nametext requiredSpecify the name of the service to be created on Fortinet FortiGate.
- Category
categorytextSpecify the category of the service to be created on Fortinet FortiGate. For example, Email, Authentication, General, Remote Access, etc.
- Protocol
protocolselectSelect the protocol type based on IANA numbers. You can select from following options: TCP/UDP/SCTP: Specify values in following fields: Address: Specify the type of address to associate with the service to be created on Fortinet FortiGate. You can select from following options: IP Range: Specify the starting and ending IP addresses that constitute the IP range associated with the service, in the IP Range field. For example, 192.0.2.0-192.0.2.24 FQDN: Specify the Fully qualified domain name associated with the service, in the FQDN field TCP Port Range: Specify multiple TCP port ranges…
Default
ALLOptions TCP/UDP/SCTPICMPICMP6IPHTTPFTPCONNECTSOCKS-TCPSOCKS-UDPALLWhen Protocol is TCP/UDP/SCTP
- Address
addressselectType of address to associate with the service that you want to create in Fortinet FortiGate. You can choose from IP Range or FQDN
Options IP RangeFQDNWhen Address is IP Range
- IP Range
iprangetextspecify the starting and ending IP addresses that constitute the IP range associated with the service. For example, 0.0.0.0-0.0.0.10
When Address is FQDN
- FQDN
fqdntextSpecify the Fully qualified domain name associated with the service
- TCP Port Range
tcp_portrangetextSpecify multiple TCP port ranges associated with the service. For example, 0-22:55-75 55-77:88-100 in the format of 'TCP Port Low-TCP Port High:Source Port Low-Source Port High'
- UDP Port Range
udp_portrangetextMultiple UDP port ranges associated with the service. For example, 0-22:55-75 55-77:88-100 in the format of 'UDP Port Low-UDP Port High:Source Port Low-Source Port High'
- SCTP Port Range
sctp_portrangetextMultiple SCTP port ranges associated with the service. For example, 0-22:55-75 55-77:88-100 in the format of 'SCTP Port Low-SCTP Port High:Source Port Low-Source Port High'
When Protocol is ICMP
- Type
icmptypeintegerType of ICMP to associate with the service that you want to create in Fortinet FortiGate.
- Code
icmpcodeintegerICMP Code to associate with the service that you want to create in Fortinet FortiGate. Maximum: 255 Minimum: 0
When Protocol is ICMP6
- Type
icmptypeintegerType of ICMP6 to associate with the service that you want to create in Fortinet FortiGate.
- Code
icmpcodeintegerICMP6 Code to associate with the service that you want to create in Fortinet FortiGate. Maximum: 255 Minimum: 0
When Protocol is IP
- Protocol Number
protocol-numberintegerProtocol Number of the IP you want to associate with the service to be created in Fortinet FortiGate. Maximum: 254 Minimum: 0
- Comments
commenttext(Optional) Specify the comment to be added to the service to be created on Fortinet FortiGate.
- Show in Service List
visibilityselectSelect one of the following options: Enable: Select this option to show the created service on the graphical user interface(GUI). Disable: Select this option to hide the created service on the graphical user interface(GUI).
Options EnableDisable - VDOM
vdomtext(Optional) Specify the VDOM on which to perform automated operations. NOTE: You can specify VDOMs as a Configuration parameter or here, as an input parameter. You can specify VDOMs in CSV("1.1.1.1", "2.2.2.2") or list(["1.1.1.1", "2.2.2.2"]) format, if the VDOM mode is enabled. By default, VDOM is set to root.
Returnshttp_methodrevisionactionrevision_changedold_revisionmkeystatushttp_statusvdompathnameserialversionbuildGet Services 2 params
get_firewall_servicesget_firewall_servicesRetrieves a list of all firewalls services or specific services that are configured on Fortinet FortiGate based on the input parameters you have specified
- Name
nametextSpecify the name of the service to retrieve its details from Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionresultsvdompathsizelimit_reachedmatched_countnext_idxactionnamemkeystatushttp_statusserialversionbuildUpdate Service 7 params
update_firewall_serviceupdate_firewall_serviceUpdates an existing service on Fortinet FortiGate based on the name of the service and other input parameters you have specified
- Name
nametext requiredSpecify the name of the service to be updated on Fortinet FortiGate.
- New Name
new_nametext(Optional) Specify a new name for the service to be updated on Fortinet FortiGate.
- Category
categorytextSpecify the category of the service to be updated on Fortinet FortiGate. For example, Email, Authentication, General, Remote Access, etc.
- Protocol
protocolselectSelect the protocol type based on IANA numbers. You can select from following options: TCP/UDP/SCTP: Specify values in following fields: Address: Specify the type of address to associate with the service to be updated on Fortinet FortiGate. You can select from following options: IP Range: Specify the starting and ending IP addresses that constitute the IP range associated with the service, in the IP Range field. For example, 192.0.2.0-192.0.2.24 FQDN: Specify the Fully qualified domain name associated with the service, in the FQDN field TCP Port Range: Specify multiple TCP port ranges…
Options TCP/UDP/SCTPICMPICMP6IPHTTPFTPCONNECTSOCKS-TCPSOCKS-UDPALLWhen Protocol is TCP/UDP/SCTP
- Address
addressselectType of address to associate with the service that you want to update in Fortinet FortiGate. You can choose from IP Range or FQDN
Options IP RangeFQDNWhen Address is IP Range
- IP Range
iprangetextStart and end of the IP range associated with service. E.g. 0.0.0.0-0.0.0.10
When Address is FQDN
- FQDN
fqdntextSpecify the Fully qualified domain name associated with the service.
- TCP Port Range
tcp_portrangetextMultiple TCP port ranges. e.g 0-22:55-75 55-77:88-100 in the format of 'TCP Port Low-TCP Port High:Source Port Low-Source Port High'
- UDP Port Range
udp_portrangetextUDP Port Range: Multiple UDP port ranges associated with the service. For example, 0-22:55-75 55-77:88-100 in the format of 'UDP Port Low-UDP Port High:Source Port Low-Source Port High'
- SCTP Port Range
sctp_portrangetextMultiple SCTP port ranges associated with the service. For example, 0-22:55-75 55-77:88-100 in the format of 'SCTP Port Low-SCTP Port High:Source Port Low-Source Port High'
When Protocol is ICMP
- Type
icmptypeintegerType of ICMP to associate with the service that you want to update in Fortinet FortiGate.
- Code
icmpcodeintegerICMP Code to associate with the service that you want to update in Fortinet FortiGate. Maximum: 255 Minimum: 0
When Protocol is ICMP6
- Type
icmptypeintegerType of ICMP6 to associate with the service that you want to update in Fortinet FortiGate.
- Code
icmpcodeintegerICMP6 Code to associate with the service that you want to update in Fortinet FortiGate. Maximum: 255 Minimum: 0
When Protocol is IP
- Protocol Number
protocol-numberintegerProtocol Number of the IP you want to associate with the service to be updated in Fortinet FortiGate. Maximum: 254 Minimum: 0
- Comments
commenttext(Optional) Specify the comment to be added to the service to be updated on Fortinet FortiGate.
- Show in Service List
visibilityselectSelect one of the following options: Enable: Select this option to show the updated service on the graphical user interface(GUI). Disable: Select this option to hide the updated service on the graphical user interface(GUI).
Options EnableDisable - VDOM
vdomtext(Optional) Specify the VDOM on which to perform automated operations. NOTE: You can specify VDOMs as a Configuration parameter or here, as an input parameter. You can specify VDOMs in CSV("1.1.1.1", "2.2.2.2") or list(["1.1.1.1", "2.2.2.2"]) format, if the VDOM mode is enabled. By default, VDOM is set to root.
Returnshttp_methodrevisionrevision_changedold_revisionmkeystatusactionhttp_statusvdompathnameserialversionbuildDelete Service 2 params
delete_firewall_servicedelete_firewall_serviceDeletes a firewall service that is configured on Fortinet FortiGate based on the name of the address group and other input parameters you have specified.
- Name
nametext requiredSpecify the name of the service to be deleted from Fortinet FortiGate
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionrevision_changedold_revisionmkeystatusactionhttp_statusvdompathnameserialversionbuildCreate Service Group 4 params
create_service_groupcreate_service_groupCreates a new service group on Fortinet FortiGate based on the name of the service group, members of the group, and other input parameters you have specified.
- Name
nametext requiredSpecify the name of service group to be created on Fortinet FortiGate.
- Members
memberstextSpecify the list of members to add to the service group being created on Fortinet FortiGate.
- Comments
commenttext(Optional) Specify the comment to be added to the service group being created on Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionrevision_changedold_revisionmkeyactionstatushttp_statusvdompathnameserialversionbuildGet Service Groups 2 params
get_service_groupsget_service_groupsRetrieves a list of all service groups or specific service groups that are configured on Fortinet FortiGate based on the input parameters you have specified.
- Name
nametextSpecify the name of the service group to retrieve its details from Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionresultsvdompathnamesizelimit_reachedmatched_countnext_idxactionstatushttp_statusserialversionbuildUpdate Service Group 6 params
update_service_groupupdate_service_groupUpdates an existing service group on Fortinet FortiGate based on the name of the service group, members of the group, and other input parameters you have specified.
- Name
nametext requiredSpecify the name of the service group to be updated on Fortinet FortiGate.
- New Name
new_nametext(Optional) Specify a new name for the service group to be updated on Fortinet FortiGate.
- Add Members
add_membertextSpecify the list of members to add to the service group to update on Fortinet FortiGate.
- Remove Members
remove_membertextSpecify the list of members to remove from the service group to update on Fortinet FortiGate.
- Comments
commenttext(Optional) Specify the comment on the service group to be updated on Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionrevision_changedold_revisionmkeystatusactionhttp_statusvdompathnameserialversionbuildDelete Service Group 2 params
delete_service_groupdelete_service_groupDeletes a service group that is configured on Fortinet FortiGate based on the name of the service group and other input parameters you have specified
- Name
nametext requiredSpecify the name of the service group to be deleted from Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionrevision_changedold_revisionmkeystatusactionhttp_statusvdompathnameserialversionbuildCreate Policy 12 params
create_policycreate_policyCreates a new firewall policy on Fortinet FortiGate based on the name of the policy, names of the incoming and outgoing interfaces, and other input parameters you have specified.
- Policy Name
nametext requiredSpecify the name of policy to be created on Fortinet FortiGate
- Incoming Interface
srcintftext requiredSpecify names of incoming interface associated with the policy to be created on Fortinet FortiGate. For example port1.
- Outgoing Interface
dstintftext requiredSpecify names of outgoing interface associated with the policy to be created on Fortinet FortiGate. For example port2.
- Source
srcaddrtext requiredSpecify the source IPv4 address and address group names associated with the policy to be created on Fortinet FortiGate.
- Destination
dstaddrtext requiredSpecify the destination IPv4 address and address group names associated with the policy to be created on Fortinet FortiGate.
- Service
servicetext requiredSpecify the service and service group names associated with the policy to be created on Fortinet FortiGate.
- Schedule
scheduletext requiredSpecify the name of the schedule associated with the policy to be created on Fortinet FortiGate.
- Status
statusselectSelect from the following options: Enable: Select to enable to this policy on Fortinet FortiGate. Disable: Select to disable to this policy on Fortinet FortiGate.
Options EnableDisable - Action
actionselectSelect the policy action from following available options: Accept: Select this action to allow sessions that match this firewall policy. Inspection Mode: Select the appropriate inspection mode for the policy. You can choose from the following options: Flow Based(default) Proxy Based NAT: Select to enable NAT and specify following information: IP Pool Configuration: Select from the following options: Use Outgoing Interface Address Use Dynamic IP Pool: Specify pool names in CSV or list format in the Pool Name field. Preserve Source Port: Enable to prevent source NAT from changing a session's…
Default
AcceptOptions AcceptDenyWhen Action is Accept
- Inspection Mode
inspection_modeselectThe inspection mode of the policy. You can choose between the Flow Based (default) or Proxy Based
Options Flow BasedProxy Based - NAT
natcheckboxSelect the checkbox, i.e., set it to true, to enable NAT
When NAT is true
- IP Pool Configuration
ip_pool_configselectSelect IP pool configuration
Options Use Outgoing Interface AddressUse Dynamic IP PoolWhen IP Pool Configuration is Use Dynamic IP Pool
- Pool Name
poolnametext requiredEnter pool names in csv or list format
- Preserve Source Port
fixedportselectEnable to prevent source NAT from changing a session's source port
Options EnableDisable
- Protocol Options
profile-protocol-optionstextName of an existing Protocol options profile.
- Security Profiles
security_profile_namemultiselectSelect security profiles to enable it
Options AntiVirusWeb FilterDNS FilterApplication ControlIPSFile FilterSSL InspectionWhen Security Profiles is AntiVirus
- Antivirus Profile
av_profiletext requiredName of an existing Antivirus profile.
When Security Profiles is Web Filter
- Web Filter Profile
webfilter_profiletext requiredName of an existing Web filter profile.
When Security Profiles is DNS Filter
- DNS Filter Profile
dnsfilter_profiletext requiredName of an existing DNS filter profile.
When Security Profiles is Application Control
- Application Control
application_listtext requiredName of an existing Application list.
When Security Profiles is IPS
- IPS Sensor
ips_sensortext requiredName of an existing IPS sensor.
When Security Profiles is File Filter
- File Filter Profile
file_filter_profiletext requiredName of an existing file-filter profile.
When Security Profiles is SSL Inspection
- SSL Inspection Profile
ssl_ssh_profiletext requiredName of an existing SSL SSH profile.
- Log Traffic
logtrafficselectEnable or disable logging. Log all sessions or security profile sessions.All:Log all sessions accepted or denied by this policy. UTM:Log traffic that has a security profile applied to it. Disable:Disable all logging for this policy.
Options AllUTMDisable
- Comments
commenttext(Optional) Specify the comment to be added to the policy on Fortinet FortiGate
- Additional Policy Arguments
additional_argsjson(Optional) Specify policy arguments in JSON format to be added to the policy on Fortinet FortiGate. You can enter arguments in the following format: { "field1": value1, "field2": value2 }
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionrevision_changedold_revisionmkeystatusactionhttp_statusvdompathnameserialversionbuildGet List of Policies 3 params
get_list_of_policiesget_list_of_policiesRetrieves a list and details for all IPv4 policies or specific IPv4 policies that are configured on Fortinet FortiGate based on the input parameters you have specified
- Policy ID
policyidtextSpecify the policy ID to get its details
- NGFW Mode
ngfw_modeselectSpecify the NGFW mode of the vdom in which policy that you have specified is present in Fortinet FortiGate. By default it will be Profile Based. You can choose from Profile Based or Policy Based.
Default
Profile BasedOptions Profile BasedPolicy Based - VDOM
vdomtext(Optional) Specify the VDOM on which to perform automated operations. NOTE: You can specify VDOMs as a Configuration parameter or here, as an input parameter. You can specify VDOMs in CSV("1.1.1.1", "2.2.2.2") or list(["1.1.1.1", "2.2.2.2"]) format, if the VDOM mode is enabled. By default, VDOM is set to root.
Returnsresultvdom_not_existUpdate Policy 16 params
update_policyupdate_policyUpdates an existing firewall policy on Fortinet FortiGate based on the ID of the policy, names of the incoming and outgoing interfaces, and other input parameters you have specified.
- Policy ID
policyidtext requiredSpecify the ID of policy to be updated on Fortinet FortiGate.
- Policy Name
nametextSpecify the name of policy to be updated on Fortinet FortiGate.
- Status
statusselectSelect from the following options: Enable: Select to enable to this policy on Fortinet FortiGate. Disable: Select to disable to this policy on Fortinet FortiGate.
Options EnableDisable - Incoming Interface
srcintftextSpecify names of incoming interface associated with the policy to be updated on Fortinet FortiGate. For example port1.
- Outgoing Interface
dstintftextSpecify names of outgoing interface associated with the policy to be updated on Fortinet FortiGate. For example port2.
- Add Source
add_srcaddrtextSource IPv4 addresses and address group names to add
- Remove Source
remove_srcaddrtextSource IPv4 addresses and address group names to remove
- Add Destination
add_dstaddrtextDestination IPv4 addresses and address group names to add
- Remove Destination
remove_dstaddrtextDestination IPv4 address and address group names to remove
- Add Services
add_servicetextService and service group names to add
- Remove Services
remove_servicetextService and service group names to remove
- Schedule
scheduletextSpecify the name of the schedule associated with the policy to be updated on Fortinet FortiGate.
- Action
actionselectSelect the policy action from following available options: Accept: Select this action to allow sessions that match this firewall policy. Inspection Mode: Select the appropriate inspection mode for the policy. You can choose from the following options: Flow Based(default) Proxy Based NAT: Select to enable NAT and specify following information: IP Pool Configuration: Select from the following options: Use Outgoing Interface Address Use Dynamic IP Pool: Specify pool names in CSV or list format in the Pool Name field. Preserve Source Port: Enable to prevent source NAT from changing a session's…
Options AcceptDenyWhen Action is Accept
- Inspection Mode
inspection_modeselectPolicy inspection mode (Flow Based/Proxy Based). Default is Flow Based mode. Proxy Based:Proxy based inspection.flow:Flow based inspection.
Options Flow BasedProxy Based - NAT
natcheckboxEnable/disable source NAT.
When NAT is true
- IP Pool Configuration
ip_pool_configselectSelect IP pool configuration
Options Use Outgoing Interface AddressUse Dynamic IP PoolWhen IP Pool Configuration is Use Dynamic IP Pool
- Pool Name
poolnametext requiredEnter pool names in csv or list format
- Preserve Source Port
fixedportselectEnable to prevent source NAT from changing a session's source port
Options EnableDisable
- Protocol Options
profile-protocol-optionstextName of an existing Protocol options profile.
- Security Profiles
security_profile_namemultiselectSelect security profiles to enable it
Options AntiVirusWeb FilterDNS FilterApplication ControlIPSFile FilterSSL InspectionWhen Security Profiles is AntiVirus
- Antivirus Profile
av_profiletext requiredName of an existing Antivirus profile.
When Security Profiles is Web Filter
- Web Filter Profile
webfilter_profiletext requiredName of an existing Web filter profile.
When Security Profiles is DNS Filter
- DNS Filter Profile
dnsfilter_profiletext requiredName of an existing DNS filter profile.
When Security Profiles is Application Control
- Application Control
application_listtext requiredName of an existing Application list.
When Security Profiles is IPS
- IPS Sensor
ips_sensortext requiredName of an existing IPS sensor.
When Security Profiles is File Filter
- File Filter Profile
file_filter_profiletext requiredName of an existing file-filter profile.
When Security Profiles is SSL Inspection
- SSL Inspection Profile
ssl_ssh_profiletext requiredName of an existing SSL SSH profile.
- Disable Security Profiles
security_profile_names_to_disablemultiselectSelect security profiles to disable it
Options AntiVirusWeb FilterDNS FilterApplication ControlIPSFile FilterSSL Inspection - Log Traffic
logtrafficselectEnable or disable logging. Log all sessions or security profile sessions.All:Log all sessions accepted or denied by this policy. UTM:Log traffic that has a security profile applied to it. Disable:Disable all logging for this policy.
Options AllUTMDisable
- Comments
commenttext(Optional) Comment to be added to the policy to be updated on Fortinet FortiGate
- Additional Policy Arguments
additional_argsjson(Optional) Specify policy arguments in JSON format to be updated on Fortinet FortiGate. You can enter arguments in the following format: {"field1": value1,"field2": value2}
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnshttp_methodrevisionrevision_changedold_revisionmkeyactionstatushttp_statusvdompathnameserialversionbuildDelete Policy 2 params
delete_policydelete_policyDeletes a policy that is configured on Fortinet FortiGate based on the ID of the policy and other input parameters you have specified.
- Policy ID
policyidtext requiredSpecify the ID of policy to be deleted from Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsmkeynamepathvdombuildserialactionstatusversionrevisionhttp_methodhttp_statusold_revisionrevision_changedExecute Command 7 params
execute_commandexecute_commandExecutes a CLI command on the FortiOS console based on the commands and other input parameters you have specified.
- Commands
cmd_listtext requiredSpecify the command that to execute on the FortiOS console. You can provide commands in the .csv or the list format.
- Username
usernametext requiredSpecify the username to access the FortiOS endpoint server to connect and execute the specified command.
- Password
passwordpasswordSpecify the password to access the FortiOS endpoint server to connect and execute the specified command.
- Private Key
private_keyfileSpecify the private key to perform SSH authentication on the FortiOS server.
- Port
portintegerSpecify the port number to use for connecting to the FortiOS server via SSH. By default, this is set to 22.
Default
22 - Interactive Mode
interactivecheckboxEnable this option to execute a list of commands sequentially in a single session. This mode is necessary to handle interactive prompts, such as "Do you want to continue? (y/n)", that may appear during the execution of commands.
Default
false - Timeout
timeoutintegerSpecify the time, in seconds, after which the execution of the remote command times out.
Default
10
Create User 5 params
create_usercreate_userCreates a new user in the Fortinet FortiGate server based on the username, authentication type, and other input parameters you have specified.
- User Type
user_typeselect requiredSelect user type based on which to create a new user. You can choose from following options: Local User: Specify values in following fields: Username: Specify the username for the user to be created in the Fortinet FortiGate server Password: Specify the password for the user to be created in the Fortinet FortiGate server Remote Radius User: Specify values in following fields: Username: Specify the username for the user to be created in the Fortinet FortiGate server Radius Server: Specify the name of the RADIUS server using which the user gets authenticated Remote TACACS+ User: Specify values…
Options Local UserRemote Radius UserRemote TACACS+ UserWhen User Type is Local User
- Username
nametext requiredSpecify the username for the user that you want to create in the Fortinet FortiGate server
- Password
passwdpassword requiredSpecify the password for the user that you want to create in the Fortinet FortiGate server
When User Type is Remote Radius User
- Username
nametext requiredSpecify the username for the user that you want to create in the Fortinet FortiGate server
- Radius Server
radius-servertext requiredSpecify the name of the RADIUS server using which the user gets authenticated
When User Type is Remote TACACS+ User
- Username
nametext requiredSpecify the username for the user that you want to create in the Fortinet FortiGate server
- TACACS+ Server
tacacs+-servertext requiredSpecify the name of the TACACS+ server using which the user gets authenticated.
- Two Factor Authentication
two-factorselectSelect one of the following options for the two-factor authentication: Enable: Select to enable the two-factor authentication. Specify values in the following fields: Authentication Type: Select the type of two-factor authentication for the user you are creating on Fortinet FortiGate. You can choose from following options: FortiToken: Select this option to use FortiToken as the authentication type. Specify values in the following fields: Token: Enter the token name used to authenticate the user Send Activation Code: Select one of the following options: Enable: Select the method of sending…
Options EnableDisableWhen Two Factor Authentication is Enable
- Authentication Type
auth_typeselect requiredSelect the type of two-factor authentication for the user you are creating in Fortinet FortiGate. You can choose between FortiToken or FortiToken Cloud.
Options FortiTokenFortiToken CloudWhen Authentication Type is FortiToken
- Token
fortitokentext requiredEnter the token name used to authenticate the user
- Send Activation Code
send_activation_codeselectSelect whether you want to Enable or Disable sending of an activation code for two-factor authentication
Options EnableDisableWhen Send Activation Code is Enable
- Activation Method
activation_methodselect requiredSelect the method of sending the activation code. You can choose between Email or SMS.
Options EmailSMS
- Email Address
email-toemailEnter email address of new user
- SMS
smsselectSelect whether you want to Enable or Disable SMS-based two-factor authentication for the user
Options EnableDisableWhen SMS is Enable
- Country Dial Code
country_codetext requiredSelect whether you want to Enable or Disable SMS-based two-factor authentication for the user
- Phone Number
phone_numbertext requiredEnter the mobile phone number of the user for two-factor authentication.
- User Account Status
statusselectSelect the account status of the user being created on Fortinet FortiGate. You can choose from following options: Enable Disable
Options EnableDisable - User Group
user_groupselectSelect the group to assign to the user being created on Fortinet FortiGate. You can choose from following options: Enable: Select to assign the user to the group specified in the User Group Names field. You can specify multiple user groups in a CSV or a list format. Disable: Select to disable assigning the user to a group.
Options EnableDisableWhen User Group is Enable
- User Group Names
user_group_nametext requiredEnter the user group name in csv or in list format
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsmkeynamepathvdombuildserialactionstatusversionrevisionhttp_methodhttp_statusold_revisionrevision_changedGet Users 4 params
get_usersget_usersRetrieves a list of all users that are configured on Fortinet FortiGate based on the input parameters you have specified.
- Name
nametextSpecify the name of the user for whom to retrieve data from the Fortinet FortiGate server
- Start
startintegerSpecify the starting entry index from where to retrieve users from the Fortinet FortiGate server.
Default
0 - Count
countintegerSpecify the maximum number of users to return.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsnamepathvdombuildserialstatussizelimit_reachedmatched_countnext_idxactionresultsversionrevisionhttp_methodhttp_statusUpdate User 11 params
update_userupdate_userUpdates an existing user in the Fortinet FortiGate server based on the username, authentication type, and other input parameters you have specified.
- User Type
user_typeselect requiredSelect user type based on which to update a user. You can choose from following options: Local User: Specify values in following fields: Username: Specify the existing username of the user to be updated in the Fortinet FortiGate server New Username: (Optional) Specify the new username of the existing user to be updated in the Fortinet FortiGate server Password: (Optional) Specify a new password for the user to be updated in the Fortinet FortiGate server Remote Radius User: Specify values in following fields: Username: Specify the existing username of the user to be updated in the Fortinet…
Options Local UserRemote Radius UserRemote TACACS+ UserWhen User Type is Local User
- Username
nametext requiredSpecify the existing username that you want to edit in the Fortinet FortiGate server.
- New Username
new_usernametextSpecify the new username for the user that you want to update in the Fortinet FortiGate server.
- Password
passwdpasswordSpecify a new password if you want to edit the password in the Fortinet FortiGate server
When User Type is Remote Radius User
- Username
nametext requiredSpecify the existing username that you want to edit in the Fortinet FortiGate server.
- New Username
new_usernametextSpecify the new username for the user that you want to update in the Fortinet FortiGate server.
- Radius Server
radius-servertextSpecify the name of the RADIUS server using which the user gets authenticated.
When User Type is Remote TACACS+ User
- Username
nametext requiredSpecify the existing username that you want to edit in the Fortinet FortiGate server.
- New Username
new_usernametextSpecify the new username for the user that you want to update in the Fortinet FortiGate server.
- TACACS+ Server
tacacs+-servertextSpecify the name of the TACACS+ server using which the user gets authenticated
- Two Factor Authentication
two-factorselectSelect one of the following options for the two-factor authentication: Enable: Select to enable the two-factor authentication. Disable: Select to disable the two-factor authentication.
Options EnableDisable - Authentication Type
auth_typeselectSelect the type of two-factor authentication for the user you are creating on Fortinet FortiGate. You can choose from following options: FortiToken: Select this option to use FortiToken as the authentication type. FortiToken Cloud: Select this option to use FortiToken Cloud as the authentication type.
Options FortiTokenFortiToken Cloud - Token
fortitokentextSpecify the token name used to authenticate the user.
- Send Activation Code
send_activation_codeselectSelect one of the following options Enable: Select the method of sending the activation code from the Activation Method field. You can choose from following options: Email SMS Disable: Select this option to disable sending of an activation code for two-factor authentication.
Options EnableDisableWhen Send Activation Code is Enable
- Activation Method
activation_methodselect requiredSelect the method of sending the activation code. You can choose between Email or SMS.
Options EmailSMS
- Email Address
email-toemailSpecify the email address of the user being updated on Fortinet FortiGate.
- SMS
smsselectSelect from the following options: Enable: Select to enable SMS-based two-factor authentication for the user being created on Fortinet FortiGate. Specify values in the following fields: Country Dial Code: Specify the dial-code of the country where the user being created, works. Phone Number: Specify the mobile phone number of the user for two-factor authentication. Disable: Select to disable SMS-based two-factor authentication for the user being created on Fortinet FortiGate.
Options EnableDisableWhen SMS is Enable
- Country Dial Code
country_codetext requiredEnter the country code of the user for two-factor authentication.
- Phone Number
phone_numbertext requiredEnter the mobile phone number of the user for two-factor authentication.
- User Account Status
statusselectSelect the account status of the user being created on Fortinet FortiGate. You can choose from following options: Enable Disable
Options EnableDisable - User Group Names To Add
user_group_nametextSpecify the user group names, in CSV or list format, in which to add the user you are updating on Fortinet FortiGate.
- User Group Names To Remove
user_group_name_to_removetextEnter the user group names, in the CSV or list format, from which to remove the user you are updating on Fortinet FortiGate.
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsmkeynamepathactionvdombuildserialstatusversionrevisionhttp_methodhttp_statusrevision_changedold_revisionDelete User 2 params
delete_userdelete_userDeletes a user who is configured on Fortinet FortiGate based on the name of the user you have specified.
- Name
nametext requiredSpecify the name of the user to be deleted from Fortinet FortiGate
- VDOM
vdomtext(Optional) Specify the Virtual Domain(VDOM) from which results are returned or on which to apply these changes. NOTE: You can specify the VDOM here as a configuration parameter, in the CSV or List format, or you can specify VDOMs as a function parameter, i.e., in the Configuration parameters while configuring this connector. If both are specified, the one that is specified in this operation overwrites the one specified in the configuration parameters. If this parameter is not provided, the management VDOM is used. If the admin does not have access to the VDOM, a permission error will be…
Returnsmkeynamepathactionvdombuildserialstatusversionrevisionhttp_methodhttp_statusold_revisionrevision_changedGet System Events 4 params
get_system_eventsget_system_eventsRetrieves system log data from the Fortinet FortiGate server, based on the input parameters you have specified
- Filter Query
filtertextSpecify the query using which to filter system events being retrieved from the Fortinet FortiGate server. For example, user=*"admin", level=*"emergency"
- Log Location
locationselect(Optional) Select the location from where to retrieve the system log data. You can choose from following options: Disk Memory FortiAnalyzer By default it is set to Memory.
Default
MemoryOptions DiskMemoryFortiAnalyzer - Start
starttextSpecify the starting entry index from where to retrieve data from the Fortinet FortiGate server.
- Rows
rowstextSpecify the maximum number of items to return.
Returnshttp_methodresultsvdomdevicecategorysubcategorystartrowssession_idcompletedtotal_linesnowstatusserialversionbuildpercent_logs_processedreadyGet User Last Login Details 1 param
get_user_list_login_detailsget_user_list_login_detailsRetrieves the last login details for a specified user from the Fortinet FortiGate server, based on the username you have specified.
- Username
usernametext requiredSpecify the username to retrieve their last login details from the Fortinet FortiGate server.
Returnsdatetimeeventtimetzlogidtypesubtypelevelvdlogdescsnuseruimethodsrcipdstipactionstatusreasonprofilemsg_metadataGet Country Names
get_country_namesget_country_namesRetrieve all Country names from Fortinet FortiGate.
No parameters.
Get Entries from External Dynamic List 3 params
get_entries_from_edlget_entries_from_edlFetches entries from the specified External Dynamic List (EDL) in Fortinet FortiGate, including status and counts.
- EDL Name
mkeytext requiredSpecify the name of the External Dynamic List (EDL) from which to retrieve entries.
- Status Only
status_onlycheckboxSet to true to retrieve resource file status only (skip valid/invalid entries).
Default
falseWhen Status Only is false
- Include Notes
include_notescheckboxSet to true to include notes with the resource file. Defaults to false.
- Counts Only
counts_onlycheckboxSet to true to retrieve only the valid/invalid counts for the resource file. Defaults to false.
- VDOM
vdomtext(Optional) Specify the VDOM from which to retrieve the external dynamic list entries.
Modify Entries in External Dynamic List 4 params
modify_entries_in_edlmodify_entries_in_edlAdds, removes, or replaces entries in the specified External Dynamic List (EDL) in Fortinet FortiGate.
- EDL Name
mkeytext requiredSpecify the name of the External Dynamic List (EDL) to add, remove, or replace entries.
- Action
actionselect requiredSelect the action to apply: Add, Remove, or Snapshot.
Options AddRemoveSnapshot - Entries
entriestext requiredProvide a comma-separated list of entries to modify in the External Dynamic List.
- VDOM
vdomtext(Optional) Specify the VDOM from which to modify the external dynamic list entries.
Returnsnamepathvdombuildactionserialstatusresultsversionhttp_methodvdom_not_existExecute API Request 4 params
execute_api_requestexecute_api_requestCalls any FortiOS REST API endpoint on the configured FortiGate using the connector's API key. REST only; to run CLI commands use Execute Command.
- Endpoint
endpointtext requiredSpecify the path of the FortiOS REST API endpoint to call on the configured FortiGate, for example /api/v2/monitor/system/status. A full URL is not accepted, so the API key is only ever sent to the configured FortiGate.
- Method
methodselect requiredSpecify the HTTP method of the request. You can choose from following options: GET, POST, PUT, PATCH, DELETE. By default it is GET.
Default
GETOptions GETPOSTPUTPATCHDELETE - Query Parameters
query_paramsjson(Optional) Specify the query-string parameters of the request as a JSON object. The VDOM from the configuration is added unless it is given here as vdom.
- Request Body
request_bodyjson(Optional) Specify the request body as a JSON object. It is sent for POST, PUT and PATCH requests.
Returnshttp_methodstatushttp_statusresults