Fortinet black logo

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

system web-service

Use this command to configure finer rate limit controls for REST APIs, including the maximum concurrent REST API requests (overall and for individual IP addresses), and how fast the system should perform, in terms of how many requests and responses are processed per second.

Value ranges for certain commands vary and are dependent on FortiMail model.

Syntax

config system web-service

config exempt-list

edit <id>

set <ip&netmask_str>

next

end

set https-redirect-host <string>

set https-redirect-status {enable | disable}

set max-active-session-admin <integer>

set max-active-session-restful <integer>

set max-concurrent-request-admin <integer>

set max-concurrent-request-all <integer>

set max-concurrent-request-ms365 <integer>

set max-concurrent-request-per-ip <integer

set max-concurrent-request-restful <integer>

set max-concurrent-request-webmail <integer>

set max-request-rate-admin <integer>

set max-request-rate-ms365 <integer>

set max-request-rate-restful <integer>

set max-request-rate-webmail <integer>

set rest-api-status {enable | disable}

end

Variable

Description

Default

exempt-list

Configure exempt lists of those IP addresses you wish to exempt from rate limits.

 

https-redirect-host <string> Enter the host name for HTTPS redirection

 

https-redirect-status {enable | disable} Enable to redirect HTTP to HTTPS.

enable

max-active-session-admin <integer>

Enter the maximum number of active administrator sessions.

200

max-active-session-restful <integer>

Enter the maximum number of active RESTful sessions.

10

max-concurrent-request-admin <integer>

Enter the maximum number of concurrent admin portal requests.

50

max-concurrent-request-all <integer>

Enter the maximum number of concurrent HTTP requests from all clients.

0

max-concurrent-request-ms365 <integer>

Enter the maximum number of concurrent Microsoft 365 requests permitted.

100

max-concurrent-request-per-ip <integer

Enter the maximum number of concurrent HTTP requests for a single IP address.

0

max-concurrent-request-restful <integer>

Enter the maximum number of concurrent RESTful requests.

20

max-concurrent-request-webmail <integer>

Enter the maximum number of concurrent webmail portal requests.

200

max-request-rate-admin <integer>

Enter the maximum request rate (per second) for administrators.

0

max-request-rate-ms365 <integer>

Enter the maximum request rate (per second) for Microsoft 365.

100

max-request-rate-restful <integer>

Enter the maximum request rate (per second) for the REST API.

50

max-request-rate-webmail <integer>

Enter the maximum request rate (per second) for webmail.

0

rest-api-status {enable | disable} Enable or disable REST API access. disable

system web-service

Use this command to configure finer rate limit controls for REST APIs, including the maximum concurrent REST API requests (overall and for individual IP addresses), and how fast the system should perform, in terms of how many requests and responses are processed per second.

Value ranges for certain commands vary and are dependent on FortiMail model.

Syntax

config system web-service

config exempt-list

edit <id>

set <ip&netmask_str>

next

end

set https-redirect-host <string>

set https-redirect-status {enable | disable}

set max-active-session-admin <integer>

set max-active-session-restful <integer>

set max-concurrent-request-admin <integer>

set max-concurrent-request-all <integer>

set max-concurrent-request-ms365 <integer>

set max-concurrent-request-per-ip <integer

set max-concurrent-request-restful <integer>

set max-concurrent-request-webmail <integer>

set max-request-rate-admin <integer>

set max-request-rate-ms365 <integer>

set max-request-rate-restful <integer>

set max-request-rate-webmail <integer>

set rest-api-status {enable | disable}

end

Variable

Description

Default

exempt-list

Configure exempt lists of those IP addresses you wish to exempt from rate limits.

 

https-redirect-host <string> Enter the host name for HTTPS redirection

 

https-redirect-status {enable | disable} Enable to redirect HTTP to HTTPS.

enable

max-active-session-admin <integer>

Enter the maximum number of active administrator sessions.

200

max-active-session-restful <integer>

Enter the maximum number of active RESTful sessions.

10

max-concurrent-request-admin <integer>

Enter the maximum number of concurrent admin portal requests.

50

max-concurrent-request-all <integer>

Enter the maximum number of concurrent HTTP requests from all clients.

0

max-concurrent-request-ms365 <integer>

Enter the maximum number of concurrent Microsoft 365 requests permitted.

100

max-concurrent-request-per-ip <integer

Enter the maximum number of concurrent HTTP requests for a single IP address.

0

max-concurrent-request-restful <integer>

Enter the maximum number of concurrent RESTful requests.

20

max-concurrent-request-webmail <integer>

Enter the maximum number of concurrent webmail portal requests.

200

max-request-rate-admin <integer>

Enter the maximum request rate (per second) for administrators.

0

max-request-rate-ms365 <integer>

Enter the maximum request rate (per second) for Microsoft 365.

100

max-request-rate-restful <integer>

Enter the maximum request rate (per second) for the REST API.

50

max-request-rate-webmail <integer>

Enter the maximum request rate (per second) for webmail.

0

rest-api-status {enable | disable} Enable or disable REST API access. disable