FortiGate Cloud
Manage cloud-managed firewalls, report schedules and backups
Add and manage devices, schedule reports, set config auto-backup, block or unblock IP addresses, quarantine IPs, and call the FortiOS API through FortiGate Cloud.
github.com/ftnt-dspille/connector-fortigate-cloud
Connector code runs on your platform and is not hosted here. Review it at the source, then follow the .
Configuration · 6 fields
- Region
regionselect requiredSelect the FortiGate Cloud region that hosts your account. A device is only visible from the region it was provisioned into.
Default
GlobalOptions GlobalUSEUJapan - Server URL
server_urltextOptionally specify the FortiGate Cloud API URL to override the selected region, for example https://api.fortigate.forticloud.com. Leave blank to use the region.
- API ID
api_idtext requiredSpecify the API ID, i.e. the username of the FortiCloud IAM API user, in UUID format XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX. The IAM API user must be granted Admin permissions for FortiGate Cloud.
- Password
passwordpassword requiredSpecify the password of the FortiCloud IAM API user.
- Client ID
client_idtext requiredSpecify the client ID used to request the FortiGate Cloud access token.
Default
fortigatecloud - Verify SSL
verify_sslcheckboxSpecifies whether the SSL certificate for the server is to be verified.
Default
true
Operations · 22
Get Devices 3 params
get_devicesget_devicesRetrieves the list of devices provisioned to FortiGate Cloud, optionally paginated and sorted.
- Limit
limittextSpecify the maximum number of devices to retrieve per page.
- Offset
offsettextSpecify the index of the first device to retrieve, starting from 0.
- Sort
sorttextSpecify the field by which to sort the results. Only 'sn' is supported.
Get Device 1 param
get_deviceget_deviceRetrieves the details of a specific device provisioned to FortiGate Cloud based on its serial number.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
Add Device 1 param
add_deviceadd_deviceAdds a device to FortiGate Cloud using its device key.
- Device Key
device_keytext requiredSpecify the device key of the device to add to FortiGate Cloud.
Update Device Management 5 params
update_device_managementupdate_device_managementEnables or disables the FortiGate Cloud management feature for a device. Enabling management requires the FortiGate 'admin' user credentials; disabling it does not.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Enable Management
managementcheckbox requiredSelect this option to enable the management feature for the device, or clear it to disable management.
Default
true - Username
usernametextSpecify the FortiGate 'admin' user name. Required when enabling management.
- Password
passwordpasswordSpecify the FortiGate 'admin' user password. Required when enabling management.
- Force Password Change
force_password_changecheckboxSelect this option to force a password change on the device.
Get Report Schedules 1 param
get_report_schedulesget_report_schedulesRetrieves all report schedules configured for a device on FortiGate Cloud.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
Get Report Schedule 2 params
get_report_scheduleget_report_scheduleRetrieves a specific report schedule configured for a device on FortiGate Cloud based on its OID.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Schedule OID
oidinteger requiredSpecify the OID of the report schedule to retrieve.
Add or Update Report Schedule 7 params
add_report_scheduleadd_report_scheduleAdds a report schedule for a device on FortiGate Cloud, or updates an existing schedule when its OID is specified.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Config OID
config_oidinteger requiredSpecify the OID of the report configuration to schedule.
- Schedule OID
oidintegerSpecify the OID of an existing report schedule to update. Leave blank to add a new schedule.
- Schedule Type
schedule_typetextSpecify how often the report runs, for example: daily.
- VDOM
vdomtextSpecify the VDOM for which to generate the report.
- Email
emailtextSpecify the email address to which to send the report.
- Send Email
email_flagcheckboxSelect this option to email the report when it is generated.
Default
false
Delete Report Schedule 2 params
delete_report_scheduledelete_report_scheduleDeletes a report schedule from a device on FortiGate Cloud based on its OID.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Schedule OID
oidinteger requiredSpecify the OID of the report schedule to delete.
Get Config Auto Backup Setting 1 param
get_auto_backup_settingget_auto_backup_settingRetrieves the configuration auto backup setting of a device on FortiGate Cloud.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
Update Config Auto Backup Setting 6 params
update_auto_backup_settingupdate_auto_backup_settingUpdates the configuration auto backup setting of a device on FortiGate Cloud.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Enable Auto Backup
enablecheckboxSelect this option to enable configuration auto backup for the device.
Default
true - Backup Option
backup_optiontextSpecify when a backup is taken, for example: PERSESSION.
- Alert
alertcheckboxSelect this option to send an alert when a configuration backup occurs.
Default
false - Alert Language
alert_langtextSpecify the language of the alert email, for example: en.
- Alert Emails
alert_emailstextSpecify the email addresses to which to send backup alerts.
Call FortiOS API 5 params
fos_api_callfos_api_callProxies a FortiOS API call to a managed FortiGate through FortiGate Cloud. The FortiGate must be deployed to FortiGate Cloud with configuration management enabled and its management tunnel online. Only the GET method is available on free FortiGate Cloud accounts; the POST, PUT and DELETE methods require a paid FortiGate.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Method
methodselect requiredSelect the HTTP method of the FortiOS API call. POST, PUT and DELETE require a paid FortiGate.
Default
GETOptions GETPOSTPUTDELETE - FortiOS API Path
fos_api_pathtext requiredSpecify the FortiOS API path to call, for example: api/v2/monitor/license/status. Refer to the FortiOS API documentation for available paths.
- Query Parameters
query_parametersjsonSpecify the query parameters of the FortiOS API call as a JSON object. Refer to the FortiOS API documentation for available query parameters.
- Payload
payloadjsonSpecify the request body of the FortiOS API call as a JSON object. Applies to the POST and PUT methods.
Generic API Call 3 params
generic_api_callgeneric_api_callMakes an arbitrary call to the FortiGate Cloud API. Use this operation to reach endpoints that this connector does not expose as a dedicated action.
- Method
methodselect requiredSelect the HTTP method of the API call.
Default
GETOptions GETPOSTPUTDELETE - Endpoint
endpointtext requiredSpecify the API endpoint to call, relative to the FortiGate Cloud API base path, for example: /devices.
- Payload
payloadjsonSpecify the request body of the API call as a JSON object.
Get FortiGate System Status 1 param
get_fgt_system_statusget_fgt_system_statusReads the FortiOS system status (hostname, model, firmware, serial, VDOM, resource use) of a FortiGate managed by FortiGate Cloud, through the FortiGate Cloud FortiOS proxy.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
List Firewall Addresses 3 params
list_firewall_addresseslist_firewall_addressesLists the firewall address objects configured on a FortiGate managed by FortiGate Cloud, through the FortiGate Cloud FortiOS proxy. Supports limit and offset pagination.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Limit
limittextMaximum number of address objects to return (1-1000). Defaults to 100.
- Offset
offsettextNumber of address objects to skip, for pagination.
List Firewall Policies 3 params
list_firewall_policieslist_firewall_policiesLists the firewall policies configured on a FortiGate managed by FortiGate Cloud, in policy order (top of the match order first), through the FortiGate Cloud FortiOS proxy.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Limit
limittextMaximum number of policies to return (1-1000). Defaults to 100.
- Offset
offsettextNumber of policies to skip, for pagination.
Create Firewall Address 4 params
create_firewall_addresscreate_firewall_addressCreates a firewall address object on a FortiGate managed by FortiGate Cloud, through the FortiGate Cloud FortiOS proxy. The IP accepts a single IPv4 address (a /32 object) or a CIDR network. Writes through the FortiOS proxy require a paid FortiGate; an unentitled device answers 403 permission_deny.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Address Name
nametext requiredName of the firewall address object to create.
- IP or CIDR
iptext requiredIPv4 address or CIDR network for the address object, for example 203.0.113.10 or 203.0.113.0/24.
- Comment
commenttextOptional comment stored on the address object.
Delete Firewall Address 2 params
delete_firewall_addressdelete_firewall_addressDeletes a firewall address object on a FortiGate managed by FortiGate Cloud, through the FortiGate Cloud FortiOS proxy. Writes through the FortiOS proxy require a paid FortiGate; an unentitled device answers 403 permission_deny.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- Address Name
nametext requiredName of the firewall address object to delete.
Block IP 6 params
block_ipblock_ipBlocks an IPv4 address or CIDR on a FortiGate managed by FortiGate Cloud: creates (or reuses) an FSR-BLOCK-<ip> address object and a deny policy that matches only that address, then moves the policy to the top of the policy order. Traffic to or from other hosts is not affected. Idempotent: rerunning reuses existing objects. Writes through the FortiOS proxy require a paid FortiGate; an unentitled…
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- IP or CIDR
iptext requiredIPv4 address or CIDR network to block, for example 203.0.113.10 or 203.0.113.0/24.
- Direction
directionselectBlock traffic from the address (inbound), to the address (outbound), or both. Defaults to both.
Default
bothOptions inboundoutboundboth - Source Interfaces
srcintftextComma-separated source interface names for the deny policy. Defaults to any.
Default
any - Destination Interfaces
dstintftextComma-separated destination interface names for the deny policy. Defaults to any.
Default
any - Comment
commenttextOptional comment stored on the created address object and policies.
Unblock IP 2 params
unblock_ipunblock_ipRemoves what Block IP created for an IPv4 address or CIDR on a FortiGate managed by FortiGate Cloud: deletes the FSR-BLOCK deny policies, then deletes the address object unless a policy the connector did not create still references it. Idempotent: objects that are already absent are reported, not treated as errors. Writes through the FortiOS proxy require a paid FortiGate; an unentitled device…
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- IP or CIDR
iptext requiredIPv4 address or CIDR network to unblock, matching the value passed to Block IP.
Quarantine IP 5 params
quarantine_ipquarantine_ipQuarantines (bans) one or more IPv4 addresses on a FortiGate managed by FortiGate Cloud using the FortiOS Quarantine Monitor: a runtime ban that touches no address objects or policies and carries its own expiry, so it reverts on its own when the duration passes. Idempotent: already-banned addresses are reported, not re-banned. Writes through the FortiOS proxy require a paid FortiGate; an…
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- IP Addresses
ipstext requiredOne or more IPv4 addresses, comma-separated, for example 203.0.113.10, 198.51.100.4.
- Time To Live
time_to_liveselectHow long the ban stays in effect. Choose Custom Time to pass an exact duration in seconds with the Duration parameter.
Default
1 HourOptions 1 Hour6 Hours12 Hours1 Day1 Week1 MonthCustom TimeNever - Duration (seconds)
durationtextBan duration in seconds when Time To Live is Custom Time. 0 means the ban never expires.
- VDOM
vdomtextFortiOS VDOM that owns the Quarantine Monitor list. Defaults to root.
Default
root
Unquarantine IP 3 params
unquarantine_ipunquarantine_ipReleases Quarantine Monitor bans previously created by Quarantine IP (or the FortiGate CLI's diagnose user banned-ip add). Idempotent: addresses that are not currently banned are reported as such instead of erroring. Writes through the FortiOS proxy require a paid FortiGate; an unentitled device answers 403 permission_deny.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- IP Addresses
ipstext requiredOne or more IPv4 addresses, comma-separated, for example 203.0.113.10, 198.51.100.4.
- VDOM
vdomtextFortiOS VDOM that owns the Quarantine Monitor list. Defaults to root.
Default
root
List Banned IPs 2 params
list_banned_ipslist_banned_ipsLists the FortiOS Quarantine Monitor's current IP bans on a FortiGate managed by FortiGate Cloud. Each entry carries the vendor fields (ip_address, expiry, created, cause) verbatim. Requires the device's management tunnel to be up.
- Serial Number
sntext requiredSpecify the serial number of the FortiGate provisioned to FortiGate Cloud.
- VDOM
vdomtextFortiOS VDOM that owns the Quarantine Monitor list. Defaults to root.
Default
root