FortiOS 6.0.4 REST API Reference PDF
FortiOS 6.0.4 REST API Reference PDF
FortiOS 6.0.4 REST API Reference PDF
Version 6.0.4
FORTINET DOCUMENT LIBRARY
https://docs.fortinet.com
FORTINET VIDEO GUIDE
https://video.fortinet.com
FORTINET BLOG
https://blog.fortinet.com
CUSTOMER SERVICE & SUPPORT
https://support.fortinet.com
FORTINET COOKBOOK
https://cookbook.fortinet.com
FORTINET TRAINING & CERTIFICATION PROGRAM
https://www.fortinet.com/support-and-training/training.html
NSE INSTITUTE
https://training.fortinet.com
FORTIGUARD CENTER
https://fortiguard.com/
END USER LICENSE AGREEMENT
https://www.fortinet.com/doc/legal/EULA.pdf
FEEDBACK
Email: techdocs@fortinet.com
Change Log 5
Introduction 6
What's New in the REST API 6
Authentication 7
Session-based authentication 7
Token-based authentication 9
Authorization 12
Supported HTTP methods 12
Response codes 12
Debugging 13
CMDB API 15
URL path 15
URL parameters 15
Generic parameters 16
Specific parameters 16
Body data 17
Limitation 18
Filter with multiple key/value pairs 18
Filter Syntax 18
Filter Operators 18
Combining Filters 19
Reserved Characters 19
List of Methods 20
collection 20
resource 21
Examples 24
Retrieve table 24
Retrieve table schema 24
Retrieve table default 25
Purge table 25
Retrieve object 25
Create object 25
Edit object 25
Delete object 26
Clone object 26
Move object 26
Append child object 26
Edit child object 27
Delete child object 27
Purge child table 27
Retrieve complex table 27
Edit complex table 27
Send requests to multiple vdoms 28
Monitor API 29
URL path 29
URL parameters 29
Generic parameters 29
Specific parameters 30
Body data 30
File upload 30
File upload via JSON data 30
File upload via multi-part file 31
File download 31
File download via browser 31
File download via script 31
List of Methods 32
endpoint-control 43
firewall 48
geoip 58
ips 59
license 59
log 60
registration 65
router 69
system 72
switch-controller 86
extender-controller 113
user 114
utm 124
virtual-wan 125
webfilter 126
vpn 129
vpn-certificate 132
wanopt 135
webproxy 137
webcache 137
wifi 138
Examples 144
Date Change Description
2019-01-10 Initial release.
All requests to FortiOS REST APIs require valid authentication and authorization before being processed.
The following REST APIs are supported:
l CMDB API
l Retrieve object meta data (default, schema)
l Retrieve object/table (with filter, format, start, count, other flags)
l Create object
l Modify object
l Delete object
l Clone object
l Move object
l Monitor API
l Retrieve/Reset endpoint stats (with filter, start, count)
l Perform endpoint operations
l Upload/Download file
l Restore/Backup config
l Upgrade/Downgrade firmware
l Restart/Shutdown FGT
What's New in the REST API
l Added support for testing the connectivity of a given Sandbox IP
l Added support for retrieving the list of device types
l Updated the access groups for the endpoints
l Updated a few parameters including change in types and description
New APIs
Updated APIs
Removed APIs
Authentication
Starting in FortiOS 5.6.1, there are two ways that user can authenticate against the API:
l Session-based authentication (legacy)
l Token-based authentication (5.6.1 and newer)
Session-based authentication
As the name suggests, the authentication is valid per login session. The user needs to send a login request to obtain a
authentication cookie and CSRF token to be used for subsequent requests. The user then needs to send a logout
request to invalidate the authentication cookie and CSRF token.
Authentication Cookie
Authentication cookie (APSCOOKIE) is provided by the API after a successful login request. All subsequent requests
must include this cookie to be authorized by the API. Any request without the cookie or with mismatched cookie will be
denied access to the API (HTTP 401 error code).
CSRF Tokens
Cross-Site Request Forgery (CSRF) Tokens are alphanumeric values that are passed back-and-forth between client and
server to ensure that a user's form submission does not originate from an offsite document.
The CSRF token is available in the session ccsrftoken cookie, which must be included in the request header under
X-CSRFTOKEN. See test script sample for how to handle CSRF token.
Only write requests (HTTP POST/PUT/DELETE) need CSRF tokens. Read requests (HTTP
GET) do not require CSRF tokens.
Setting Up an Authenticated Session
To authenticate with the FortiGate and request a session, send a POST request to the log in request handler with your
username and password.
Login URL /logincheck
The request body must contain the following keys in URL form encoding:
Example:
POST /logincheck
username=AdminUser&secretkey=AdminPassword&ajax=1
Ensure that you're using the correct protocol. By default, a FortiGate will redirect HTTP requests to HTTPS and your
login requests may fail. As well, FortiGate 's will use a self-signed server certificate by default. Refer to the
documentation for the specific library or framework that you're using to validate the certificate manually.
The response to this request will be in the following format:
<status_code><javascript>
A successful login response would be:
1document.location="/ng/prompt?viewOnly&redir=%2Fng%2F";
For most uses, you only need to read the first character of the response body to get the response status code.
Code Description
0 Log in failure. Most likely an incorrect username/password combo.
1 Successful log in*
2 Admin is now locked out
3 Two-factor Authentication is needed**
* In some cases users may receive a successful login status but not be completely authenticated, such as when there is
a post-login-banner configured.
** For Two-Factor log in, make another POST request with the same username and password, but include the token_
code parameter with the value of the one-time-password.
Once you've received a successful login status, read each Set-Cookie header and retain the following Cookies:
Name Description
APSCOOKIE_<NUMBER> This cookie authenticates you with the FortiGate. You must present this cookie
with every subsequent request you make after logging in.
ccsrftoken This is the (c)CSRF token. As described in Authorization on page 12, you must
provide the value of this cookie as a X-CSRFTOKEN header. *
*There may be two ccsrftoken cookies, one with a number suffix that matches the APSCOOKIE. For simplicity, you
don't need to locate that cookie and can rely on the ccsrftoken cookie.
Logging out of an Authenticated Session
Authenticated sessions will remain active with the device until any of the following occurs:
l The admin logs out
l The session remains inactive for longer than the timeout specified by the admintimeout setting in config
system global
l The admin is disconnected by another admin
There are a limited number of admins that can have active sessions on the device, therefore it's recommended that you
log out when you're finished using the device.
To log out, a POST request to the /logout URL will remove the current session.
Logout URL /logout
Body data none needed
Token-based authentication
The authentication is done via a single API token. This token is only generated once when creating an API admin. The
user must store this token in a safe place because it cannot be retrieved again. The user can however regenerate the
token at any time. Each API request must include the token in order to be authenticated as the associated API admin.
Only HTTPS access is allowed with token-based authentication to ensure maximum security.
Create API admin
In order to use the token-based authentication, user must first create a special API admin. The user can assign vdom
provision and admin profile to this API admin which defines the admin's privileges.
Only Super admin can create or modify API admin.
GUI does not allow user to pick super admin or prof_admin profile for API admin to encourage
user to use a special profile.
Trusted host
At least one trusted host must be configured for the API admin. The user can define multiple trusted host/subnet. IPv6
hosts are also supported.
PKI Certificate
Token-based also supports certificate matching as an extra layer of security (set PKI group in api-user). Both client
certificate and token must match to be granted access to the API. PKI option is enabled by default.
CORS permission
Token-based also supports Cross Origin Resource Sharing (CORS) allowing third-party web apps to make API requests
to FGT using the token. CORS is disabled by default.
Generate API token
After creating the api-user, user can generate new token via CLI command, GUI, or REST API. The token is only shown
once and cannot be retrieved after. The user needs to generate new token if they forget.
CLI command:
execute api-user generate-key [API user name]
New API key: fccys3cfbhyhqbqghkyzm1QGNnm31r
The bearer of this API key will be granted all access privileges assigned to the api-user api-
admin.
REST API
Use the API token
The API token can be included in any REST API request via either request header or URL parameter
Passing API token via request header
Passing API token via request URL parameter
The user needs to explicitly include the following field in the request URL parameter: access_token=[api_token]
Authorization
After the request is authenticated, the API will check if the associated admin has the permission to perform the
operation. Each admin or API admin has an admin profile and vdom scope which define the privileges of the admin. For
example, if the admin has vdom scope set to "vdom1" and a profile that only has read-only permission to Firewall
objects access group, the admin can only access vdom1 resource, and cannot make change to Firewall objects (policy,
address, etc).
Each endpoint requires specific group permission defined in 'Access Group' of the endpoint summary table. Request to
the endpoint will be checked against this access group to ensure the admin has proper permission to access the
resource. Make sure the administrative account you login with has the permissions required to perform the intended
actions.
Admin with read-only permission to the resource can only send read requests (HTTP GET) to the resource. Admin with
write permission to the resource can send read/write requests (HTTP GET/POST/PUT/DELETE) to the resource. Admin
with no permission to the resource cannot access the resource.
Request with insufficient profile permission will return 403 error.
Supported HTTP methods
FortiOS REST APIs support the following HTTP methods:
HTTP Method Description
GET Retrieve a resource or collection of resources.
POST Create a resource or execute actions.
PUT Update a resource.
DELETE Delete a resource or collection of resources.
For any action other than GET, you must provide the X-CSRFTOKEN header in the request. The value of this header is
the value of the ccsrftoken cookie that is provided by the FortiGate when you log in.
If the request is submitted using HTTP POST , the HTTP method can also be overridden using the "X-HTTP-Method-
Override" HTTP header.
Response codes
FortiOS APIs use well-defined HTTP status codes to indicate the results of queries to the API.
The following table shows how some of the HTTP status codes are used in the context of FortiOS REST APIs.
HTTP Response Code Description
200 - OK Request returns successful.
400 - Bad Request Request cannot be processed by the API.
401 - Not Authorized Request without successful login session.
403 - Forbidden Request is missing CSRF token or administrator is missing access profile
permissions.
404 - Resource Not Found Unable to find the specified resource.
405 - Method Not Allowed Specified HTTP method is not allowed for this resource.
413 - Request Entity Too Large Request cannot be processed due to large entity.
424 - Failed Dependency Fail dependency can be duplicate resource, missing required parameter, missing
required attribute, invalid attribute value.
429 - Too many requests The request is actively blocked by FGT due to a rate limit. For example, if an
admin uses invalid credentials too many times, there will be a timeout before
they can try again.
500 - Internal Server Error Internal error when processing the request.
Debugging
Verbose debug output can be enabled in the FortiGate CLI with the following commands:
diagnose debug enable
diagnose debug application httpsd -1
This debug will also include all requests to/from the FortiOS web interface, in addition to
REST API requests.
CMDB API is used to retrieve and modify CLI configurations. For example, create/edit/delete firewall policy.
URL path
All CMDB requests start with '/api/v2/cmdb/'. Below is the format of CMDB URL path.
/api/v2/cmdb/<path>/<name>/<mkey>(optional)/<child_name>(optional)/<child_mkey>(optional)/
CMDB URL path follows CLI commands syntax with an exception of vdom configuration.
For operations on the entire table, mkey is not needed. For instance, add new entry, get all entries, purge table.
For operations on a specific resource, mkey is required. For example, edit/delete/clone/move a firewall policy.
For operations on the child table, child_name is required. For example, retrieve child table, purge child table, add new
entry to child table.
For operations on the child table entry, child_mkey is required. For example, delete/move child object.
URL parameters
In addition to the URL path, user can specify URL parameters which are appended to the URL path.
Generic parameters
The following URL parameters are generic to all CMDB requests.
Specific parameters
Each CMDB method may require extra URL parameters which are unique to the method. Those extra parameters are
documented in the "Extra Parameters" section of each CMDB method.
Below are some examples.
Body data
Beside URL parameters, some POST/PUT requests also require body data, which must be included in the HTTP body.
For example, to create/edit firewall address object, user needs to specify the new/edit object data.
GET/DELETE requests do not accept body data.
Limitation
If the body data has the same name as some reserved URL parameters, such as name, path, or action, the request
would fail due to the conflict. For example, firewall policy has 'name' and 'action' attribute which conflict with the
reserved URL parameter 'name' and 'action'. POST/PUT with normal method would fail with 405 error. A workaround is
to enclosed all object data in a 'json' keyword so the API can correctly identify object data. For example:
Filter with multiple key/value pairs
Filtering multiple key/value pairs are also supported for all CMDB retrieval requests via 'filter' URL parameter.
Filter Syntax
Filter Operators
Operator Description
== Case insensitive match with pattern.
!= Does not match with pattern (case insensitive).
Operator Description
=@ Pattern found in object value (case insensitive).
!@ Pattern not found in object value (case insensitive).
<= Value must be less than or equal to pattern.
< Value must be less than pattern.
>= Value must be greater than or equal to pattern.
> Value must be greater than pattern.
Combining Filters
Filters can be combined to create complex queries.
Reserved Characters
The following characters need to be escaped if they are part of a filter pattern.
Character Escaped Value
, \,
\ \\
List of Methods
collection
GET
Summary Select all entries in a CLI table.
HTTP Method GET
ETag Caching Enabled
Response Type array
Extra parameters
resource
GET: default
Summary Return the CLI default values for this object type.
HTTP Method GET
ETag Caching Enabled
Response Type object
GET: default
Summary Return the CLI default values for entire CLI tree.
HTTP Method GET
Response Type object
GET: schema
Summary Return the CLI schema for this object type.
HTTP Method GET
ETag Caching Enabled
Response Type object
GET: schema
Summary Return schema for entire CLI tree.
HTTP Method GET
Response Type object
GET: revision
Summary Return the CMDB revision for this object type.
HTTP Method GET
ETag Caching Enabled
Response Type object
DELETE
Summary Delete all objects in this table.
HTTP Method DELETE
POST
Summary Create an object in this table.
HTTP Method POST
GET
Summary Select a specific entry from a CLI table.
HTTP Method GET
ETag Caching Enabled
Response Type array
Extra parameters
PUT
Summary Update this specific resource.
HTTP Method PUT
PUT: move
Summary Move this specific resource.
HTTP Method PUT
Extra parameters
POST: clone
Summary Clone this specific resource.
HTTP Method POST
Extra parameters
DELETE
Summary Delete this specific resource.
HTTP Method DELETE
GET
Summary Build API directory.
HTTP Method GET
Examples
Retrieve table
Retrieve table schema
Retrieve table default
Purge table
Retrieve object
Create object
Edit object
Delete object
Clone object
Move object
Append child object
Edit child object
Delete child object
Purge child table
Retrieve complex table
Edit complex table
Send requests to multiple vdoms
Monitor API is used to perform specific actions on endpoint resources. For example, retrieve/close firewall sessions,
restart/shutdown FGT, backup/restore config file.
URL path
All Monitor API requests start with '/api/v2/monitor/'. Below is the format of Monitor URL path:
/api/v2/monitor/<uri>/
Each Monitor endpoint has a specific URI, which are provided by the URI field of each endpoint.
URL parameters
In addition to the URL path, user can specify URL parameters which are appended to the URL path.
Generic parameters
The following URL parameters are generic to all Monitor requests.
Specific parameters
Each Monitor endpoint may require extra URL parameters which are unique to the endpoint. Those extra parameters
are documented in the "Extra Parameters" section of each endpoint.
Required parameters are marked with "required: true" flag.
Below are some examples.
Body data
Beside URL parameters, some POST requests also require body data, which must be included in the HTTP body. The
extra body data are documented in "Extra Parameters" section of each endpoint.
GET requests do not accept body data.
Required body data are marked with "required: true" flag.
Below are some examples.
File upload
File upload is supported for some endpoints. For example, upload VM license, restore config file. The upload file must
be stored in the HTTP body. There are two different methods to do so: via JSON data or multi-part file.
File upload via JSON data
The upload file can be encoded directly into the HTTP body as JSON data using the 'file_content' field.
The JSON data must be encoded in base64 format.
For instance, below is how you can upload/restore config file via JSON data using Python Requests module.
self.session.post(url='/api/v2/monitor/system/config/restore',
params={"vdom": "vdom1"},
data={"source": "upload",
"scope": "vdom",
"file_content": b64encode(open("vd1.conf.txt", "r").read())})
File upload via multi-part file
Another way to store upload file in HTTP body is to include it as a multi-part file.
The multi-part file does not need to be encoded in base64 format.
For instance, below is how you can upload/restore config file via multi-part file using Python Requests module.
self.session.post(url='/api/v2/monitor/system/config/restore',
params={"vdom": "vdom1"},
data={"source": "upload",
"scope": "vdom"},
files=[('random_name',
('random_conf.conf', open("vd1.conf.txt", "r"), 'text/plain'))])
File download
File download is also supported in some endpoints. For example, download CA certificate, backup config file.
The downloaded file is stored in the response's raw content, not JSON data.
For example, here is the request to download global certificate name Fortinet_Factory, type local, scope
global:
GET /api/v2/monitor/system/certificate/download?mkey=Fortinet_
Factory&type=local&scope=global
File download via browser
When sending file download request via a browser, the browser automatically checks the response's header for
'Content-Disposition': attachment. If present, the browser will download the file to local directory using the
name.
File download via script
When sending file download request via a script, the script will need to manually perform the above steps to convert the
response's content into a file. For example, the script needs to check the response header for 'Content-
Disposition': attachment, and write the content into a local file with the given name.
List of Methods
endpoint-control
profile: xml
Summary List XML representation for each endpoint-control profile.
URI endpoint-control/profile/xml/
HTTP Method GET
Action xml
Access Group utmgrp.endpoint-control
Response Type array
Extra parameters
registration-password: check
Summary Check if provided registration password is valid for current VDOM.
URI endpoint-control/registration-password/check/
HTTP Method POST
Action check
Access Group utmgrp.endpoint-control
Response Type boolean
Extra parameters
record-list: select
Summary List endpoint records.
URI endpoint-control/record-list/select/
HTTP Method GET
Action select
Access Group utmgrp.endpoint-control
Response Type array
Extra parameters
registration: summary
Summary Summary of FortiClient registrations.
URI endpoint-control/registration/summary/
HTTP Method GET
Action summary
Access Group utmgrp.endpoint-control
registration: quarantine
Summary Quarantine endpoint by FortiClient UID or MAC.
URI endpoint-control/registration/quarantine/
HTTP Method POST
Action quarantine
Access Group utmgrp.endpoint-control
Extra parameters
registration: unquarantine
Summary Unquarantine endpoint by FortiClient UID or MAC.
URI endpoint-control/registration/unquarantine/
HTTP Method POST
Action unquarantine
Access Group utmgrp.endpoint-control
Extra parameters
registration: block
Summary Block endpoint by FortiClient UID or MAC.
URI endpoint-control/registration/block/
HTTP Method POST
Action block
Access Group utmgrp.endpoint-control
Extra parameters
registration: unblock
Summary Unblock endpoint by FortiClient UID or MAC.
URI endpoint-control/registration/unblock/
HTTP Method POST
Action unblock
Access Group utmgrp.endpoint-control
Extra parameters
registration: deregister
Summary Deregister endpoint by FortiClient UID or MAC.
URI endpoint-control/registration/deregister/
HTTP Method POST
Action deregister
Access Group utmgrp.endpoint-control
Extra parameters
installer: select
Summary List available FortiClient installers.
URI endpoint-control/installer/select/
HTTP Method GET
Action select
Access Group utmgrp.endpoint-control
Extra parameters
installer: download
Summary Download a FortiClient installer via FortiGuard.
URI endpoint-control/installer/download/
HTTP Method GET
Action download
Access Group utmgrp.endpoint-control
Response Type object
Extra parameters
avatar: download
Summary Download an endpoint avatar image.
URI endpoint-control/avatar/download/
HTTP Method GET
Action download
Access Group utmgrp.endpoint-control
ETag Caching Enabled
Response Type object
Extra parameters
firewall
health: select
Summary List configured load balance server health monitors.
URI firewall/health/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type array
local-in: select
Summary List implicit and explicit local-in firewall policies.
URI firewall/local-in/select/
HTTP Method GET
Action select
Access Group fwgrp.policy
Response Type array
acl: select
Summary List counters for all IPv4 ACL.
URI firewall/acl/select/
HTTP Method GET
Action select
Access Group fwgrp.policy
acl: clear_counters
Summary Reset counters for one or more IPv4 ACLs by policy ID.
URI firewall/acl/clear_counters/
HTTP Method POST
Action clear_counters
Access Group fwgrp.policy
Extra parameters
acl6: select
Summary List counters for all IPv6 ACL.
URI firewall/acl6/select/
HTTP Method GET
Action select
Access Group fwgrp.policy
acl6: clear_counters
Summary Reset counters for one or more IPv6 ACLs by policy ID.
URI firewall/acl6/clear_counters/
HTTP Method POST
Action clear_counters
Access Group fwgrp.policy
Extra parameters
internet-service-match: select
Summary List internet services that exist at a given IP or Subnet.
URI firewall/internet-service-match/select/
HTTP Method GET
Action select
Access Group fwgrp.address
Response Type array
Extra parameters
internet-service-details: select
Summary List all details for a given Internet Service ID.
URI firewall/internet-service-details/select/
HTTP Method GET
Action select
Access Group fwgrp.address
Extra parameters
policy: select
Summary List traffic statistics for IPv4 policies.
URI firewall/policy/select/
HTTP Method GET
Action select
Access Group fwgrp.policy
Response Type array
Extra parameters
policy: reset
Summary Reset traffic statistics for all IPv4 policies.
URI firewall/policy/reset/
HTTP Method POST
Action reset
Access Group fwgrp.policy
policy: clear_counters
Summary Reset traffic statistics for one or more IPv4 policies by policy ID.
URI firewall/policy/clear_counters/
HTTP Method POST
Action clear_counters
Access Group fwgrp.policy
Extra parameters
policy6: select
Summary List traffic statistics for IPv6 policies.
URI firewall/policy6/select/
HTTP Method GET
Action select
Access Group fwgrp.policy
Response Type array
Extra parameters
policy6: reset
Summary Reset traffic statistics for all IPv6 policies.
URI firewall/policy6/reset/
HTTP Method POST
Action reset
Access Group fwgrp.policy
policy6: clear_counters
Summary Reset traffic statistics for one or more IPv6 policies by policy ID.
URI firewall/policy6/clear_counters/
HTTP Method POST
Action clear_counters
Access Group fwgrp.policy
Extra parameters
proxy-policy: select
Summary List traffic statistics for all explicit proxy policies.
URI firewall/proxy-policy/select/
HTTP Method GET
Action select
Access Group fwgrp.policy
proxy-policy: clear_counters
Summary Reset traffic statistics for one or more explicit proxy policies by policy ID.
URI firewall/proxy-policy/clear_counters/
HTTP Method POST
Action clear_counters
Access Group fwgrp.policy
Extra parameters
policy-lookup: select
Summary Performs a policy lookup by creating a dummy packet and asking the kernel which
policy would be hit.
URI firewall/policy-lookup/select/
HTTP Method GET
Action select
Access Group fwgrp.policy
Response Type object
Extra parameters
session: select
Summary List all active firewall sessions (optionally filtered).
URI firewall/session/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type array
Extra parameters
session: clear_all
Summary Immediately clear all active IPv4 and IPv6 sessions and IPS sessions of current
VDOM.
URI firewall/session/clear_all/
HTTP Method POST
Action clear_all
Access Group sysgrp.cfg
Response Type int
session: close
Summary Close a specific firewall session that matches all provided criteria.
URI firewall/session/close/
HTTP Method POST
Action close
Access Group sysgrp.cfg
Extra parameters
shaper: select
Summary List of statistics for configured firewall shared traffic shapers.
URI firewall/shaper/select/
HTTP Method GET
Action select
Access Group fwgrp.others
Response Type array
shaper: reset
Summary Reset statistics for all configured traffic shapers.
URI firewall/shaper/reset/
HTTP Method POST
Action reset
Access Group fwgrp.others
per-ip-shaper: select
Summary List of statistics for configured firewall per-IP traffic shapers.
URI firewall/per-ip-shaper/select/
HTTP Method GET
Action select
Access Group fwgrp.others
Response Type array
per-ip-shaper: reset
Summary Reset statistics for all configured firewall per-IP traffic shapers.
URI firewall/per-ip-shaper/reset/
HTTP Method POST
Action reset
Access Group fwgrp.others
load-balance: select
Summary List all firewall load balance servers.
URI firewall/load-balance/select/
HTTP Method GET
Action select
Access Group fwgrp.others
Response Type array
Extra parameters
address-fqdns: select
Summary List of FQDN address objects and the IPs they resolved to.
URI firewall/address-fqdns/select/
HTTP Method GET
Action select
Access Group fwgrp.address
Response Type object
address-fqdns6: select
Summary List of IPv6 FQDN address objects and the IPs they resolved to.
URI firewall/address-fqdns6/select/
HTTP Method GET
Action select
Access Group fwgrp.address
Response Type object
ippool: select
Summary List IPv4 pool statistics.
URI firewall/ippool/select/
HTTP Method GET
Action select
Access Group fwgrp.policy
Response Type object
address-dynamic: select
Summary List of Fabric Connector address objects and the IPs they resolve to.
URI firewall/address-dynamic/select/
HTTP Method GET
Action select
Access Group fwgrp.address
Response Type object
address6-dynamic: select
Summary List of IPv6 Fabric Connector address objects and the IPs they resolve to.
URI firewall/address6-dynamic/select/
HTTP Method GET
Action select
Access Group fwgrp.address
Response Type object
geoip
geoip-query: select
Summary Retrieve location details for IPs queried against FortiGuard's geoip service.
URI geoip/geoip-query/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type object
Extra parameters
ips
rate-based: select
Summary Returns a list of rate-based signatures in IPS package.
URI ips/rate-based/select/
HTTP Method GET
Action select
Access Group utmgrp.ips
Response Type array
license
status: select
Summary Get current license & registration status.
URI license/status/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type object
database: upgrade
Summary Upgrade a license database on this device using uploaded file.
URI license/database/upgrade/
HTTP Method POST
Action upgrade
Access Group sysgrp.upd
Response Type object
Extra parameters
forticare-resellers: select
Summary Get current FortiCare resellers for the requested country.
URI license/forticare-resellers/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type object
Extra parameters
forticare-org-list: select
Summary Get FortiCare organization size and industry lists.
URI license/forticare-org-list/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type object
log
current-disk-usage: select
Summary Return current used, free and total disk bytes.
URI log/current-disk-usage/select/
HTTP Method GET
Action select
Access Group loggrp.data-access
device: state
Summary Retrieve information on state of log devices.
URI log/device/state/
HTTP Method GET
Action state
Access Group loggrp.data-access
Response Type object
forticloud: select
Summary Return FortiCloud log status.
URI log/forticloud/select/
HTTP Method GET
Action select
Access Group loggrp.config
fortianalyzer: select
Summary Return FortiAnalyzer/FortiManager log status.
URI log/fortianalyzer/select/
HTTP Method GET
Action select
Access Group loggrp.config
Extra parameters
fortianalyzer-queue: select
Summary Retrieve information on FortiAnalyzer's queue state. Note:- FortiAnalyzer logs are
queued only if upload-option is realtime.
URI log/fortianalyzer-queue/select/
HTTP Method GET
Action select
Access Group loggrp.config
Response Type object
Extra parameters
hourly-disk-usage: select
Summary Return historic hourly disk usage in bytes.
URI log/hourly-disk-usage/select/
HTTP Method GET
Action select
Access Group loggrp.data-access
historic-daily-remote-logs: select
Summary Returns the amount of logs in bytes sent daily to a remote logging service
(FortiCloud or FortiAnalyzer).
URI log/historic-daily-remote-logs/select/
HTTP Method GET
Action select
Access Group loggrp.data-access
Response Type object
Extra parameters
stats: select
Summary Return number of logs sent by category per day for a specific log device.
URI log/stats/select/
HTTP Method GET
Action select
Access Group loggrp.data-access
Response Type array
Extra parameters
stats: reset
Summary Reset logging statistics for all log devices.
URI log/stats/reset/
HTTP Method POST
Action reset
Access Group loggrp.data-access
forticloud-report: download
Summary Download PDF report from FortiCloud.
URI log/forticloud-report/download/
HTTP Method GET
Action download
Access Group loggrp.data-access
Response Type object
Extra parameters
ips-archive: download
Summary Download IPS/application control packet capture files. Uses configured log
display device.
URI log/ips-archive/download/
HTTP Method GET
Action download
Access Group loggrp.data-access
Response Type object
Extra parameters
policy-archive: download
Summary Download policy-based packet capture archive.
URI log/policy-archive/download/
HTTP Method GET
Action download
Access Group loggrp.data-access
Response Type object
Extra parameters
av-archive: download
Summary Download file quarantined by AntiVirus.
URI log/av-archive/download/
HTTP Method GET
Action download
Access Group loggrp.data-access
Response Type object
Extra parameters
event: select
Summary List all event log descriptions.
URI log/event/select/
HTTP Method GET
Action select
Access Group any
Response Type array
registration
forticloud: login
Summary Login to FortiCloud.
URI registration/forticloud/login/
HTTP Method POST
Action login
Access Group sysgrp.cfg
Response Type object
Extra parameters
forticloud: create
Summary Create a FortiCloud account.
URI registration/forticloud/create/
HTTP Method POST
Action create
Access Group sysgrp.cfg
Response Type object
Extra parameters
forticloud: logout
Summary Logout from FortiCloud.
URI registration/forticloud/logout/
HTTP Method POST
Action logout
Access Group sysgrp.cfg
Response Type object
forticloud: disclaimer
Summary Retrieve the FortiCloud disclaimer.
URI registration/forticloud/disclaimer/
HTTP Method GET
Action disclaimer
Access Group sysgrp.cfg
Response Type object
forticloud: domains
Summary Retrieve a list of FortiCloud login domains.
URI registration/forticloud/domains/
HTTP Method GET
Action domains
Access Group sysgrp.cfg
Response Type object
forticare: login
Summary Login to FortiCare.
URI registration/forticare/login/
HTTP Method POST
Action login
Access Group sysgrp.cfg
Response Type object
Extra parameters
forticare: create
Summary Create a new FortiCare account.
URI registration/forticare/create/
HTTP Method POST
Action create
Access Group sysgrp.cfg
Response Type object
Extra parameters
forticare: add-license
Summary Add a FortiCare license.
URI registration/forticare/add-license/
HTTP Method POST
Action add-license
Access Group sysgrp.cfg
Response Type object
Extra parameters
router
ipv4: select
Summary List all active IPv4 routing table entries.
URI router/ipv4/select/
HTTP Method GET
Action select
Access Group netgrp.route-cfg
Response Type array
Extra parameters
ipv6: select
Summary List all active IPv6 routing table entries.
URI router/ipv6/select/
HTTP Method GET
Action select
Access Group netgrp.route-cfg
Response Type array
Extra parameters
statistics: select
Summary Retrieve routing table statistics, including number of matched routes.
URI router/statistics/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type object
Extra parameters
lookup: select
Summary Performs a route lookup by querying the routing table.
URI router/lookup/select/
HTTP Method GET
Action select
Access Group netgrp.route-cfg
Response Type object
Extra parameters
policy: select
Summary Retrieve a list of active IPv4 policy routes.
URI router/policy/select/
HTTP Method GET
Action select
Access Group netgrp.route-cfg
Extra parameters
policy6: select
Summary Retrieve a list of active IPv6 policy routes.
URI router/policy6/select/
HTTP Method GET
Action select
Access Group netgrp.route-cfg
Extra parameters
system
admin: toggle-vdom-mode
Summary Toggles VDOM mode on/off. Enables or disables VDOM mode if it is disabled or
enabled respectively.
URI system/admin/toggle-vdom-mode/
HTTP Method POST
Action toggle-vdom-mode
Access Group sysgrp.cfg
Response Type object
api-user: generate-key
Summary Generate a new api-key for the specified api-key-auth admin. The old api-key will
be replaced. The response contains the only chance to read the new api-key
plaintext in the api_key field.
URI system/api-user/generate-key/
HTTP Method POST
Action generate-key
Access Group sysgrp.admin
Response Type object
Extra parameters
config-revision: select
Summary Returns a list of system configuration revisions.
URI system/config-revision/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type object
config-revision: update-comments
Summary Updates comments for a system configuration file.
URI system/config-revision/update-comments/
HTTP Method POST
Action update-comments
Access Group sysgrp.cfg
Response Type object
Extra parameters
config-revision: delete
Summary Deletes one or more system configuration revisions.
URI system/config-revision/delete/
HTTP Method POST
Action delete
Access Group sysgrp.cfg
Response Type object
Extra parameters
config-revision: file
Summary Download a specific configuration revision.
URI system/config-revision/file/
HTTP Method GET
Action file
Access Group sysgrp.cfg
Response Type object
Extra parameters
config-revision: info
Summary Retrieve meta information for a specific configuration revision.
URI system/config-revision/info/
HTTP Method GET
Action info
Access Group sysgrp.cfg
Response Type object
Extra parameters
config-revision: save
Summary Create a new config revision checkpoint.
URI system/config-revision/save/
HTTP Method POST
Action save
Access Group sysgrp.cfg
Response Type object
Extra parameters
current-admins: select
Summary Return a list of currently logged in administrators.
URI system/current-admins/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type array
disconnect-admins: select
Summary Disconnects logged in administrators.
URI system/disconnect-admins/select/
HTTP Method POST
Action select
Access Group sysgrp.cfg
Response Type object
Extra parameters
id int Admin ID No
time: set
Summary Sets current system time stamp.
URI system/time/set/
HTTP Method POST
Action set
Access Group sysgrp.cfg
Response Type object
Extra parameters
time: select
Summary Gets current system time stamp.
URI system/time/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type object
os: reboot
Summary Immediately reboot this device.
URI system/os/reboot/
HTTP Method POST
Action reboot
Access Group sysgrp.cfg
Response Type object
Extra parameters
os: shutdown
Summary Immediately shutdown this device.
URI system/os/shutdown/
HTTP Method POST
Action shutdown
Access Group sysgrp.cfg
Response Type object
Extra parameters
global-resources: select
Summary Retrieve current usage of global resources as well as both the default and user
configured maximum values.
URI system/global-resources/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
vdom-resource: select
Summary Retrieve VDOM resource information, including CPU and memory usage.
URI system/vdom-resource/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
dhcp: select
Summary Returns a list of all DHCP IPv4 and IPv6 DHCP leases.
URI system/dhcp/select/
HTTP Method GET
Action select
Access Group netgrp.cfg
Response Type array
Extra parameters
dhcp: revoke
Summary Revoke IPv4 DHCP leases.
URI system/dhcp/revoke/
HTTP Method POST
Action revoke
Access Group netgrp.cfg
Extra parameters
ip array Optional list of addresses to revoke. Defaults to all addresses if not No
provided.
dhcp6: revoke
Summary Revoke IPv6 DHCP leases.
URI system/dhcp6/revoke/
HTTP Method POST
Action revoke
Access Group netgrp.cfg
Extra parameters
ip array Optional list of addresses to revoke. Defaults to all addresses if not No
provided.
firmware: select
Summary Retrieve a list of firmware images available to use for upgrade on this device.
URI system/firmware/select/
HTTP Method GET
Action select
Access Group sysgrp.mnt
firmware: upgrade
Summary Upgrade firmware image on this device using uploaded file.
URI system/firmware/upgrade/
HTTP Method POST
Action upgrade
Access Group sysgrp.mnt
Response Type object
Extra parameters
firmware: upgrade-paths
Summary Retrieve a list of supported firmware upgrade paths.
URI system/firmware/upgrade-paths/
HTTP Method GET
Action upgrade-paths
Access Group sysgrp.mnt
fsck: start
Summary Set file system check flag so that it will be executed on next device reboot.
URI system/fsck/start/
HTTP Method POST
Action start
Access Group sysgrp.cfg
storage: select
Summary Retrieve information for the non-boot disk.
URI system/storage/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
change-password: select
Summary Save admin and guest-admin passwords.
URI system/change-password/select/
HTTP Method POST
Action select
Access Group any
Extra parameters
password-policy-conform: select
Summary Check whether password conforms to the password policy.
URI system/password-policy-conform/select/
HTTP Method POST
Action select
Access Group any
Extra parameters
csf: select
Summary Retrieve a full tree of downstream FortiGates registered to the Security Fabric.
URI system/csf/select/
HTTP Method GET
Action select
Access Group secfabgrp
ETag Caching Enabled
Response Type object
csf: pending-authorizations
Summary Retrieve FortiGates with pending authorizations for joining the Security Fabric.
Note:- This list is currently available on Security Fabric root only.
URI system/csf/pending-authorizations/
HTTP Method GET
Action pending-authorizations
Access Group secfabgrp
Response Type array
modem: select
Summary Retrieve statistics for internal/external configured modem.
URI system/modem/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
modem: reset
Summary Reset statistics for internal/external configured modem.
URI system/modem/reset/
HTTP Method POST
Action reset
Access Group sysgrp.cfg
modem: connect
Summary Trigger a connect for the configured modem.
URI system/modem/connect/
HTTP Method POST
Action connect
Access Group sysgrp.cfg
modem: disconnect
Summary Trigger a disconnect for the configured modem.
URI system/modem/disconnect/
HTTP Method POST
Action disconnect
Access Group sysgrp.cfg
modem: update
Summary Update supported modem list from FortiGuard.
URI system/modem/update/
HTTP Method POST
Action update
Access Group sysgrp.cfg
3g-modem: select
Summary List all 3G modems available via FortiGuard.
URI system/3g-modem/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
resource: usage
Summary Retreive current and historical usage data for a provided resource.
URI system/resource/usage/
HTTP Method GET
Action usage
Access Group sysgrp.cfg
Response Type object
Extra parameters
sniffer: select
Summary Return a list of all configured packet captures.
URI system/sniffer/select/
HTTP Method GET
Action select
Access Group netgrp.packet-capture
Response Type array
sniffer: restart
Summary Restart specified packet capture.
URI system/sniffer/restart/
HTTP Method POST
Action restart
Access Group netgrp.packet-capture
Response Type array
Extra parameters
sniffer: start
Summary Start specified packet capture.
URI system/sniffer/start/
HTTP Method POST
Action start
Access Group netgrp.packet-capture
Response Type array
Extra parameters
sniffer: stop
Summary Stop specified packet capture.
URI system/sniffer/stop/
HTTP Method POST
Action stop
Access Group netgrp.packet-capture
Response Type array
Extra parameters
sniffer: download
Summary Download a stored packet capture.
URI system/sniffer/download/
HTTP Method GET
Action download
Access Group netgrp.packet-capture
Response Type object
Extra parameters
automation-stitch: stats
Summary Stats for automation stitches.
URI system/automation-stitch/stats/
HTTP Method GET
Action stats
Access Group any
Response Type array
Extra parameters
automation-stitch: test
Summary Triggers an automation stitch for testing purposes.
URI system/automation-stitch/test/
HTTP Method POST
Action test
Access Group any
Extra parameters
switch-controller
managed-switch: select
Summary Retrieve statistics for configured FortiSwitches
URI switch-controller/managed-switch/select/
HTTP Method GET
Action select
Access Group wifi
Response Type array
Extra parameters
managed-switch: update
Summary Update administrative state for a given FortiSwitch (enable or disable
authorization).
URI switch-controller/managed-switch/update/
HTTP Method POST
Action update
Access Group wifi
Extra parameters
managed-switch: restart
Summary Restart a given FortiSwitch.
URI switch-controller/managed-switch/restart/
HTTP Method POST
Action restart
Access Group wifi
Response Type object
Extra parameters
managed-switch: poe-reset
Summary Reset PoE on a given FortiSwitch's port.
URI switch-controller/managed-switch/poe-reset/
HTTP Method POST
Action poe-reset
Access Group wifi
Extra parameters
managed-switch: faceplate-xml
Summary Retrieve XML for rendering FortiSwitch faceplate widget.
URI switch-controller/managed-switch/faceplate-xml/
HTTP Method GET
Action faceplate-xml
Access Group wifi
Response Type array
Extra parameters
managed-switch: factory-reset
Summary Send 'Factory Reset' command to a given FortiSwitch.
URI switch-controller/managed-switch/factory-reset/
HTTP Method POST
Action factory-reset
Access Group wifi
Response Type object
Extra parameters
managed-switch: dhcp-snooping
Summary Retrieve DHCP servers monitored by FortiSwitches.
URI switch-controller/managed-switch/dhcp-snooping/
HTTP Method GET
Action dhcp-snooping
Access Group wifi
Response Type array
fsw-firmware: select
Summary Retrieve a list of recommended firmware for managed FortiSwitches.
URI switch-controller/fsw-firmware/select/
HTTP Method GET
Action select
Access Group wifi
Response Type object
Extra parameters
fsw-firmware: download
Summary Download FortiSwitch firmware from FortiGuard to the FortiGate according to
FortiSwitch image ID.
URI switch-controller/fsw-firmware/download/
HTTP Method POST
Action download
Access Group wifi
Response Type object
Extra parameters
fsw-firmware: push
Summary Push FortiSwitch firmware to the given device.
URI switch-controller/fsw-firmware/push/
HTTP Method POST
Action push
Access Group wifi
Response Type object
Extra parameters
fsw-firmware: upload
Summary Upload FortiSwitch firmware to the management FortiGate and then push to
target FortiSwitches.
URI switch-controller/fsw-firmware/upload/
HTTP Method POST
Action upload
Access Group wifi
Response Type object
Extra parameters
detected-device: select
Summary Retrieve a list of devices detected on all switches.
URI switch-controller/detected-device/select/
HTTP Method GET
Action select
Access Group wifi
Response Type array
validate-switch-prefix: select
Summary Validate a FortiSwitch serial number prefix.
URI switch-controller/validate-switch-prefix/select/
HTTP Method GET
Action select
Access Group wifi
Response Type object
Extra parameters
interface: select
Summary Retrieve statistics for all system interfaces.
URI system/interface/select/
HTTP Method GET
Action select
Access Group netgrp.cfg
ETag Caching Enabled
Response Type array
Extra parameters
interface: dhcp-status
Summary Retrieve the DHCP client status of an interface.
URI system/interface/dhcp-status/
HTTP Method GET
Action dhcp-status
Access Group netgrp.cfg
Response Type object
Extra parameters
interface: dhcp-renew
Summary Renew DHCP lease of an interface.
URI system/interface/dhcp-renew/
HTTP Method POST
Action dhcp-renew
Access Group netgrp.cfg
Response Type object
Extra parameters
available-interfaces: select
Summary Retrieve a list of all interfaces along with some meta information regarding their
availability.
URI system/available-interfaces/select/
HTTP Method GET
Action select
Access Group any
Response Type array
Extra parameters
acquired-dns: select
Summary Retrieve a list of interfaces and their acquired DNS servers.
URI system/acquired-dns/select/
HTTP Method GET
Action select
Access Group any
Response Type array
resolve-fqdn: select
Summary Resolves the provided FQDNs to FQDN -> IP mappings.
URI system/resolve-fqdn/select/
HTTP Method GET
Action select
Access Group any
Response Type object
Extra parameters
nat46-ippools: select
Summary Retrieve a list of all IPv6 IP pools that are valid for NAT 46 policies.
URI system/nat46-ippools/select/
HTTP Method GET
Action select
Access Group any
Response Type array
usb-log: select
Summary Retrieve information about connected USB drives, including estimated log sizes.
URI system/usb-log/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
usb-log: start
Summary Start backup of logs from current VDOM to USB drive.
URI system/usb-log/start/
HTTP Method POST
Action start
Access Group sysgrp.cfg
usb-log: stop
Summary Stop backup of logs to USB drive.
URI system/usb-log/stop/
HTTP Method POST
Action stop
Access Group sysgrp.cfg
usb-device: eject
Summary Eject USB drives for safe removal.
URI system/usb-device/eject/
HTTP Method POST
Action eject
Access Group sysgrp.cfg
ipconf: select
Summary Determine if there is an IP conflict for a specific IP using ARP.
URI system/ipconf/select/
HTTP Method GET
Action select
Access Group netgrp.cfg
Response Type array
Extra parameters
fortiguard: update
Summary Immediately update status for FortiGuard services.
URI system/fortiguard/update/
HTTP Method POST
Action update
Access Group sysgrp.cfg
fortiguard: clear-statistics
Summary Immediately clear all FortiGuard statistics.
URI system/fortiguard/clear-statistics/
HTTP Method POST
Action clear-statistics
Access Group sysgrp.cfg
fortiguard: test-availability
Summary Test availability of FortiGuard services.
URI system/fortiguard/test-availability/
HTTP Method POST
Action test-availability
Access Group sysgrp.cfg
fortiguard: server-info
Summary Get FortiGuard server list and information.
URI system/fortiguard/server-info/
HTTP Method GET
Action server-info
Access Group sysgrp.cfg
fortimanager: status
Summary Get FortiManager status.
URI system/fortimanager/status/
HTTP Method GET
Action status
Access Group sysgrp.cfg
Response Type object
fortimanager: config
Summary Configure FortiManager IP. Register FortiManager if 'fortimanager_ip' is
provided. Unregister FortiManager if only 'unregister' parameter is specified and
set to true.
URI system/fortimanager/config/
HTTP Method POST
Action config
Access Group sysgrp.cfg
Response Type object
Extra parameters
fortimanager: backup-summary
Summary Get FortiManager backup summary.
URI system/fortimanager/backup-summary/
HTTP Method GET
Action backup-summary
Access Group fwgrp
Response Type object
fortimanager: backup-action
Summary Import or update from FortiManager objects.
URI system/fortimanager/backup-action/
HTTP Method POST
Action backup-action
Access Group fwgrp
Response Type object
Extra parameters
fortimanager: backup-details
Summary Get the properties of a FortiManager object.
URI system/fortimanager/backup-details/
HTTP Method GET
Action backup-details
Access Group fwgrp
Response Type object
Extra parameters
available-certificates: select
Summary Get available certificates.
URI system/available-certificates/select/
HTTP Method GET
Action select
Access Group any
Extra parameters
certificate: download
Summary Download certificate.
URI system/certificate/download/
HTTP Method GET
Action download
Access Group vpngrp
Response Type object
Extra parameters
debug: download
Summary Download debug report for technical support.
URI system/debug/download/
HTTP Method GET
Action download
Access Group sysgrp.cfg
Response Type object
com-log: dump
Summary Dump system com-log to file.
URI system/com-log/dump/
HTTP Method POST
Action dump
Access Group sysgrp.cfg
com-log: update
Summary Fetch system com-log file dump progress.
URI system/com-log/update/
HTTP Method GET
Action update
Access Group sysgrp.cfg
com-log: download
Summary Download com-log file (after file dump is complete).
URI system/com-log/download/
HTTP Method GET
Action download
Access Group sysgrp.cfg
Response Type object
botnet: stat
Summary Retrieve statistics for FortiGuard botnet database.
URI system/botnet/stat/
HTTP Method GET
Action stat
Access Group sysgrp.cfg
ETag Caching Enabled
Response Type object
botnet: select
Summary List all known IP-based botnet entries in FortiGuard botnet database.
URI system/botnet/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
ETag Caching Enabled
Response Type array
Extra parameters
botnet-domains: select
Summary List all known domain-based botnet entries in FortiGuard botnet database.
URI system/botnet-domains/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
ETag Caching Enabled
Response Type array
Extra parameters
botnet-domains: stat
Summary List statistics on domain-based botnet entries in FortiGuard botnet database.
URI system/botnet-domains/stat/
HTTP Method GET
Action stat
Access Group sysgrp.cfg
ETag Caching Enabled
Response Type object
botnet-domains: hits
Summary List hit botnet domains with hit count > 0.
URI system/botnet-domains/hits/
HTTP Method GET
Action hits
Access Group sysgrp.cfg
Response Type array
ha-statistics: select
Summary List of statistics for members of HA cluster.
URI system/ha-statistics/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type array
ha-history: select
Summary Get HA cluster historical logs.
URI system/ha-history/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
ETag Caching Enabled
Response Type object
ha-checksums: select
Summary List of checksums for members of HA cluster.
URI system/ha-checksums/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
ETag Caching Enabled
Response Type array
ha-peer: select
Summary Get configuration of peer(s) in HA cluster. Uptime is expressed in seconds.
URI system/ha-peer/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type array
Extra parameters
ha-peer: update
Summary Update configuration of peer in HA cluster.
URI system/ha-peer/update/
HTTP Method POST
Action update
Access Group sysgrp.cfg
Response Type object
Extra parameters
ha-peer: disconnect
Summary Update configuration of peer in HA cluster.
URI system/ha-peer/disconnect/
HTTP Method POST
Action disconnect
Access Group sysgrp.cfg
Response Type object
Extra parameters
link-monitor: select
Summary Retrieve per-interface statistics for active link monitors.
URI system/link-monitor/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Extra parameters
compliance: run
Summary Immediately run compliance checks for the selected VDOM.
URI system/compliance/run/
HTTP Method POST
Action run
Access Group sysgrp.cfg
config: restore
Summary Restore system configuration from uploaded file or from USB.
URI system/config/restore/
HTTP Method POST
Action restore
Access Group sysgrp.mnt
Response Type object
Extra parameters
config: backup
Summary Backup system config
URI system/config/backup/
HTTP Method GET
Action backup
Access Group sysgrp.mnt
Response Type object
Extra parameters
config: usb-filelist
Summary List configuration files available on connected USB drive.
URI system/config/usb-filelist/
HTTP Method GET
Action usb-filelist
Access Group sysgrp.cfg
Response Type array
sandbox: stats
Summary Retrieve sandbox statistics.
URI system/sandbox/stats/
HTTP Method GET
Action stats
Access Group sysgrp.cfg
Response Type object
sandbox: status
Summary Retrieve sandbox status.
URI system/sandbox/status/
HTTP Method GET
Action status
Access Group sysgrp.cfg
Response Type object
sandbox: test-connect
Summary Test the connectivity of a given FortiSandbox IP.
URI system/sandbox/test-connect/
HTTP Method GET
Action test-connect
Access Group sysgrp.cfg
Response Type object
Extra parameters
object: usage
Summary Retrieve all objects that are currently using as well as objects that can use the
given object.
URI system/object/usage/
HTTP Method GET
Action usage
Access Group any
Response Type object
Extra parameters
object-tagging: usage
Summary Retrieve usage count for tags in all tag categories.
URI system/object-tagging/usage/
HTTP Method GET
Action usage
Access Group any
Response Type array
status: select
Summary Retrieve basic system status.
URI system/status/select/
HTTP Method GET
Action select
Access Group any
Response Type object
timezone: select
Summary Get world timezone and daylight saving time.
URI system/timezone/select/
HTTP Method GET
Action select
Access Group any
Response Type array
vmlicense: upload
Summary Update VM license using uploaded file. Reboots immediately if successful.
URI system/vmlicense/upload/
HTTP Method POST
Action upload
Access Group sysgrp.cfg
Response Type object
Extra parameters
sensor-info: select
Summary Retrieve system sensor status.
URI system/sensor-info/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type object
security-rating: select
Summary Retrieve a Security Rating result. Without file specified, returns the most recent
result.
URI system/security-rating/select/
HTTP Method GET
Action select
Access Group secfabgrp
Response Type object
Extra parameters
id int Security Rating result ID. No
security-rating: history
Summary Retrieve Security Rating history.
URI system/security-rating/history/
HTTP Method GET
Action history
Access Group secfabgrp
Response Type object
security-rating: trigger
Summary Trigger a Security Rating.
URI system/security-rating/trigger/
HTTP Method POST
Action trigger
Access Group secfabgrp
Response Type object
security-rating: status
Summary Check if a Security Rating is currently running.
URI system/security-rating/status/
HTTP Method GET
Action status
Access Group secfabgrp
Response Type object
security-rating: lang
Summary Returns the requested Security Rating language mapping.
URI system/security-rating/lang/
HTTP Method GET
Action lang
Access Group secfabgrp
Response Type object
Extra parameters
fortiguard-blacklist: select
Summary Retrieve blacklist information for a specified IP.
URI system/fortiguard-blacklist/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type object
Extra parameters
check-port-availability: select
Summary Check whether a list of TCP port ranges is available for a certain service.
URI system/check-port-availability/select/
HTTP Method GET
Action select
Access Group sysgrp.cfg
Response Type array
Extra parameters
external-resource: entry-list
Summary Retrieve resource file status with a list of valid/invalid entries (skip empty and
comment lines) for the specific external resource.
URI system/external-resource/entry-list/
HTTP Method GET
Action entry-list
Access Group sysgrp.cfg
Response Type object
Extra parameters
extender-controller
extender: select
Summary Retrieve statistics for specific configured FortiExtender units.
URI extender-controller/extender/select/
HTTP Method GET
Action select
Access Group netgrp.cfg
Response Type array
Extra parameters
extender: reset
Summary Reset a specific FortiExtender unit.
URI extender-controller/extender/reset/
HTTP Method POST
Action reset
Access Group netgrp.cfg
Response Type object
Extra parameters
sdn-connector: status
Summary Retrieve connection status for SDN connectors.
URI system/sdn-connector/status/
HTTP Method GET
Action status
Access Group sysgrp.cfg
Response Type array
Extra parameters
sdn-connector: validate-gcp-key
Summary Validate a string representing a private key from GCP in PEM format.
URI system/sdn-connector/validate-gcp-key/
HTTP Method POST
Action validate-gcp-key
Access Group any
Response Type object
Extra parameters
user
firewall: select
Summary List authenticated firewall users.
URI user/firewall/select/
HTTP Method GET
Action select
Access Group authgrp
Response Type array
Extra parameters
firewall: deauth
Summary Deauthenticate single, multiple, or all firewall users.
URI user/firewall/deauth/
HTTP Method POST
Action deauth
Access Group authgrp
Extra parameters
id int User ID. Required for both proxy and firewall users. No
ip string User IP address. Required for both proxy and firewall users. No
banned: select
Summary Return a list of all banned users by IP.
URI user/banned/select/
HTTP Method GET
Action select
Access Group authgrp
banned: clear_users
Summary Immediately clear a list of specific banned users by IP.
URI user/banned/clear_users/
HTTP Method POST
Action clear_users
Access Group authgrp
Extra parameters
banned: add_users
Summary Immediately add one or more users to the banned list.
URI user/banned/add_users/
HTTP Method POST
Action add_users
Access Group authgrp
Extra parameters
banned: clear_all
Summary Immediately clear all banned users.
URI user/banned/clear_all/
HTTP Method POST
Action clear_all
Access Group authgrp
fortitoken: select
Summary Retrieve a map of FortiTokens and their status.
URI user/fortitoken/select/
HTTP Method GET
Action select
Access Group authgrp
Response Type object
fortitoken: activate
Summary Activate a set of FortiTokens by serial number.
URI user/fortitoken/activate/
HTTP Method POST
Action activate
Access Group authgrp
Response Type array
Extra parameters
detected-device: select
Summary Retrieve a list of detected devices.
URI user/detected-device/select/
HTTP Method GET
Action select
Access Group authgrp
Response Type array
Extra parameters
device: select
Summary Retrieve a list of detected devices.
URI user/device/select/
HTTP Method GET
Action select
Access Group authgrp
ETag Caching Enabled
Response Type array
Extra parameters
device-type: select
Summary Retrieve a list of device types.
URI user/device-type/select/
HTTP Method GET
Action select
Access Group any
Response Type array
device-category: select
Summary Retrieve a list of device categories.
URI user/device-category/select/
HTTP Method GET
Action select
Access Group any
Response Type array
fortitoken: refresh
Summary Refresh a set of FortiTokens by serial number.
URI user/fortitoken/refresh/
HTTP Method POST
Action refresh
Access Group authgrp
Response Type array
Extra parameters
fortitoken: provision
Summary Provision a set of FortiTokens by serial number.
URI user/fortitoken/provision/
HTTP Method POST
Action provision
Access Group authgrp
Response Type array
Extra parameters
fortitoken: send-activation
Summary Send a FortiToken activation code to a user via SMS or Email.
URI user/fortitoken/send-activation/
HTTP Method POST
Action send-activation
Access Group authgrp
Response Type object
Extra parameters
fortitoken: import-trial
Summary Import trial mobile FortiTokens.
URI user/fortitoken/import-trial/
HTTP Method POST
Action import-trial
Access Group authgrp
Response Type object
fortitoken: import-mobile
Summary Import a list of tokens from FortiGuard to the FortiGate unit.
URI user/fortitoken/import-mobile/
HTTP Method POST
Action import-mobile
Access Group authgrp
Response Type object
Extra parameters
fortitoken: import-seed
Summary Import a FortiToken seed file.
URI user/fortitoken/import-seed/
HTTP Method POST
Action import-seed
Access Group authgrp
Response Type object
Extra parameters
fsso: refresh-server
Summary Refresh remote agent group list for all fsso agents.
URI user/fsso/refresh-server/
HTTP Method POST
Action refresh-server
Access Group authgrp
fsso: select
Summary Get a list of fsso and fsso polling status.
URI user/fsso/select/
HTTP Method GET
Action select
Access Group authgrp
radius: test-connect
Summary Test the connectivity of the given RADIUS server and, optionally, the validity of a
username & password.
URI user/radius/test-connect/
HTTP Method POST
Action test-connect
Access Group authgrp
Response Type object
Extra parameters
tacacs-plus: test
Summary Test the connectivity of the given TACACS+ server.
URI user/tacacs-plus/test/
HTTP Method POST
Action test
Access Group authgrp
Response Type object
Extra parameters
utm
rating-lookup: select
Summary Lookup FortiGuard rating for a specific URL.
URI utm/rating-lookup/select/
HTTP Method GET
Action select
Access Group utmgrp.webfilter
Response Type object
Extra parameters
app-lookup: select
Summary Query remote FortiFlow database to resolve hosts to application control entries.
URI utm/app-lookup/select/
HTTP Method GET
Action select
Access Group any
Response Type array
Extra parameters
application-categories: select
Summary Retrieve a list of application control categories.
URI utm/application-categories/select/
HTTP Method GET
Action select
Access Group any
Response Type array
antivirus: stats
Summary Retrieve antivirus scanning statistics.
URI utm/antivirus/stats/
HTTP Method GET
Action stats
Access Group utmgrp.antivirus
Response Type object
virtual-wan
health-check: select
Summary Retrieve health-check statistics for each SD-WAN link.
URI virtual-wan/health-check/select/
HTTP Method GET
Action select
Access Group netgrp.cfg
members: select
Summary Retrieve interface statistics for each SD-WAN link.
URI virtual-wan/members/select/
HTTP Method GET
Action select
Access Group netgrp.cfg
webfilter
override: select
Summary List all administrative and user initiated webfilter overrides.
URI webfilter/override/select/
HTTP Method GET
Action select
Access Group utmgrp.webfilter
override: delete
Summary Delete a configured webfilter override.
URI webfilter/override/delete/
HTTP Method POST
Action delete
Access Group utmgrp.webfilter
Extra parameters
malicious-urls: select
Summary List all URLs in FortiSandbox malicious URL database.
URI webfilter/malicious-urls/select/
HTTP Method GET
Action select
Access Group utmgrp.webfilter
ETag Caching Enabled
Response Type object
malicious-urls: stat
Summary Retrieve statistics for the FortiSandbox malicious URL database.
URI webfilter/malicious-urls/stat/
HTTP Method GET
Action stat
Access Group utmgrp.webfilter
ETag Caching Enabled
Response Type object
category-quota: select
Summary Retrieve quota usage statistics for webfilter categories.
URI webfilter/category-quota/select/
HTTP Method GET
Action select
Access Group utmgrp.webfilter
Extra parameters
category-quota: reset
Summary Reset webfilter quota for user or IP.
URI webfilter/category-quota/reset/
HTTP Method POST
Action reset
Access Group utmgrp.webfilter
Extra parameters
fortiguard-categories: select
Summary Return FortiGuard web filter categories.
URI webfilter/fortiguard-categories/select/
HTTP Method GET
Action select
Access Group any
Response Type array
Extra parameters
trusted-urls: select
Summary List all URLs in FortiGuard trusted URL database.
URI webfilter/trusted-urls/select/
HTTP Method GET
Action select
Access Group utmgrp.webfilter
ETag Caching Enabled
Response Type object
vpn
ipsec: select
Summary Return an array of active IPsec VPNs.
URI vpn/ipsec/select/
HTTP Method GET
Action select
Access Group vpngrp
Response Type array
Extra parameters
ipsec: tunnel_up
Summary Bring up a specific IPsec VPN tunnel.
URI vpn/ipsec/tunnel_up/
HTTP Method POST
Action tunnel_up
Access Group vpngrp
Extra parameters
ipsec: tunnel_down
Summary Bring down a specific IPsec VPN tunnel.
URI vpn/ipsec/tunnel_down/
HTTP Method POST
Action tunnel_down
Access Group vpngrp
Extra parameters
ipsec: tunnel_reset_stats
Summary Reset statistics for a specific IPsec VPN tunnel.
URI vpn/ipsec/tunnel_reset_stats/
HTTP Method POST
Action tunnel_reset_stats
Access Group vpngrp
Extra parameters
one-click: members
Summary Get information on devices registered in the Overlay Controller VPN cloud
assisted group.
URI vpn/one-click/members/
HTTP Method GET
Action members
Access Group vpngrp
Response Type array
one-click: status
Summary Get the last status message from FortiCloud Overlay Controller VPN cloud
service.
URI vpn/one-click/status/
HTTP Method GET
Action status
Access Group vpngrp
Response Type object
ssl: select
Summary Retrieve a list of all SSL-VPN sessions and sub-sessions.
URI vpn/ssl/select/
HTTP Method GET
Action select
Access Group vpngrp
ssl: clear_tunnel
Summary Remove all active tunnel sessions in current virtual domain.
URI vpn/ssl/clear_tunnel/
HTTP Method POST
Action clear_tunnel
Access Group vpngrp
ssl: delete
Summary Terminate the provided SSL-VPN session.
URI vpn/ssl/delete/
HTTP Method POST
Action delete
Access Group vpngrp
Extra parameters
ssl: stats
Summary Return statistics about the SSL-VPN.
URI vpn/ssl/stats/
HTTP Method GET
Action stats
Access Group vpngrp
vpn-certificate
ca: import
Summary Import CA certificate.
URI vpn-certificate/ca/import/
HTTP Method POST
Action import
Access Group vpngrp
Response Type object
Extra parameters
crl: import
Summary Import certificate revocation lists (CRL) from file content.
URI vpn-certificate/crl/import/
HTTP Method POST
Action import
Access Group vpngrp
Response Type object
Extra parameters
local: import
Summary Import local certificate.
URI vpn-certificate/local/import/
HTTP Method POST
Action import
Access Group vpngrp
Response Type object
Extra parameters
remote: import
Summary Import remote certificate.
URI vpn-certificate/remote/import/
HTTP Method POST
Action import
Access Group vpngrp
Response Type object
Extra parameters
csr: generate
Summary Generate a certificate signing request (CSR) and a private key. The CSR can be
retrieved / downloaded from CLI, GUI and REST API.
URI vpn-certificate/csr/generate/
HTTP Method POST
Action generate
Access Group vpngrp
Response Type object
Extra parameters
wanopt
history: select
Summary Retrieve WAN opt. statistics history.
URI wanopt/history/select/
HTTP Method GET
Action select
Access Group wanoptgrp
Extra parameters
history: reset
Summary Reset WAN opt. statistics.
URI wanopt/history/reset/
HTTP Method POST
Action reset
Access Group wanoptgrp
webcache: select
Summary Retrieve webcache statistics history.
URI wanopt/webcache/select/
HTTP Method GET
Action select
Access Group wanoptgrp
Extra parameters
webcache: reset
Summary Reset webcache statistics.
URI wanopt/webcache/reset/
HTTP Method POST
Action reset
Access Group wanoptgrp
peer_stats: select
Summary Retrieve a list of WAN opt peer statistics.
URI wanopt/peer_stats/select/
HTTP Method GET
Action select
Access Group wanoptgrp
peer_stats: reset
Summary Reset WAN opt peer statistics.
URI wanopt/peer_stats/reset/
HTTP Method POST
Action reset
Access Group wanoptgrp
webproxy
pacfile: download
Summary Download webproxy PAC file.
URI webproxy/pacfile/download/
HTTP Method GET
Action download
Access Group netgrp.cfg
Response Type object
webcache
stats: select
Summary Retrieve webcache statistics.
URI webcache/stats/select/
HTTP Method GET
Action select
Access Group wanoptgrp
Response Type array
Extra parameters
stats: reset
Summary Reset all webcache statistics.
URI webcache/stats/reset/
HTTP Method POST
Action reset
Access Group wanoptgrp
wifi
client: select
Summary Retrieve a list of connected WiFi clients.
URI wifi/client/select/
HTTP Method GET
Action select
Access Group wifi
Response Type array
Extra parameters
managed_ap: select
Summary Retrieve a list of managed FortiAPs.
URI wifi/managed_ap/select/
HTTP Method GET
Action select
Access Group wifi
Response Type array
Extra parameters
managed_ap: set_status
Summary Update administrative state for a given FortiAP (enable or disable authorization).
URI wifi/managed_ap/set_status/
HTTP Method POST
Action set_status
Access Group wifi
Extra parameters
firmware: select
Summary Retrieve a list of current and recommended firmware for FortiAPs in use.
URI wifi/firmware/select/
HTTP Method GET
Action select
Access Group wifi
Response Type object
Extra parameters
firmware: download
Summary Download FortiAP firmware from FortiGuard to the FortiGate according to
FortiAP image ID.
URI wifi/firmware/download/
HTTP Method POST
Action download
Access Group wifi
Response Type object
Extra parameters
firmware: push
Summary Push FortiAP firmware to the given device.
URI wifi/firmware/push/
HTTP Method POST
Action push
Access Group wifi
Response Type object
Extra parameters
firmware: upload
Summary Upload FortiAP firmware to the management FortiGate and then push to target
FortiAPs.
URI wifi/firmware/upload/
HTTP Method POST
Action upload
Access Group wifi
Response Type object
Extra parameters
managed_ap: restart
Summary Restart a given FortiAP.
URI wifi/managed_ap/restart/
HTTP Method POST
Action restart
Access Group wifi
Extra parameters
ap_status: select
Summary Retrieve statistics for all managed FortiAPs.
URI wifi/ap_status/select/
HTTP Method GET
Action select
Access Group wifi
interfering_ap: select
Summary Retrieve a list of interfering APs for one FortiAP radio.
URI wifi/interfering_ap/select/
HTTP Method GET
Action select
Access Group wifi
Response Type array
Extra parameters
euclid: select
Summary Retrieve presence analytics statistics.
URI wifi/euclid/select/
HTTP Method GET
Action select
Access Group wifi
euclid: reset
Summary Reset presence analytics statistics.
URI wifi/euclid/reset/
HTTP Method POST
Action reset
Access Group wifi
rogue_ap: select
Summary Retrieve a list of detected rogue APs.
URI wifi/rogue_ap/select/
HTTP Method GET
Action select
Access Group wifi
Response Type array
Extra parameters
rogue_ap: clear_all
Summary Clear all detected rogue APs.
URI wifi/rogue_ap/clear_all/
HTTP Method POST
Action clear_all
Access Group wifi
rogue_ap: set_status
Summary Mark detected APs as rogue APs.
URI wifi/rogue_ap/set_status/
HTTP Method POST
Action set_status
Access Group wifi
Extra parameters
spectrum: select
Summary Retrieve spectrum analysis information for a specific FortiAP.
URI wifi/spectrum/select/
HTTP Method GET
Action select
Access Group wifi
Response Type object
Extra parameters
Examples