Debian Codegraph @

ansible_collections/fortinet/fortios/plugins/modules/fortios_system_global.py

raw symbols SCIP
1 #!/usr/bin/python
2 from __future__ import absolute_import, division, print_function
3
4 # Copyright: (c) 2022 Fortinet
5 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
6 #
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11
12 __metaclass__ = type
13
14 ANSIBLE_METADATA = {
15 "status": ["preview"],
16 "supported_by": "community",
17 "metadata_version": "1.1",
18 }
19
20 DOCUMENTATION = """
21 ---
22 module: fortios_system_global
23 short_description: Configure global attributes in Fortinet's FortiOS and FortiGate.
24 description:
25 - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
26 user to set and modify system feature and global category.
27 Examples include all parameters and values need to be adjusted to datasources before usage.
28 Tested with FOS v6.0.0
29 version_added: "2.0.0"
30 author:
31 - Link Zheng (@chillancezen)
32 - Jie Xue (@JieX19)
33 - Hongbin Lu (@fgtdev-hblu)
34 - Frank Shen (@frankshen01)
35 - Miguel Angel Munoz (@mamunozgonzalez)
36 - Nicolas Thomas (@thomnico)
37 notes:
38 - Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks
39
40 - The module supports check_mode.
41
42 requirements:
43 - ansible>=2.16
44 options:
45 access_token:
46 description:
47 - Token-based authentication.
48 Generated from GUI of Fortigate.
49 type: str
50 required: false
51 enable_log:
52 description:
53 - Enable/Disable logging for task.
54 type: bool
55 required: false
56 default: false
57 vdom:
58 description:
59 - Virtual domain, among those defined previously. A vdom is a
60 virtual instance of the FortiGate that can be configured and
61 used as a different unit.
62 type: str
63 default: root
64 member_path:
65 type: str
66 description:
67 - Member attribute path to operate on.
68 - Delimited by a slash character if there are more than one attribute.
69 - Parameter marked with member_path is legitimate for doing member operation.
70 member_state:
71 type: str
72 description:
73 - Add or delete a member under specified attribute path.
74 - When member_state is specified, the state option is ignored.
75 choices:
76 - 'present'
77 - 'absent'
78
79 system_global:
80 description:
81 - Configure global attributes.
82 default: null
83 type: dict
84 suboptions:
85 admin_concurrent:
86 description:
87 - Enable/disable concurrent administrator logins. Use policy-auth-concurrent for firewall authenticated users.
88 type: str
89 choices:
90 - 'enable'
91 - 'disable'
92 admin_console_timeout:
93 description:
94 - Console login timeout that overrides the admin timeout value (15 - 300 seconds).
95 type: int
96 admin_forticloud_sso_default_profile:
97 description:
98 - Override access profile. Source system.accprofile.name.
99 type: str
100 admin_forticloud_sso_login:
101 description:
102 - Enable/disable FortiCloud admin login via SSO.
103 type: str
104 choices:
105 - 'enable'
106 - 'disable'
107 admin_host:
108 description:
109 - Administrative host for HTTP and HTTPS. When set, will be used in lieu of the client"s Host header for any redirection.
110 type: str
111 admin_hsts_max_age:
112 description:
113 - HTTPS Strict-Transport-Security header max-age in seconds. A value of 0 will reset any HSTS records in the browser.When
114 admin-https-redirect is disabled the header max-age will be 0.
115 type: int
116 admin_https_pki_required:
117 description:
118 - Enable/disable admin login method. Enable to force administrators to provide a valid certificate to log in if PKI is enabled. Disable to
119 allow administrators to log in with a certificate or password.
120 type: str
121 choices:
122 - 'enable'
123 - 'disable'
124 admin_https_redirect:
125 description:
126 - Enable/disable redirection of HTTP administration access to HTTPS.
127 type: str
128 choices:
129 - 'enable'
130 - 'disable'
131 admin_https_ssl_banned_ciphers:
132 description:
133 - Select one or more cipher technologies that cannot be used in GUI HTTPS negotiations. Only applies to TLS 1.2 and below.
134 type: list
135 elements: str
136 choices:
137 - 'RSA'
138 - 'DHE'
139 - 'ECDHE'
140 - 'DSS'
141 - 'ECDSA'
142 - 'AES'
143 - 'AESGCM'
144 - 'CAMELLIA'
145 - '3DES'
146 - 'SHA1'
147 - 'SHA256'
148 - 'SHA384'
149 - 'STATIC'
150 - 'CHACHA20'
151 - 'ARIA'
152 - 'AESCCM'
153 admin_https_ssl_ciphersuites:
154 description:
155 - Select one or more TLS 1.3 ciphersuites to enable. Does not affect ciphers in TLS 1.2 and below. At least one must be enabled. To
156 disable all, remove TLS1.3 from admin-https-ssl-versions.
157 type: list
158 elements: str
159 choices:
160 - 'TLS-AES-128-GCM-SHA256'
161 - 'TLS-AES-256-GCM-SHA384'
162 - 'TLS-CHACHA20-POLY1305-SHA256'
163 - 'TLS-AES-128-CCM-SHA256'
164 - 'TLS-AES-128-CCM-8-SHA256'
165 admin_https_ssl_versions:
166 description:
167 - Allowed TLS versions for web administration.
168 type: list
169 elements: str
170 choices:
171 - 'tlsv1-1'
172 - 'tlsv1-2'
173 - 'tlsv1-3'
174 - 'tlsv1-0'
175 admin_lockout_duration:
176 description:
177 - Amount of time in seconds that an administrator account is locked out after reaching the admin-lockout-threshold for repeated failed
178 login attempts.
179 type: int
180 admin_lockout_threshold:
181 description:
182 - Number of failed login attempts before an administrator account is locked out for the admin-lockout-duration.
183 type: int
184 admin_login_max:
185 description:
186 - Maximum number of administrators who can be logged in at the same time (1 - 100).
187 type: int
188 admin_maintainer:
189 description:
190 - Enable/disable maintainer administrator login. When enabled, the maintainer account can be used to log in from the console after a hard
191 reboot. The password is "bcpb" followed by the FortiGate unit serial number. You have limited time to complete this login.
192 type: str
193 choices:
194 - 'enable'
195 - 'disable'
196 admin_port:
197 description:
198 - Administrative access port for HTTP. (1 - 65535).
199 type: int
200 admin_restrict_local:
201 description:
202 - Enable/disable local admin authentication restriction when remote authenticator is up and running .
203 type: str
204 choices:
205 - 'all'
206 - 'non-console-only'
207 - 'disable'
208 - 'enable'
209 admin_scp:
210 description:
211 - Enable/disable SCP support for system configuration backup, restore, and firmware file upload.
212 type: str
213 choices:
214 - 'enable'
215 - 'disable'
216 admin_server_cert:
217 description:
218 - Server certificate that the FortiGate uses for HTTPS administrative connections. Source certificate.local.name.
219 type: str
220 admin_sport:
221 description:
222 - Administrative access port for HTTPS. (1 - 65535).
223 type: int
224 admin_ssh_grace_time:
225 description:
226 - Maximum time in seconds permitted between making an SSH connection to the FortiGate unit and authenticating (10 - 3600 sec (1 hour)).
227 type: int
228 admin_ssh_password:
229 description:
230 - Enable/disable password authentication for SSH admin access.
231 type: str
232 choices:
233 - 'enable'
234 - 'disable'
235 admin_ssh_port:
236 description:
237 - Administrative access port for SSH. (1 - 65535).
238 type: int
239 admin_ssh_v1:
240 description:
241 - Enable/disable SSH v1 compatibility.
242 type: str
243 choices:
244 - 'enable'
245 - 'disable'
246 admin_telnet:
247 description:
248 - Enable/disable TELNET service.
249 type: str
250 choices:
251 - 'enable'
252 - 'disable'
253 admin_telnet_port:
254 description:
255 - Administrative access port for TELNET. (1 - 65535).
256 type: int
257 admintimeout:
258 description:
259 - Number of minutes before an idle administrator session times out (1 - 480 minutes (8 hours)). A shorter idle timeout is more secure.
260 type: int
261 alias:
262 description:
263 - Alias for your FortiGate unit.
264 type: str
265 allow_traffic_redirect:
266 description:
267 - Disable to prevent traffic with same local ingress and egress interface from being forwarded without policy check.
268 type: str
269 choices:
270 - 'enable'
271 - 'disable'
272 anti_replay:
273 description:
274 - Level of checking for packet replay and TCP sequence checking.
275 type: str
276 choices:
277 - 'disable'
278 - 'loose'
279 - 'strict'
280 application_bandwidth_tracking:
281 description:
282 - Enable/disable application bandwidth tracking.
283 type: str
284 choices:
285 - 'disable'
286 - 'enable'
287 arp_max_entry:
288 description:
289 - Maximum number of dynamically learned MAC addresses that can be added to the ARP table (131072 - 2147483647).
290 type: int
291 asymroute:
292 description:
293 - Enable/disable asymmetric route.
294 type: str
295 choices:
296 - 'enable'
297 - 'disable'
298 auth_cert:
299 description:
300 - Server certificate that the FortiGate uses for HTTPS firewall authentication connections. Source certificate.local.name.
301 type: str
302 auth_http_port:
303 description:
304 - User authentication HTTP port. (1 - 65535).
305 type: int
306 auth_https_port:
307 description:
308 - User authentication HTTPS port. (1 - 65535).
309 type: int
310 auth_ike_saml_port:
311 description:
312 - User IKE SAML authentication port (0 - 65535).
313 type: int
314 auth_keepalive:
315 description:
316 - Enable to prevent user authentication sessions from timing out when idle.
317 type: str
318 choices:
319 - 'enable'
320 - 'disable'
321 auth_session_auto_backup:
322 description:
323 - Enable/disable automatic and periodic backup of authentication sessions . Sessions are restored upon bootup.
324 type: str
325 choices:
326 - 'enable'
327 - 'disable'
328 auth_session_auto_backup_interval:
329 description:
330 - Configure automatic authentication session backup interval .
331 type: str
332 choices:
333 - '1min'
334 - '5min'
335 - '15min'
336 - '30min'
337 - '1hr'
338 auth_session_limit:
339 description:
340 - Action to take when the number of allowed user authenticated sessions is reached.
341 type: str
342 choices:
343 - 'block-new'
344 - 'logout-inactive'
345 auto_auth_extension_device:
346 description:
347 - Enable/disable automatic authorization of dedicated Fortinet extension devices.
348 type: str
349 choices:
350 - 'enable'
351 - 'disable'
352 autorun_log_fsck:
353 description:
354 - Enable/disable automatic log partition check after ungraceful shutdown.
355 type: str
356 choices:
357 - 'enable'
358 - 'disable'
359 av_affinity:
360 description:
361 - Affinity setting for AV scanning (hexadecimal value up to 256 bits in the format of xxxxxxxxxxxxxxxx).
362 type: str
363 av_failopen:
364 description:
365 - Set the action to take if the FortiGate is running low on memory or the proxy connection limit has been reached.
366 type: str
367 choices:
368 - 'pass'
369 - 'off'
370 - 'one-shot'
371 av_failopen_session:
372 description:
373 - When enabled and a proxy for a protocol runs out of room in its session table, that protocol goes into failopen mode and enacts the
374 action specified by av-failopen.
375 type: str
376 choices:
377 - 'enable'
378 - 'disable'
379 batch_cmdb:
380 description:
381 - Enable/disable batch mode, allowing you to enter a series of CLI commands that will execute as a group once they are loaded.
382 type: str
383 choices:
384 - 'enable'
385 - 'disable'
386 bfd_affinity:
387 description:
388 - Affinity setting for BFD daemon (hexadecimal value up to 256 bits in the format of xxxxxxxxxxxxxxxx).
389 type: str
390 block_session_timer:
391 description:
392 - Duration in seconds for blocked sessions (1 - 300 sec (5 minutes)).
393 type: int
394 br_fdb_max_entry:
395 description:
396 - Maximum number of bridge forwarding database (FDB) entries.
397 type: int
398 cert_chain_max:
399 description:
400 - Maximum number of certificates that can be traversed in a certificate chain.
401 type: int
402 cfg_revert_timeout:
403 description:
404 - Time-out for reverting to the last saved configuration. (10 - 4294967295 seconds).
405 type: int
406 cfg_save:
407 description:
408 - Configuration file save mode for CLI changes.
409 type: str
410 choices:
411 - 'automatic'
412 - 'manual'
413 - 'revert'
414 check_protocol_header:
415 description:
416 - Level of checking performed on protocol headers. Strict checking is more thorough but may affect performance. Loose checking is OK in
417 most cases.
418 type: str
419 choices:
420 - 'loose'
421 - 'strict'
422 check_reset_range:
423 description:
424 - Configure ICMP error message verification. You can either apply strict RST range checking or disable it.
425 type: str
426 choices:
427 - 'strict'
428 - 'disable'
429 cli_audit_log:
430 description:
431 - Enable/disable CLI audit log.
432 type: str
433 choices:
434 - 'enable'
435 - 'disable'
436 cloud_communication:
437 description:
438 - Enable/disable all cloud communication.
439 type: str
440 choices:
441 - 'enable'
442 - 'disable'
443 clt_cert_req:
444 description:
445 - Enable/disable requiring administrators to have a client certificate to log into the GUI using HTTPS.
446 type: str
447 choices:
448 - 'enable'
449 - 'disable'
450 cmdbsvr_affinity:
451 description:
452 - Affinity setting for cmdbsvr (hexadecimal value up to 256 bits in the format of xxxxxxxxxxxxxxxx).
453 type: str
454 compliance_check:
455 description:
456 - Enable/disable global PCI DSS compliance check.
457 type: str
458 choices:
459 - 'enable'
460 - 'disable'
461 compliance_check_time:
462 description:
463 - Time of day to run scheduled PCI DSS compliance checks.
464 type: str
465 cpu_use_threshold:
466 description:
467 - Threshold at which CPU usage is reported (% of total CPU).
468 type: int
469 csr_ca_attribute:
470 description:
471 - Enable/disable the CA attribute in certificates. Some CA servers reject CSRs that have the CA attribute.
472 type: str
473 choices:
474 - 'enable'
475 - 'disable'
476 daily_restart:
477 description:
478 - Enable/disable daily restart of FortiGate unit. Use the restart-time option to set the time of day for the restart.
479 type: str
480 choices:
481 - 'enable'
482 - 'disable'
483 default_service_source_port:
484 description:
485 - Default service source port range .
486 type: str
487 delay_tcp_npu_session:
488 description:
489 - Enable TCP NPU session delay to guarantee packet order of 3-way handshake.
490 type: str
491 choices:
492 - 'enable'
493 - 'disable'
494 device_identification_active_scan_delay:
495 description:
496 - Number of seconds to passively scan a device before performing an active scan. (20 - 3600 sec, (20 sec to 1 hour)).
497 type: int
498 device_idle_timeout:
499 description:
500 - Time in seconds that a device must be idle to automatically log the device user out. (30 - 31536000 sec (30 sec to 1 year)).
501 type: int
502 dh_params:
503 description:
504 - Number of bits to use in the Diffie-Hellman exchange for HTTPS/SSH protocols.
505 type: str
506 choices:
507 - '1024'
508 - '1536'
509 - '2048'
510 - '3072'
511 - '4096'
512 - '6144'
513 - '8192'
514 dhcp_lease_backup_interval:
515 description:
516 - DHCP leases backup interval in seconds (10 - 3600).
517 type: int
518 dnsproxy_worker_count:
519 description:
520 - DNS proxy worker count. For a FortiGate with multiple logical CPUs, you can set the DNS process number from 1 to the number of logical
521 CPUs.
522 type: int
523 dst:
524 description:
525 - Enable/disable daylight saving time.
526 type: str
527 choices:
528 - 'enable'
529 - 'disable'
530 early_tcp_npu_session:
531 description:
532 - Enable/disable early TCP NPU session.
533 type: str
534 choices:
535 - 'enable'
536 - 'disable'
537 edit_vdom_prompt:
538 description:
539 - Enable/disable edit new VDOM prompt.
540 type: str
541 choices:
542 - 'enable'
543 - 'disable'
544 endpoint_control_fds_access:
545 description:
546 - Enable/disable access to the FortiGuard network for non-compliant endpoints.
547 type: str
548 choices:
549 - 'enable'
550 - 'disable'
551 endpoint_control_portal_port:
552 description:
553 - Endpoint control portal port (1 - 65535).
554 type: int
555 extender_controller_reserved_network:
556 description:
557 - Configure reserved network subnet for managed LAN extension FortiExtender units. This is available when the FortiExtender daemon is
558 running.
559 type: str
560 failtime:
561 description:
562 - Fail-time for server lost.
563 type: int
564 faz_disk_buffer_size:
565 description:
566 - Maximum disk buffer size to temporarily store logs destined for FortiAnalyzer. To be used in the event that FortiAnalyzer is unavailable.
567 type: int
568 fds_statistics:
569 description:
570 - Enable/disable sending IPS, Application Control, and AntiVirus data to FortiGuard. This data is used to improve FortiGuard services and
571 is not shared with external parties and is protected by Fortinet"s privacy policy.
572 type: str
573 choices:
574 - 'enable'
575 - 'disable'
576 fds_statistics_period:
577 description:
578 - FortiGuard statistics collection period in minutes. (1 - 1440 min (1 min to 24 hours)).
579 type: int
580 fec_port:
581 description:
582 - Local UDP port for Forward Error Correction (49152 - 65535).
583 type: int
584 fgd_alert_subscription:
585 description:
586 - Type of alert to retrieve from FortiGuard.
587 type: list
588 elements: str
589 choices:
590 - 'advisory'
591 - 'latest-threat'
592 - 'latest-virus'
593 - 'latest-attack'
594 - 'new-antivirus-db'
595 - 'new-attack-db'
596 forticarrier_bypass:
597 description:
598 - Enable/disable forticarrier-bypass.
599 type: str
600 choices:
601 - 'enable'
602 - 'disable'
603 forticonverter_config_upload:
604 description:
605 - Enable/disable config upload to FortiConverter.
606 type: str
607 choices:
608 - 'once'
609 - 'disable'
610 forticonverter_integration:
611 description:
612 - Enable/disable FortiConverter integration service.
613 type: str
614 choices:
615 - 'enable'
616 - 'disable'
617 fortiextender:
618 description:
619 - Enable/disable FortiExtender.
620 type: str
621 choices:
622 - 'disable'
623 - 'enable'
624 fortiextender_data_port:
625 description:
626 - FortiExtender data port (1024 - 49150).
627 type: int
628 fortiextender_discovery_lockdown:
629 description:
630 - Enable/disable FortiExtender CAPWAP lockdown.
631 type: str
632 choices:
633 - 'disable'
634 - 'enable'
635 fortiextender_provision_on_authorization:
636 description:
637 - Enable/disable automatic provisioning of latest FortiExtender firmware on authorization.
638 type: str
639 choices:
640 - 'enable'
641 - 'disable'
642 fortiextender_vlan_mode:
643 description:
644 - Enable/disable FortiExtender VLAN mode.
645 type: str
646 choices:
647 - 'enable'
648 - 'disable'
649 fortigslb_integration:
650 description:
651 - Enable/disable integration with the FortiGSLB cloud service.
652 type: str
653 choices:
654 - 'disable'
655 - 'enable'
656 fortiipam_integration:
657 description:
658 - Enable/disable integration with the FortiIPAM cloud service.
659 type: str
660 choices:
661 - 'enable'
662 - 'disable'
663 fortiservice_port:
664 description:
665 - FortiService port (1 - 65535). Used by FortiClient endpoint compliance. Older versions of FortiClient used a different port.
666 type: int
667 fortitoken_cloud:
668 description:
669 - Enable/disable FortiToken Cloud service.
670 type: str
671 choices:
672 - 'enable'
673 - 'disable'
674 fortitoken_cloud_push_status:
675 description:
676 - Enable/disable FTM push service of FortiToken Cloud.
677 type: str
678 choices:
679 - 'enable'
680 - 'disable'
681 fortitoken_cloud_region:
682 description:
683 - Region domain of FortiToken Cloud(unset to non-region).
684 type: str
685 fortitoken_cloud_sync_interval:
686 description:
687 - Interval in which to clean up remote users in FortiToken Cloud (0 - 336 hours (14 days)).
688 type: int
689 geoip_full_db:
690 description:
691 - When enabled, the full geographic database will be loaded into the kernel which enables geographic information in traffic logs -
692 required for FortiView countries. Disabling this option will conserve memory.
693 type: str
694 choices:
695 - 'enable'
696 - 'disable'
697 gui_allow_default_hostname:
698 description:
699 - Enable/disable the factory default hostname warning on the GUI setup wizard.
700 type: str
701 choices:
702 - 'enable'
703 - 'disable'
704 gui_allow_incompatible_fabric_fgt:
705 description:
706 - Enable/disable Allow FGT with incompatible firmware to be treated as compatible in security fabric on the GUI. May cause unexpected
707 error.
708 type: str
709 choices:
710 - 'enable'
711 - 'disable'
712 gui_app_detection_sdwan:
713 description:
714 - Enable/disable Allow app-detection based SD-WAN.
715 type: str
716 choices:
717 - 'enable'
718 - 'disable'
719 gui_auto_upgrade_setup_warning:
720 description:
721 - Enable/disable the automatic patch upgrade setup prompt on the GUI.
722 type: str
723 choices:
724 - 'enable'
725 - 'disable'
726 gui_cdn_domain_override:
727 description:
728 - Domain of CDN server.
729 type: str
730 gui_cdn_usage:
731 description:
732 - Enable/disable Load GUI static files from a CDN.
733 type: str
734 choices:
735 - 'enable'
736 - 'disable'
737 gui_certificates:
738 description:
739 - Enable/disable the System > Certificate GUI page, allowing you to add and configure certificates from the GUI.
740 type: str
741 choices:
742 - 'enable'
743 - 'disable'
744 gui_custom_language:
745 description:
746 - Enable/disable custom languages in GUI.
747 type: str
748 choices:
749 - 'enable'
750 - 'disable'
751 gui_date_format:
752 description:
753 - Default date format used throughout GUI.
754 type: str
755 choices:
756 - 'yyyy/MM/dd'
757 - 'dd/MM/yyyy'
758 - 'MM/dd/yyyy'
759 - 'yyyy-MM-dd'
760 - 'dd-MM-yyyy'
761 - 'MM-dd-yyyy'
762 gui_date_time_source:
763 description:
764 - Source from which the FortiGate GUI uses to display date and time entries.
765 type: str
766 choices:
767 - 'system'
768 - 'browser'
769 gui_device_latitude:
770 description:
771 - Add the latitude of the location of this FortiGate to position it on the Threat Map.
772 type: str
773 gui_device_longitude:
774 description:
775 - Add the longitude of the location of this FortiGate to position it on the Threat Map.
776 type: str
777 gui_display_hostname:
778 description:
779 - Enable/disable displaying the FortiGate"s hostname on the GUI login page.
780 type: str
781 choices:
782 - 'enable'
783 - 'disable'
784 gui_firmware_upgrade_warning:
785 description:
786 - Enable/disable the firmware upgrade warning on the GUI.
787 type: str
788 choices:
789 - 'enable'
790 - 'disable'
791 gui_forticare_registration_setup_warning:
792 description:
793 - Enable/disable the FortiCare registration setup warning on the GUI.
794 type: str
795 choices:
796 - 'enable'
797 - 'disable'
798 gui_fortigate_cloud_sandbox:
799 description:
800 - Enable/disable displaying FortiGate Cloud Sandbox on the GUI.
801 type: str
802 choices:
803 - 'enable'
804 - 'disable'
805 gui_fortiguard_resource_fetch:
806 description:
807 - Enable/disable retrieving static GUI resources from FortiGuard. Disabling it will improve GUI load time for air-gapped environments.
808 type: str
809 choices:
810 - 'enable'
811 - 'disable'
812 gui_fortisandbox_cloud:
813 description:
814 - Enable/disable displaying FortiSandbox Cloud on the GUI.
815 type: str
816 choices:
817 - 'enable'
818 - 'disable'
819 gui_ipv6:
820 description:
821 - Enable/disable IPv6 settings on the GUI.
822 type: str
823 choices:
824 - 'enable'
825 - 'disable'
826 gui_lines_per_page:
827 description:
828 - Number of lines to display per page for web administration.
829 type: int
830 gui_local_out:
831 description:
832 - Enable/disable Local-out traffic on the GUI.
833 type: str
834 choices:
835 - 'enable'
836 - 'disable'
837 gui_replacement_message_groups:
838 description:
839 - Enable/disable replacement message groups on the GUI.
840 type: str
841 choices:
842 - 'enable'
843 - 'disable'
844 gui_rest_api_cache:
845 description:
846 - Enable/disable REST API result caching on FortiGate.
847 type: str
848 choices:
849 - 'enable'
850 - 'disable'
851 gui_theme:
852 description:
853 - Color scheme for the administration GUI.
854 type: str
855 choices:
856 - 'jade'
857 - 'neutrino'
858 - 'mariner'
859 - 'graphite'
860 - 'melongene'
861 - 'jet-stream'
862 - 'security-fabric'
863 - 'retro'
864 - 'dark-matter'
865 - 'onyx'
866 - 'eclipse'
867 - 'green'
868 - 'blue'
869 - 'red'
870 gui_wireless_opensecurity:
871 description:
872 - Enable/disable wireless open security option on the GUI.
873 type: str
874 choices:
875 - 'enable'
876 - 'disable'
877 gui_workflow_management:
878 description:
879 - Enable/disable Workflow management features on the GUI.
880 type: str
881 choices:
882 - 'enable'
883 - 'disable'
884 ha_affinity:
885 description:
886 - Affinity setting for HA daemons (hexadecimal value up to 256 bits in the format of xxxxxxxxxxxxxxxx).
887 type: str
888 honor_df:
889 description:
890 - Enable/disable honoring of Don"t-Fragment (DF) flag.
891 type: str
892 choices:
893 - 'enable'
894 - 'disable'
895 hostname:
896 description:
897 - FortiGate unit"s hostname. Most models will truncate names longer than 24 characters. Some models support hostnames up to 35 characters.
898 type: str
899 httpd_max_worker_count:
900 description:
901 - Maximum number of simultaneous HTTP requests that will be served. This number may affect GUI and REST API performance (0 - 128).
902 type: int
903 igmp_state_limit:
904 description:
905 - Maximum number of IGMP memberships (96 - 64000).
906 type: int
907 interface_subnet_usage:
908 description:
909 - Enable/disable allowing use of interface-subnet setting in firewall addresses .
910 type: str
911 choices:
912 - 'disable'
913 - 'enable'
914 internet_service_database:
915 description:
916 - Configure which Internet Service database size to download from FortiGuard and use.
917 type: str
918 choices:
919 - 'mini'
920 - 'standard'
921 - 'full'
922 - 'on-demand'
923 internet_service_download_list:
924 description:
925 - Configure which on-demand Internet Service IDs are to be downloaded.
926 type: list
927 elements: dict
928 suboptions:
929 id:
930 description:
931 - Internet Service ID. see <a href='#notes'>Notes</a>. Source firewall.internet-service.id.
932 required: true
933 type: int
934 interval:
935 description:
936 - Dead gateway detection interval.
937 type: int
938 ip_conflict_detection:
939 description:
940 - Enable/disable logging of IPv4 address conflict detection.
941 type: str
942 choices:
943 - 'enable'
944 - 'disable'
945 ip_fragment_mem_thresholds:
946 description:
947 - Maximum memory (MB) used to reassemble IPv4/IPv6 fragments.
948 type: int
949 ip_fragment_timeout:
950 description:
951 - Timeout value in seconds for any fragment not being reassembled
952 type: int
953 ip_src_port_range:
954 description:
955 - IP source port range used for traffic originating from the FortiGate unit.
956 type: str
957 ips_affinity:
958 description:
959 - Affinity setting for IPS (hexadecimal value up to 256 bits in the format of xxxxxxxxxxxxxxxx; allowed CPUs must be less than total
960 number of IPS engine daemons).
961 type: str
962 ipsec_asic_offload:
963 description:
964 - Enable/disable ASIC offloading (hardware acceleration) for IPsec VPN traffic. Hardware acceleration can offload IPsec VPN sessions and
965 accelerate encryption and decryption.
966 type: str
967 choices:
968 - 'enable'
969 - 'disable'
970 ipsec_ha_seqjump_rate:
971 description:
972 - ESP jump ahead rate (1G - 10G pps equivalent).
973 type: int
974 ipsec_hmac_offload:
975 description:
976 - Enable/disable offloading (hardware acceleration) of HMAC processing for IPsec VPN.
977 type: str
978 choices:
979 - 'enable'
980 - 'disable'
981 ipsec_qat_offload:
982 description:
983 - Enable/disable QAT offloading (Intel QuickAssist) for IPsec VPN traffic. QuickAssist can accelerate IPsec encryption and decryption.
984 type: str
985 choices:
986 - 'enable'
987 - 'disable'
988 ipsec_round_robin:
989 description:
990 - Enable/disable round-robin redistribution to multiple CPUs for IPsec VPN traffic.
991 type: str
992 choices:
993 - 'enable'
994 - 'disable'
995 ipsec_soft_dec_async:
996 description:
997 - Enable/disable software decryption asynchronization (using multiple CPUs to do decryption) for IPsec VPN traffic.
998 type: str
999 choices:
1000 - 'enable'
1001 - 'disable'
1002 ipv6_accept_dad:
1003 description:
1004 - Enable/disable acceptance of IPv6 Duplicate Address Detection (DAD).
1005 type: int
1006 ipv6_allow_anycast_probe:
1007 description:
1008 - Enable/disable IPv6 address probe through Anycast.
1009 type: str
1010 choices:
1011 - 'enable'
1012 - 'disable'
1013 ipv6_allow_local_in_silent_drop:
1014 description:
1015 - Enable/disable silent drop of IPv6 local-in traffic.
1016 type: str
1017 choices:
1018 - 'enable'
1019 - 'disable'
1020 ipv6_allow_local_in_slient_drop:
1021 description:
1022 - Enable/disable silent drop of IPv6 local-in traffic.
1023 type: str
1024 choices:
1025 - 'enable'
1026 - 'disable'
1027 ipv6_allow_multicast_probe:
1028 description:
1029 - Enable/disable IPv6 address probe through Multicast.
1030 type: str
1031 choices:
1032 - 'enable'
1033 - 'disable'
1034 ipv6_allow_traffic_redirect:
1035 description:
1036 - Disable to prevent IPv6 traffic with same local ingress and egress interface from being forwarded without policy check.
1037 type: str
1038 choices:
1039 - 'enable'
1040 - 'disable'
1041 ipv6_fragment_timeout:
1042 description:
1043 - Timeout value in seconds for any IPv6 fragment not being reassembled
1044 type: int
1045 ipv6_snat_route_change:
1046 description:
1047 - Enable/disable the ability to change the IPv6 source NAT route.
1048 type: str
1049 choices:
1050 - 'enable'
1051 - 'disable'
1052 irq_time_accounting:
1053 description:
1054 - Configure CPU IRQ time accounting mode.
1055 type: str
1056 choices:
1057 - 'auto'
1058 - 'force'
1059 language:
1060 description:
1061 - GUI display language.
1062 type: str
1063 choices:
1064 - 'english'
1065 - 'french'
1066 - 'spanish'
1067 - 'portuguese'
1068 - 'japanese'
1069 - 'trach'
1070 - 'simch'
1071 - 'korean'
1072 ldapconntimeout:
1073 description:
1074 - Global timeout for connections with remote LDAP servers in milliseconds (1 - 300000).
1075 type: int
1076 lldp_reception:
1077 description:
1078 - Enable/disable Link Layer Discovery Protocol (LLDP) reception.
1079 type: str
1080 choices:
1081 - 'enable'
1082 - 'disable'
1083 lldp_transmission:
1084 description:
1085 - Enable/disable Link Layer Discovery Protocol (LLDP) transmission.
1086 type: str
1087 choices:
1088 - 'enable'
1089 - 'disable'
1090 log_daemon_cpu_threshold:
1091 description:
1092 - Configure syslog daemon process spawning threshold. Use a percentage threshold of syslogd CPU usage (1 - 99) or set to zero to use
1093 dynamic scheduling based on the number of packets in the syslogd queue .
1094 type: int
1095 log_single_cpu_high:
1096 description:
1097 - Enable/disable logging the event of a single CPU core reaching CPU usage threshold.
1098 type: str
1099 choices:
1100 - 'enable'
1101 - 'disable'
1102 log_ssl_connection:
1103 description:
1104 - Enable/disable logging of SSL connection events.
1105 type: str
1106 choices:
1107 - 'enable'
1108 - 'disable'
1109 log_uuid:
1110 description:
1111 - Whether UUIDs are added to traffic logs. You can disable UUIDs, add firewall policy UUIDs to traffic logs, or add all UUIDs to traffic
1112 logs.
1113 type: str
1114 choices:
1115 - 'disable'
1116 - 'policy-only'
1117 - 'extended'
1118 log_uuid_address:
1119 description:
1120 - Enable/disable insertion of address UUIDs to traffic logs.
1121 type: str
1122 choices:
1123 - 'enable'
1124 - 'disable'
1125 log_uuid_policy:
1126 description:
1127 - Enable/disable insertion of policy UUIDs to traffic logs.
1128 type: str
1129 choices:
1130 - 'enable'
1131 - 'disable'
1132 login_timestamp:
1133 description:
1134 - Enable/disable login time recording.
1135 type: str
1136 choices:
1137 - 'enable'
1138 - 'disable'
1139 long_vdom_name:
1140 description:
1141 - Enable/disable long VDOM name support.
1142 type: str
1143 choices:
1144 - 'enable'
1145 - 'disable'
1146 management_ip:
1147 description:
1148 - Management IP address of this FortiGate. Used to log into this FortiGate from another FortiGate in the Security Fabric.
1149 type: str
1150 management_port:
1151 description:
1152 - Overriding port for management connection (Overrides admin port).
1153 type: int
1154 management_port_use_admin_sport:
1155 description:
1156 - Enable/disable use of the admin-sport setting for the management port. If disabled, FortiGate will allow user to specify management-port.
1157 type: str
1158 choices:
1159 - 'enable'
1160 - 'disable'
1161 management_vdom:
1162 description:
1163 - Management virtual domain name. Source system.vdom.name.
1164 type: str
1165 max_dlpstat_memory:
1166 description:
1167 - Maximum DLP stat memory (0 - 4294967295).
1168 type: int
1169 max_route_cache_size:
1170 description:
1171 - Maximum number of IP route cache entries (0 - 2147483647).
1172 type: int
1173 mc_ttl_notchange:
1174 description:
1175 - Enable/disable no modification of multicast TTL.
1176 type: str
1177 choices:
1178 - 'enable'
1179 - 'disable'
1180 memory_use_threshold_extreme:
1181 description:
1182 - Threshold at which memory usage is considered extreme (new sessions are dropped) (% of total RAM).
1183 type: int
1184 memory_use_threshold_green:
1185 description:
1186 - Threshold at which memory usage forces the FortiGate to exit conserve mode (% of total RAM).
1187 type: int
1188 memory_use_threshold_red:
1189 description:
1190 - Threshold at which memory usage forces the FortiGate to enter conserve mode (% of total RAM).
1191 type: int
1192 miglog_affinity:
1193 description:
1194 - Affinity setting for logging (hexadecimal value up to 256 bits in the format of xxxxxxxxxxxxxxxx).
1195 type: str
1196 miglogd_children:
1197 description:
1198 - Number of logging (miglogd) processes to be allowed to run. Higher number can reduce performance; lower number can slow log processing
1199 time.
1200 type: int
1201 multi_factor_authentication:
1202 description:
1203 - Enforce all login methods to require an additional authentication factor .
1204 type: str
1205 choices:
1206 - 'optional'
1207 - 'mandatory'
1208 multicast_forward:
1209 description:
1210 - Enable/disable multicast forwarding.
1211 type: str
1212 choices:
1213 - 'enable'
1214 - 'disable'
1215 ndp_max_entry:
1216 description:
1217 - Maximum number of NDP table entries (set to 65,536 or higher; if set to 0, kernel holds 65,536 entries).
1218 type: int
1219 npu_neighbor_update:
1220 description:
1221 - Enable/disable sending of ARP/ICMP6 probing packets to update neighbors for offloaded sessions.
1222 type: str
1223 choices:
1224 - 'enable'
1225 - 'disable'
1226 per_user_bal:
1227 description:
1228 - Enable/disable per-user block/allow list filter.
1229 type: str
1230 choices:
1231 - 'enable'
1232 - 'disable'
1233 per_user_bwl:
1234 description:
1235 - Enable/disable per-user black/white list filter.
1236 type: str
1237 choices:
1238 - 'enable'
1239 - 'disable'
1240 pmtu_discovery:
1241 description:
1242 - Enable/disable path MTU discovery.
1243 type: str
1244 choices:
1245 - 'enable'
1246 - 'disable'
1247 policy_auth_concurrent:
1248 description:
1249 - Number of concurrent firewall use logins from the same user (1 - 100).
1250 type: int
1251 post_login_banner:
1252 description:
1253 - Enable/disable displaying the administrator access disclaimer message after an administrator successfully logs in.
1254 type: str
1255 choices:
1256 - 'disable'
1257 - 'enable'
1258 pre_login_banner:
1259 description:
1260 - Enable/disable displaying the administrator access disclaimer message on the login page before an administrator logs in.
1261 type: str
1262 choices:
1263 - 'enable'
1264 - 'disable'
1265 private_data_encryption:
1266 description:
1267 - Enable/disable private data encryption using an AES 128-bit key or passpharse.
1268 type: str
1269 choices:
1270 - 'disable'
1271 - 'enable'
1272 proxy_auth_lifetime:
1273 description:
1274 - Enable/disable authenticated users lifetime control. This is a cap on the total time a proxy user can be authenticated for after which
1275 re-authentication will take place.
1276 type: str
1277 choices:
1278 - 'enable'
1279 - 'disable'
1280 proxy_auth_lifetime_timeout:
1281 description:
1282 - Lifetime timeout in minutes for authenticated users (5 - 65535 min).
1283 type: int
1284 proxy_auth_timeout:
1285 description:
1286 - Authentication timeout in minutes for authenticated users (1 - 10000 min).
1287 type: int
1288 proxy_cert_use_mgmt_vdom:
1289 description:
1290 - Enable/disable using management VDOM to send requests.
1291 type: str
1292 choices:
1293 - 'enable'
1294 - 'disable'
1295 proxy_cipher_hardware_acceleration:
1296 description:
1297 - Enable/disable using content processor (CP8 or CP9) hardware acceleration to encrypt and decrypt IPsec and SSL traffic.
1298 type: str
1299 choices:
1300 - 'disable'
1301 - 'enable'
1302 proxy_hardware_acceleration:
1303 description:
1304 - Enable/disable email proxy hardware acceleration.
1305 type: str
1306 choices:
1307 - 'disable'
1308 - 'enable'
1309 proxy_keep_alive_mode:
1310 description:
1311 - Control if users must re-authenticate after a session is closed, traffic has been idle, or from the point at which the user was
1312 authenticated.
1313 type: str
1314 choices:
1315 - 'session'
1316 - 'traffic'
1317 - 're-authentication'
1318 proxy_kxp_hardware_acceleration:
1319 description:
1320 - Enable/disable using the content processor to accelerate KXP traffic.
1321 type: str
1322 choices:
1323 - 'disable'
1324 - 'enable'
1325 proxy_re_authentication_mode:
1326 description:
1327 - Control if users must re-authenticate after a session is closed, traffic has been idle, or from the point at which the user was first
1328 created.
1329 type: str
1330 choices:
1331 - 'session'
1332 - 'traffic'
1333 - 'absolute'
1334 proxy_re_authentication_time:
1335 description:
1336 - The time limit that users must re-authenticate if proxy-keep-alive-mode is set to re-authenticate (1 - 86400 sec, default=30s.
1337 type: int
1338 proxy_resource_mode:
1339 description:
1340 - Enable/disable use of the maximum memory usage on the FortiGate unit"s proxy processing of resources, such as block lists, allow lists,
1341 and external resources.
1342 type: str
1343 choices:
1344 - 'enable'
1345 - 'disable'
1346 proxy_worker_count:
1347 description:
1348 - Proxy worker count.
1349 type: int
1350 purdue_level:
1351 description:
1352 - Purdue Level of this FortiGate.
1353 type: str
1354 choices:
1355 - '1'
1356 - '1.5'
1357 - '2'
1358 - '2.5'
1359 - '3'
1360 - '3.5'
1361 - '4'
1362 - '5'
1363 - '5.5'
1364 quic_ack_thresold:
1365 description:
1366 - Maximum number of unacknowledged packets before sending ACK (2 - 5).
1367 type: int
1368 quic_congestion_control_algo:
1369 description:
1370 - QUIC congestion control algorithm .
1371 type: str
1372 choices:
1373 - 'cubic'
1374 - 'bbr'
1375 - 'bbr2'
1376 - 'reno'
1377 quic_max_datagram_size:
1378 description:
1379 - Maximum transmit datagram size (1200 - 1500).
1380 type: int
1381 quic_pmtud:
1382 description:
1383 - Enable/disable path MTU discovery .
1384 type: str
1385 choices:
1386 - 'enable'
1387 - 'disable'
1388 quic_tls_handshake_timeout:
1389 description:
1390 - Time-to-live (TTL) for TLS handshake in seconds (1 - 60).
1391 type: int
1392 quic_udp_payload_size_shaping_per_cid:
1393 description:
1394 - Enable/disable UDP payload size shaping per connection ID .
1395 type: str
1396 choices:
1397 - 'enable'
1398 - 'disable'
1399 radius_port:
1400 description:
1401 - RADIUS service port number.
1402 type: int
1403 reboot_upon_config_restore:
1404 description:
1405 - Enable/disable reboot of system upon restoring configuration.
1406 type: str
1407 choices:
1408 - 'enable'
1409 - 'disable'
1410 refresh:
1411 description:
1412 - Statistics refresh interval second(s) in GUI.
1413 type: int
1414 remoteauthtimeout:
1415 description:
1416 - Number of seconds that the FortiGate waits for responses from remote RADIUS, LDAP, or TACACS+ authentication servers. (1-300 sec).
1417 type: int
1418 reset_sessionless_tcp:
1419 description:
1420 - Action to perform if the FortiGate receives a TCP packet but cannot find a corresponding session in its session table. NAT/Route mode
1421 only.
1422 type: str
1423 choices:
1424 - 'enable'
1425 - 'disable'
1426 rest_api_key_url_query:
1427 description:
1428 - Enable/disable support for passing REST API keys through URL query parameters.
1429 type: str
1430 choices:
1431 - 'enable'
1432 - 'disable'
1433 restart_time:
1434 description:
1435 - 'Daily restart time (hh:mm).'
1436 type: str
1437 revision_backup_on_logout:
1438 description:
1439 - Enable/disable back-up of the latest configuration revision when an administrator logs out of the CLI or GUI.
1440 type: str
1441 choices:
1442 - 'enable'
1443 - 'disable'
1444 revision_image_auto_backup:
1445 description:
1446 - Enable/disable back-up of the latest image revision after the firmware is upgraded.
1447 type: str
1448 choices:
1449 - 'enable'
1450 - 'disable'
1451 router_affinity:
1452 description:
1453 - Affinity setting for BFD/VRRP/BGP/OSPF daemons (hexadecimal value up to 256 bits in the format of xxxxxxxxxxxxxxxx).
1454 type: str
1455 scanunit_count:
1456 description:
1457 - Number of scanunits. The range and the default depend on the number of CPUs. Only available on FortiGate units with multiple CPUs.
1458 type: int
1459 scim_http_port:
1460 description:
1461 - SCIM http port (0 - 65535).
1462 type: int
1463 scim_https_port:
1464 description:
1465 - SCIM port (0 - 65535).
1466 type: int
1467 scim_server_cert:
1468 description:
1469 - Server certificate that the FortiGate uses for SCIM connections. Source certificate.local.name.
1470 type: str
1471 security_rating_result_submission:
1472 description:
1473 - Enable/disable the submission of Security Rating results to FortiGuard.
1474 type: str
1475 choices:
1476 - 'enable'
1477 - 'disable'
1478 security_rating_run_on_schedule:
1479 description:
1480 - Enable/disable scheduled runs of Security Rating.
1481 type: str
1482 choices:
1483 - 'enable'
1484 - 'disable'
1485 send_pmtu_icmp:
1486 description:
1487 - Enable/disable sending of path maximum transmission unit (PMTU) - ICMP destination unreachable packet and to support PMTUD protocol on
1488 your network to reduce fragmentation of packets.
1489 type: str
1490 choices:
1491 - 'enable'
1492 - 'disable'
1493 sflowd_max_children_num:
1494 description:
1495 - Maximum number of sflowd child processes allowed to run.
1496 type: int
1497 single_vdom_npuvlink:
1498 description:
1499 - Enable/disable NPU VDOMs links for single VDOM.
1500 type: str
1501 choices:
1502 - 'enable'
1503 - 'disable'
1504 snat_route_change:
1505 description:
1506 - Enable/disable the ability to change the source NAT route.
1507 type: str
1508 choices:
1509 - 'enable'
1510 - 'disable'
1511 special_file_23_support:
1512 description:
1513 - Enable/disable detection of those special format files when using Data Loss Prevention.
1514 type: str
1515 choices:
1516 - 'disable'
1517 - 'enable'
1518 speedtest_server:
1519 description:
1520 - Enable/disable speed test server.
1521 type: str
1522 choices:
1523 - 'enable'
1524 - 'disable'
1525 speedtestd_ctrl_port:
1526 description:
1527 - Speedtest server controller port number.
1528 type: int
1529 speedtestd_server_port:
1530 description:
1531 - Speedtest server port number.
1532 type: int
1533 split_port:
1534 description:
1535 - Split port(s) to multiple 10Gbps ports.
1536 type: list
1537 elements: str
1538 split_port_mode:
1539 description:
1540 - Configure split port mode of ports.
1541 type: list
1542 elements: dict
1543 suboptions:
1544 interface:
1545 description:
1546 - Split port interface.
1547 required: true
1548 type: str
1549 split_mode:
1550 description:
1551 - The configuration mode for the split port interface.
1552 type: str
1553 choices:
1554 - 'disable'
1555 - '4x10G'
1556 - '4x25G'
1557 - '4x50G'
1558 - '8x25G'
1559 - '8x50G'
1560 - '4x100G'
1561 - '2x200G'
1562 ssd_trim_date:
1563 description:
1564 - Date within a month to run ssd trim.
1565 type: int
1566 ssd_trim_freq:
1567 description:
1568 - How often to run SSD Trim . SSD Trim prevents SSD drive data loss by finding and isolating errors.
1569 type: str
1570 choices:
1571 - 'never'
1572 - 'hourly'
1573 - 'daily'
1574 - 'weekly'
1575 - 'monthly'
1576 ssd_trim_hour:
1577 description:
1578 - Hour of the day on which to run SSD Trim (0 - 23).
1579 type: int
1580 ssd_trim_min:
1581 description:
1582 - Minute of the hour on which to run SSD Trim (0 - 59, 60 for random).
1583 type: int
1584 ssd_trim_weekday:
1585 description:
1586 - Day of week to run SSD Trim.
1587 type: str
1588 choices:
1589 - 'sunday'
1590 - 'monday'
1591 - 'tuesday'
1592 - 'wednesday'
1593 - 'thursday'
1594 - 'friday'
1595 - 'saturday'
1596 ssh_cbc_cipher:
1597 description:
1598 - Enable/disable CBC cipher for SSH access.
1599 type: str
1600 choices:
1601 - 'enable'
1602 - 'disable'
1603 ssh_enc_algo:
1604 description:
1605 - Select one or more SSH ciphers.
1606 type: list
1607 elements: str
1608 choices:
1609 - '[email protected]'
1610 - 'aes128-ctr'
1611 - 'aes192-ctr'
1612 - 'aes256-ctr'
1613 - 'arcfour256'
1614 - 'arcfour128'
1615 - 'aes128-cbc'
1616 - '3des-cbc'
1617 - 'blowfish-cbc'
1618 - 'cast128-cbc'
1619 - 'aes192-cbc'
1620 - 'aes256-cbc'
1621 - 'arcfour'
1622 - '[email protected]'
1623 - '[email protected]'
1624 - '[email protected]'
1625 ssh_hmac_md5:
1626 description:
1627 - Enable/disable HMAC-MD5 for SSH access.
1628 type: str
1629 choices:
1630 - 'enable'
1631 - 'disable'
1632 ssh_hostkey:
1633 description:
1634 - Config SSH host key.
1635 type: str
1636 ssh_hostkey_algo:
1637 description:
1638 - Select one or more SSH hostkey algorithms.
1639 type: list
1640 elements: str
1641 choices:
1642 - 'ssh-rsa'
1643 - 'ecdsa-sha2-nistp521'
1644 - 'ecdsa-sha2-nistp384'
1645 - 'ecdsa-sha2-nistp256'
1646 - 'rsa-sha2-256'
1647 - 'rsa-sha2-512'
1648 - 'ssh-ed25519'
1649 ssh_hostkey_override:
1650 description:
1651 - Enable/disable SSH host key override in SSH daemon.
1652 type: str
1653 choices:
1654 - 'disable'
1655 - 'enable'
1656 ssh_hostkey_password:
1657 description:
1658 - Password for ssh-hostkey.
1659 type: str
1660 ssh_kex_algo:
1661 description:
1662 - Select one or more SSH kex algorithms.
1663 type: list
1664 elements: str
1665 choices:
1666 - 'diffie-hellman-group1-sha1'
1667 - 'diffie-hellman-group14-sha1'
1668 - 'diffie-hellman-group14-sha256'
1669 - 'diffie-hellman-group16-sha512'
1670 - 'diffie-hellman-group18-sha512'
1671 - 'diffie-hellman-group-exchange-sha1'
1672 - 'diffie-hellman-group-exchange-sha256'
1673 - '[email protected]'
1674 - 'ecdh-sha2-nistp256'
1675 - 'ecdh-sha2-nistp384'
1676 - 'ecdh-sha2-nistp521'
1677 ssh_kex_sha1:
1678 description:
1679 - Enable/disable SHA1 key exchange for SSH access.
1680 type: str
1681 choices:
1682 - 'enable'
1683 - 'disable'
1684 ssh_mac_algo:
1685 description:
1686 - Select one or more SSH MAC algorithms.
1687 type: list
1688 elements: str
1689 choices:
1690 - 'hmac-md5'
1691 - '[email protected]'
1692 - 'hmac-md5-96'
1693 - '[email protected]'
1694 - 'hmac-sha1'
1695 - '[email protected]'
1696 - 'hmac-sha2-256'
1697 - '[email protected]'
1698 - 'hmac-sha2-512'
1699 - '[email protected]'
1700 - 'hmac-ripemd160'
1701 - '[email protected]'
1702 - '[email protected]'
1703 - '[email protected]'
1704 - '[email protected]'
1705 - '[email protected]'
1706 - '[email protected]'
1707 ssh_mac_weak:
1708 description:
1709 - Enable/disable HMAC-SHA1 and UMAC-64-ETM for SSH access.
1710 type: str
1711 choices:
1712 - 'enable'
1713 - 'disable'
1714 ssl_min_proto_version:
1715 description:
1716 - Minimum supported protocol version for SSL/TLS connections .
1717 type: str
1718 choices:
1719 - 'SSLv3'
1720 - 'TLSv1'
1721 - 'TLSv1-1'
1722 - 'TLSv1-2'
1723 - 'TLSv1-3'
1724 ssl_static_key_ciphers:
1725 description:
1726 - Enable/disable static key ciphers in SSL/TLS connections (e.g. AES128-SHA, AES256-SHA, AES128-SHA256, AES256-SHA256).
1727 type: str
1728 choices:
1729 - 'enable'
1730 - 'disable'
1731 sslvpn_affinity:
1732 description:
1733 - Agentless VPN CPU affinity.
1734 type: str
1735 sslvpn_cipher_hardware_acceleration:
1736 description:
1737 - sslvpn-cipher-hardware-acceleration
1738 type: str
1739 choices:
1740 - 'enable'
1741 - 'disable'
1742 sslvpn_ems_sn_check:
1743 description:
1744 - Enable/disable verification of EMS serial number in SSL-VPN connection.
1745 type: str
1746 choices:
1747 - 'enable'
1748 - 'disable'
1749 sslvpn_kxp_hardware_acceleration:
1750 description:
1751 - sslvpn-kxp-hardware-acceleration
1752 type: str
1753 choices:
1754 - 'enable'
1755 - 'disable'
1756 sslvpn_max_worker_count:
1757 description:
1758 - Maximum number of Agentless VPN processes. Upper limit for this value is the number of CPUs and depends on the model. Default value of
1759 zero means the sslvpnd daemon decides the number of worker processes.
1760 type: int
1761 sslvpn_plugin_version_check:
1762 description:
1763 - sslvpn-plugin-version-check
1764 type: str
1765 choices:
1766 - 'enable'
1767 - 'disable'
1768 sslvpn_web_mode:
1769 description:
1770 - Enable/disable Agentless VPN web mode.
1771 type: str
1772 choices:
1773 - 'enable'
1774 - 'disable'
1775 strict_dirty_session_check:
1776 description:
1777 - Enable to check the session against the original policy when revalidating. This can prevent dropping of redirected sessions when
1778 web-filtering and authentication are enabled together. If this option is enabled, the FortiGate unit deletes a session if a routing or
1779 policy change causes the session to no longer match the policy that originally allowed the session.
1780 type: str
1781 choices:
1782 - 'enable'
1783 - 'disable'
1784 strong_crypto:
1785 description:
1786 - Enable to use strong encryption and only allow strong ciphers and digest for HTTPS/SSH/TLS/SSL functions.
1787 type: str
1788 choices:
1789 - 'enable'
1790 - 'disable'
1791 switch_controller:
1792 description:
1793 - Enable/disable switch controller feature. Switch controller allows you to manage FortiSwitch from the FortiGate itself.
1794 type: str
1795 choices:
1796 - 'disable'
1797 - 'enable'
1798 switch_controller_reserved_network:
1799 description:
1800 - Configure reserved network subnet for managed switches. This is available when the switch controller is enabled.
1801 type: str
1802 sys_perf_log_interval:
1803 description:
1804 - Time in minutes between updates of performance statistics logging. (1 - 15 min).
1805 type: int
1806 syslog_affinity:
1807 description:
1808 - Affinity setting for syslog (hexadecimal value up to 256 bits in the format of xxxxxxxxxxxxxxxx).
1809 type: str
1810 tcp_halfclose_timer:
1811 description:
1812 - Number of seconds the FortiGate unit should wait to close a session after one peer has sent a FIN packet but the other has not responded
1813 (1 - 86400 sec (1 day)).
1814 type: int
1815 tcp_halfopen_timer:
1816 description:
1817 - Number of seconds the FortiGate unit should wait to close a session after one peer has sent an open session packet but the other has not
1818 responded (1 - 86400 sec (1 day)).
1819 type: int
1820 tcp_option:
1821 description:
1822 - Enable SACK, timestamp and MSS TCP options.
1823 type: str
1824 choices:
1825 - 'enable'
1826 - 'disable'
1827 tcp_rst_timer:
1828 description:
1829 - Length of the TCP CLOSE state in seconds (5 - 300 sec).
1830 type: int
1831 tcp_timewait_timer:
1832 description:
1833 - Length of the TCP TIME-WAIT state in seconds (1 - 300 sec).
1834 type: int
1835 telemetry_controller:
1836 description:
1837 - Enable/disable FortiTelemetry controller to manage FortiTelemetry agents.
1838 type: str
1839 choices:
1840 - 'enable'
1841 - 'disable'
1842 telemetry_data_port:
1843 description:
1844 - FortiTelemetry data channel port (1024 - 49150).
1845 type: int
1846 tftp:
1847 description:
1848 - Enable/disable TFTP.
1849 type: str
1850 choices:
1851 - 'enable'
1852 - 'disable'
1853 timezone:
1854 description:
1855 - Timezone database name. Enter ? to view the list of timezone. Source system.timezone.name.
1856 type: str
1857 tls_session_cache:
1858 description:
1859 - Enable/disable TLS session cache.
1860 type: str
1861 choices:
1862 - 'enable'
1863 - 'disable'
1864 tp_mc_skip_policy:
1865 description:
1866 - Enable/disable skip policy check and allow multicast through.
1867 type: str
1868 choices:
1869 - 'enable'
1870 - 'disable'
1871 traffic_priority:
1872 description:
1873 - Choose Type of Service (ToS) or Differentiated Services Code Point (DSCP) for traffic prioritization in traffic shaping.
1874 type: str
1875 choices:
1876 - 'tos'
1877 - 'dscp'
1878 traffic_priority_level:
1879 description:
1880 - Default system-wide level of priority for traffic prioritization.
1881 type: str
1882 choices:
1883 - 'low'
1884 - 'medium'
1885 - 'high'
1886 two_factor_email_expiry:
1887 description:
1888 - Email-based two-factor authentication session timeout (30 - 300 seconds (5 minutes)).
1889 type: int
1890 two_factor_fac_expiry:
1891 description:
1892 - FortiAuthenticator token authentication session timeout (10 - 3600 seconds (1 hour)).
1893 type: int
1894 two_factor_ftk_expiry:
1895 description:
1896 - FortiToken authentication session timeout (60 - 600 sec (10 minutes)).
1897 type: int
1898 two_factor_ftm_expiry:
1899 description:
1900 - FortiToken Mobile session timeout (1 - 168 hours (7 days)).
1901 type: int
1902 two_factor_sms_expiry:
1903 description:
1904 - SMS-based two-factor authentication session timeout (30 - 300 sec).
1905 type: int
1906 udp_idle_timer:
1907 description:
1908 - UDP connection session timeout. This command can be useful in managing CPU and memory resources (1 - 86400 seconds (1 day)).
1909 type: int
1910 upgrade_report:
1911 description:
1912 - Enable/disable the generation of an upgrade report when upgrading the firmware.
1913 type: str
1914 choices:
1915 - 'enable'
1916 - 'disable'
1917 url_filter_affinity:
1918 description:
1919 - URL filter CPU affinity.
1920 type: str
1921 url_filter_count:
1922 description:
1923 - URL filter daemon count.
1924 type: int
1925 user_device_store_max_device_mem:
1926 description:
1927 - Maximum percentage of total system memory allowed to be used for devices in the user device store.
1928 type: int
1929 user_device_store_max_devices:
1930 description:
1931 - Maximum number of devices allowed in user device store.
1932 type: int
1933 user_device_store_max_unified_mem:
1934 description:
1935 - Maximum unified memory allowed in user device store.
1936 type: int
1937 user_device_store_max_users:
1938 description:
1939 - Maximum number of users allowed in user device store.
1940 type: int
1941 user_history_password_threshold:
1942 description:
1943 - Maximum number of previous passwords saved per admin/user (3 - 15).
1944 type: int
1945 user_server_cert:
1946 description:
1947 - Certificate to use for https user authentication. Source certificate.local.name.
1948 type: str
1949 vdom_admin:
1950 description:
1951 - vdom-admin
1952 type: str
1953 choices:
1954 - 'enable'
1955 - 'disable'
1956 vdom_mode:
1957 description:
1958 - Enable/disable support for multiple virtual domains (VDOMs).
1959 type: str
1960 choices:
1961 - 'no-vdom'
1962 - 'multi-vdom'
1963 - 'split-vdom'
1964 vip_arp_range:
1965 description:
1966 - Controls the number of ARPs that the FortiGate sends for a Virtual IP (VIP) address range.
1967 type: str
1968 choices:
1969 - 'unlimited'
1970 - 'restricted'
1971 virtual_server_count:
1972 description:
1973 - Maximum number of virtual server processes to create. The maximum is the number of CPU cores. This is not available on single-core CPUs.
1974 type: int
1975 virtual_server_hardware_acceleration:
1976 description:
1977 - Enable/disable virtual server hardware acceleration.
1978 type: str
1979 choices:
1980 - 'disable'
1981 - 'enable'
1982 virtual_switch_vlan:
1983 description:
1984 - Enable/disable virtual switch VLAN.
1985 type: str
1986 choices:
1987 - 'enable'
1988 - 'disable'
1989 vpn_ems_sn_check:
1990 description:
1991 - Enable/disable verification of EMS serial number in SSL-VPN connection.
1992 type: str
1993 choices:
1994 - 'enable'
1995 - 'disable'
1996 wad_affinity:
1997 description:
1998 - Affinity setting for wad (hexadecimal value up to 256 bits in the format of xxxxxxxxxxxxxxxx).
1999 type: str
2000 wad_csvc_cs_count:
2001 description:
2002 - Number of concurrent WAD-cache-service object-cache processes.
2003 type: int
2004 wad_csvc_db_count:
2005 description:
2006 - Number of concurrent WAD-cache-service byte-cache processes.
2007 type: int
2008 wad_memory_change_granularity:
2009 description:
2010 - Minimum percentage change in system memory usage detected by the wad daemon prior to adjusting TCP window size for any active connection.
2011 type: int
2012 wad_p2s_max_body_size:
2013 description:
2014 - Maximum size of the body of the local out HTTP request (1 - 32 Mbytes).
2015 type: int
2016 wad_restart_end_time:
2017 description:
2018 - 'WAD workers daily restart end time (hh:mm).'
2019 type: str
2020 wad_restart_mode:
2021 description:
2022 - WAD worker restart mode .
2023 type: str
2024 choices:
2025 - 'none'
2026 - 'time'
2027 - 'memory'
2028 wad_restart_start_time:
2029 description:
2030 - 'WAD workers daily restart time (hh:mm).'
2031 type: str
2032 wad_source_affinity:
2033 description:
2034 - Enable/disable dispatching traffic to WAD workers based on source affinity.
2035 type: str
2036 choices:
2037 - 'disable'
2038 - 'enable'
2039 wad_worker_count:
2040 description:
2041 - Number of explicit proxy WAN optimization daemon (WAD) processes. By default WAN optimization, explicit proxy, and web caching is
2042 handled by all of the CPU cores in a FortiGate unit.
2043 type: int
2044 wad_worker_dev_cache:
2045 description:
2046 - Number of cached devices for each ZTNA proxy worker. The default value is tuned by memory consumption. Set the option to 0 to disable
2047 the cache.
2048 type: int
2049 wifi_ca_certificate:
2050 description:
2051 - CA certificate that verifies the WiFi certificate. Source certificate.ca.name.
2052 type: str
2053 wifi_certificate:
2054 description:
2055 - Certificate to use for WiFi authentication. Source certificate.local.name.
2056 type: str
2057 wimax_4g_usb:
2058 description:
2059 - Enable/disable comparability with WiMAX 4G USB devices.
2060 type: str
2061 choices:
2062 - 'enable'
2063 - 'disable'
2064 wireless_controller:
2065 description:
2066 - Enable/disable the wireless controller feature to use the FortiGate unit to manage FortiAPs.
2067 type: str
2068 choices:
2069 - 'enable'
2070 - 'disable'
2071 wireless_controller_port:
2072 description:
2073 - Port used for the control channel in wireless controller mode (wireless-mode is ac). The data channel port is the control channel port
2074 number plus one (1024 - 49150).
2075 type: int
2076 """
2077
2078 EXAMPLES = """
2079 - name: Configure global attributes.
2080 fortinet.fortios.fortios_system_global:
2081 vdom: "{{ vdom }}"
2082 system_global:
2083 admin_concurrent: "enable"
2084 admin_console_timeout: "0"
2085 admin_forticloud_sso_default_profile: "<your_own_value> (source system.accprofile.name)"
2086 admin_forticloud_sso_login: "enable"
2087 admin_host: "myhostname"
2088 admin_hsts_max_age: "63072000"
2089 admin_https_pki_required: "enable"
2090 admin_https_redirect: "enable"
2091 admin_https_ssl_banned_ciphers: "RSA"
2092 admin_https_ssl_ciphersuites: "TLS-AES-128-GCM-SHA256"
2093 admin_https_ssl_versions: "tlsv1-1"
2094 admin_lockout_duration: "60"
2095 admin_lockout_threshold: "3"
2096 admin_login_max: "100"
2097 admin_maintainer: "enable"
2098 admin_port: "80"
2099 admin_restrict_local: "all"
2100 admin_scp: "enable"
2101 admin_server_cert: "<your_own_value> (source certificate.local.name)"
2102 admin_sport: "443"
2103 admin_ssh_grace_time: "120"
2104 admin_ssh_password: "enable"
2105 admin_ssh_port: "22"
2106 admin_ssh_v1: "enable"
2107 admin_telnet: "enable"
2108 admin_telnet_port: "23"
2109 admintimeout: "5"
2110 alias: "<your_own_value>"
2111 allow_traffic_redirect: "enable"
2112 anti_replay: "disable"
2113 application_bandwidth_tracking: "disable"
2114 arp_max_entry: "131072"
2115 asymroute: "enable"
2116 auth_cert: "<your_own_value> (source certificate.local.name)"
2117 auth_http_port: "1000"
2118 auth_https_port: "1003"
2119 auth_ike_saml_port: "1001"
2120 auth_keepalive: "enable"
2121 auth_session_auto_backup: "enable"
2122 auth_session_auto_backup_interval: "1min"
2123 auth_session_limit: "block-new"
2124 auto_auth_extension_device: "enable"
2125 autorun_log_fsck: "enable"
2126 av_affinity: "<your_own_value>"
2127 av_failopen: "pass"
2128 av_failopen_session: "enable"
2129 batch_cmdb: "enable"
2130 bfd_affinity: "<your_own_value>"
2131 block_session_timer: "30"
2132 br_fdb_max_entry: "8192"
2133 cert_chain_max: "8"
2134 cfg_revert_timeout: "600"
2135 cfg_save: "automatic"
2136 check_protocol_header: "loose"
2137 check_reset_range: "strict"
2138 cli_audit_log: "enable"
2139 cloud_communication: "enable"
2140 clt_cert_req: "enable"
2141 cmdbsvr_affinity: "<your_own_value>"
2142 compliance_check: "enable"
2143 compliance_check_time: "<your_own_value>"
2144 cpu_use_threshold: "90"
2145 csr_ca_attribute: "enable"
2146 daily_restart: "enable"
2147 default_service_source_port: "<your_own_value>"
2148 delay_tcp_npu_session: "enable"
2149 device_identification_active_scan_delay: "1800"
2150 device_idle_timeout: "300"
2151 dh_params: "1024"
2152 dhcp_lease_backup_interval: "60"
2153 dnsproxy_worker_count: "1"
2154 dst: "enable"
2155 early_tcp_npu_session: "enable"
2156 edit_vdom_prompt: "enable"
2157 endpoint_control_fds_access: "enable"
2158 endpoint_control_portal_port: "32767"
2159 extender_controller_reserved_network: "<your_own_value>"
2160 failtime: "5"
2161 faz_disk_buffer_size: "0"
2162 fds_statistics: "enable"
2163 fds_statistics_period: "60"
2164 fec_port: "50000"
2165 fgd_alert_subscription: "advisory"
2166 forticarrier_bypass: "enable"
2167 forticonverter_config_upload: "once"
2168 forticonverter_integration: "enable"
2169 fortiextender: "disable"
2170 fortiextender_data_port: "25246"
2171 fortiextender_discovery_lockdown: "disable"
2172 fortiextender_provision_on_authorization: "enable"
2173 fortiextender_vlan_mode: "enable"
2174 fortigslb_integration: "disable"
2175 fortiipam_integration: "enable"
2176 fortiservice_port: "8013"
2177 fortitoken_cloud: "enable"
2178 fortitoken_cloud_push_status: "enable"
2179 fortitoken_cloud_region: "<your_own_value>"
2180 fortitoken_cloud_sync_interval: "24"
2181 geoip_full_db: "enable"
2182 gui_allow_default_hostname: "enable"
2183 gui_allow_incompatible_fabric_fgt: "enable"
2184 gui_app_detection_sdwan: "enable"
2185 gui_auto_upgrade_setup_warning: "enable"
2186 gui_cdn_domain_override: "<your_own_value>"
2187 gui_cdn_usage: "enable"
2188 gui_certificates: "enable"
2189 gui_custom_language: "enable"
2190 gui_date_format: "yyyy/MM/dd"
2191 gui_date_time_source: "system"
2192 gui_device_latitude: "<your_own_value>"
2193 gui_device_longitude: "<your_own_value>"
2194 gui_display_hostname: "enable"
2195 gui_firmware_upgrade_warning: "enable"
2196 gui_forticare_registration_setup_warning: "enable"
2197 gui_fortigate_cloud_sandbox: "enable"
2198 gui_fortiguard_resource_fetch: "enable"
2199 gui_fortisandbox_cloud: "enable"
2200 gui_ipv6: "enable"
2201 gui_lines_per_page: "500"
2202 gui_local_out: "enable"
2203 gui_replacement_message_groups: "enable"
2204 gui_rest_api_cache: "enable"
2205 gui_theme: "jade"
2206 gui_wireless_opensecurity: "enable"
2207 gui_workflow_management: "enable"
2208 ha_affinity: "<your_own_value>"
2209 honor_df: "enable"
2210 hostname: "myhostname"
2211 httpd_max_worker_count: "0"
2212 igmp_state_limit: "3200"
2213 interface_subnet_usage: "disable"
2214 internet_service_database: "mini"
2215 internet_service_download_list:
2216 -
2217 id: "136 (source firewall.internet-service.id)"
2218 interval: "5"
2219 ip_conflict_detection: "enable"
2220 ip_fragment_mem_thresholds: "32"
2221 ip_fragment_timeout: "30"
2222 ip_src_port_range: "<your_own_value>"
2223 ips_affinity: "<your_own_value>"
2224 ipsec_asic_offload: "enable"
2225 ipsec_ha_seqjump_rate: "10"
2226 ipsec_hmac_offload: "enable"
2227 ipsec_qat_offload: "enable"
2228 ipsec_round_robin: "enable"
2229 ipsec_soft_dec_async: "enable"
2230 ipv6_accept_dad: "1"
2231 ipv6_allow_anycast_probe: "enable"
2232 ipv6_allow_local_in_silent_drop: "enable"
2233 ipv6_allow_local_in_slient_drop: "enable"
2234 ipv6_allow_multicast_probe: "enable"
2235 ipv6_allow_traffic_redirect: "enable"
2236 ipv6_fragment_timeout: "60"
2237 ipv6_snat_route_change: "enable"
2238 irq_time_accounting: "auto"
2239 language: "english"
2240 ldapconntimeout: "500"
2241 lldp_reception: "enable"
2242 lldp_transmission: "enable"
2243 log_daemon_cpu_threshold: "0"
2244 log_single_cpu_high: "enable"
2245 log_ssl_connection: "enable"
2246 log_uuid: "disable"
2247 log_uuid_address: "enable"
2248 log_uuid_policy: "enable"
2249 login_timestamp: "enable"
2250 long_vdom_name: "enable"
2251 management_ip: "<your_own_value>"
2252 management_port: "443"
2253 management_port_use_admin_sport: "enable"
2254 management_vdom: "<your_own_value> (source system.vdom.name)"
2255 max_dlpstat_memory: "174"
2256 max_route_cache_size: "0"
2257 mc_ttl_notchange: "enable"
2258 memory_use_threshold_extreme: "95"
2259 memory_use_threshold_green: "82"
2260 memory_use_threshold_red: "88"
2261 miglog_affinity: "<your_own_value>"
2262 miglogd_children: "0"
2263 multi_factor_authentication: "optional"
2264 multicast_forward: "enable"
2265 ndp_max_entry: "0"
2266 npu_neighbor_update: "enable"
2267 per_user_bal: "enable"
2268 per_user_bwl: "enable"
2269 pmtu_discovery: "enable"
2270 policy_auth_concurrent: "0"
2271 post_login_banner: "disable"
2272 pre_login_banner: "enable"
2273 private_data_encryption: "disable"
2274 proxy_auth_lifetime: "enable"
2275 proxy_auth_lifetime_timeout: "480"
2276 proxy_auth_timeout: "10"
2277 proxy_cert_use_mgmt_vdom: "enable"
2278 proxy_cipher_hardware_acceleration: "disable"
2279 proxy_hardware_acceleration: "disable"
2280 proxy_keep_alive_mode: "session"
2281 proxy_kxp_hardware_acceleration: "disable"
2282 proxy_re_authentication_mode: "session"
2283 proxy_re_authentication_time: "30"
2284 proxy_resource_mode: "enable"
2285 proxy_worker_count: "0"
2286 purdue_level: "1"
2287 quic_ack_thresold: "3"
2288 quic_congestion_control_algo: "cubic"
2289 quic_max_datagram_size: "1500"
2290 quic_pmtud: "enable"
2291 quic_tls_handshake_timeout: "5"
2292 quic_udp_payload_size_shaping_per_cid: "enable"
2293 radius_port: "1812"
2294 reboot_upon_config_restore: "enable"
2295 refresh: "0"
2296 remoteauthtimeout: "5"
2297 reset_sessionless_tcp: "enable"
2298 rest_api_key_url_query: "enable"
2299 restart_time: "<your_own_value>"
2300 revision_backup_on_logout: "enable"
2301 revision_image_auto_backup: "enable"
2302 router_affinity: "<your_own_value>"
2303 scanunit_count: "0"
2304 scim_http_port: "44558"
2305 scim_https_port: "44559"
2306 scim_server_cert: "<your_own_value> (source certificate.local.name)"
2307 security_rating_result_submission: "enable"
2308 security_rating_run_on_schedule: "enable"
2309 send_pmtu_icmp: "enable"
2310 sflowd_max_children_num: "6"
2311 single_vdom_npuvlink: "enable"
2312 snat_route_change: "enable"
2313 special_file_23_support: "disable"
2314 speedtest_server: "enable"
2315 speedtestd_ctrl_port: "5200"
2316 speedtestd_server_port: "5201"
2317 split_port: "<your_own_value>"
2318 split_port_mode:
2319 -
2320 interface: "<your_own_value>"
2321 split_mode: "disable"
2322 ssd_trim_date: "1"
2323 ssd_trim_freq: "never"
2324 ssd_trim_hour: "1"
2325 ssd_trim_min: "60"
2326 ssd_trim_weekday: "sunday"
2327 ssh_cbc_cipher: "enable"
2328 ssh_enc_algo: "[email protected]"
2329 ssh_hmac_md5: "enable"
2330 ssh_hostkey: "myhostname"
2331 ssh_hostkey_algo: "ssh-rsa"
2332 ssh_hostkey_override: "disable"
2333 ssh_hostkey_password: "myhostname"
2334 ssh_kex_algo: "diffie-hellman-group1-sha1"
2335 ssh_kex_sha1: "enable"
2336 ssh_mac_algo: "hmac-md5"
2337 ssh_mac_weak: "enable"
2338 ssl_min_proto_version: "SSLv3"
2339 ssl_static_key_ciphers: "enable"
2340 sslvpn_affinity: "<your_own_value>"
2341 sslvpn_cipher_hardware_acceleration: "enable"
2342 sslvpn_ems_sn_check: "enable"
2343 sslvpn_kxp_hardware_acceleration: "enable"
2344 sslvpn_max_worker_count: "0"
2345 sslvpn_plugin_version_check: "enable"
2346 sslvpn_web_mode: "enable"
2347 strict_dirty_session_check: "enable"
2348 strong_crypto: "enable"
2349 switch_controller: "disable"
2350 switch_controller_reserved_network: "<your_own_value>"
2351 sys_perf_log_interval: "5"
2352 syslog_affinity: "<your_own_value>"
2353 tcp_halfclose_timer: "120"
2354 tcp_halfopen_timer: "10"
2355 tcp_option: "enable"
2356 tcp_rst_timer: "5"
2357 tcp_timewait_timer: "1"
2358 telemetry_controller: "enable"
2359 telemetry_data_port: "35246"
2360 tftp: "enable"
2361 timezone: "<your_own_value> (source system.timezone.name)"
2362 tls_session_cache: "enable"
2363 tp_mc_skip_policy: "enable"
2364 traffic_priority: "tos"
2365 traffic_priority_level: "low"
2366 two_factor_email_expiry: "60"
2367 two_factor_fac_expiry: "60"
2368 two_factor_ftk_expiry: "60"
2369 two_factor_ftm_expiry: "72"
2370 two_factor_sms_expiry: "60"
2371 udp_idle_timer: "180"
2372 upgrade_report: "enable"
2373 url_filter_affinity: "<your_own_value>"
2374 url_filter_count: "1"
2375 user_device_store_max_device_mem: "2"
2376 user_device_store_max_devices: "676984"
2377 user_device_store_max_unified_mem: "3384923340"
2378 user_device_store_max_users: "676984"
2379 user_history_password_threshold: "3"
2380 user_server_cert: "<your_own_value> (source certificate.local.name)"
2381 vdom_admin: "enable"
2382 vdom_mode: "no-vdom"
2383 vip_arp_range: "unlimited"
2384 virtual_server_count: "20"
2385 virtual_server_hardware_acceleration: "disable"
2386 virtual_switch_vlan: "enable"
2387 vpn_ems_sn_check: "enable"
2388 wad_affinity: "<your_own_value>"
2389 wad_csvc_cs_count: "1"
2390 wad_csvc_db_count: "0"
2391 wad_memory_change_granularity: "10"
2392 wad_p2s_max_body_size: "4"
2393 wad_restart_end_time: "<your_own_value>"
2394 wad_restart_mode: "none"
2395 wad_restart_start_time: "<your_own_value>"
2396 wad_source_affinity: "disable"
2397 wad_worker_count: "0"
2398 wad_worker_dev_cache: "10240"
2399 wifi_ca_certificate: "<your_own_value> (source certificate.ca.name)"
2400 wifi_certificate: "<your_own_value> (source certificate.local.name)"
2401 wimax_4g_usb: "enable"
2402 wireless_controller: "enable"
2403 wireless_controller_port: "5246"
2404 """
2405
2406 RETURN = """
2407 build:
2408 description: Build number of the fortigate image
2409 returned: always
2410 type: str
2411 sample: '1547'
2412 http_method:
2413 description: Last method used to provision the content into FortiGate
2414 returned: always
2415 type: str
2416 sample: 'PUT'
2417 http_status:
2418 description: Last result given by FortiGate on last operation applied
2419 returned: always
2420 type: str
2421 sample: "200"
2422 mkey:
2423 description: Master key (id) used in the last call to FortiGate
2424 returned: success
2425 type: str
2426 sample: "id"
2427 name:
2428 description: Name of the table used to fulfill the request
2429 returned: always
2430 type: str
2431 sample: "urlfilter"
2432 path:
2433 description: Path of the table used to fulfill the request
2434 returned: always
2435 type: str
2436 sample: "webfilter"
2437 revision:
2438 description: Internal revision number
2439 returned: always
2440 type: str
2441 sample: "17.0.2.10658"
2442 serial:
2443 description: Serial number of the unit
2444 returned: always
2445 type: str
2446 sample: "FGVMEVYYQT3AB5352"
2447 status:
2448 description: Indication of the operation's result
2449 returned: always
2450 type: str
2451 sample: "success"
2452 vdom:
2453 description: Virtual domain used
2454 returned: always
2455 type: str
2456 sample: "root"
2457 version:
2458 description: Version of the FortiGate
2459 returned: always
2460 type: str
2461 sample: "v5.6.3"
2462 """
2463 from ansible.module_utils.basic import AnsibleModule
2464 from ansible.module_utils.connection import Connection
2465 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import (
2466 FortiOSHandler,
2467 )
2468 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import (
2469 check_legacy_fortiosapi,
2470 )
2471 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import (
2472 schema_to_module_spec,
2473 )
2474 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import (
2475 check_schema_versioning,
2476 )
2477 from ansible_collections.fortinet.fortios.plugins.module_utils.fortimanager.common import (
2478 FAIL_SOCKET_MSG,
2479 )
2480 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.data_post_processor import (
2481 remove_invalid_fields,
2482 )
2483 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import (
2484 is_same_comparison,
2485 )
2486 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import (
2487 serialize,
2488 )
2489 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import (
2490 find_current_values,
2491 )
2492 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import (
2493 unify_data_format,
2494 )
2495
2496
2497 def filter_system_global_data(json):
2498 option_list = [
2499 "admin_concurrent",
2500 "admin_console_timeout",
2501 "admin_forticloud_sso_default_profile",
2502 "admin_forticloud_sso_login",
2503 "admin_host",
2504 "admin_hsts_max_age",
2505 "admin_https_pki_required",
2506 "admin_https_redirect",
2507 "admin_https_ssl_banned_ciphers",
2508 "admin_https_ssl_ciphersuites",
2509 "admin_https_ssl_versions",
2510 "admin_lockout_duration",
2511 "admin_lockout_threshold",
2512 "admin_login_max",
2513 "admin_maintainer",
2514 "admin_port",
2515 "admin_restrict_local",
2516 "admin_scp",
2517 "admin_server_cert",
2518 "admin_sport",
2519 "admin_ssh_grace_time",
2520 "admin_ssh_password",
2521 "admin_ssh_port",
2522 "admin_ssh_v1",
2523 "admin_telnet",
2524 "admin_telnet_port",
2525 "admintimeout",
2526 "alias",
2527 "allow_traffic_redirect",
2528 "anti_replay",
2529 "application_bandwidth_tracking",
2530 "arp_max_entry",
2531 "asymroute",
2532 "auth_cert",
2533 "auth_http_port",
2534 "auth_https_port",
2535 "auth_ike_saml_port",
2536 "auth_keepalive",
2537 "auth_session_auto_backup",
2538 "auth_session_auto_backup_interval",
2539 "auth_session_limit",
2540 "auto_auth_extension_device",
2541 "autorun_log_fsck",
2542 "av_affinity",
2543 "av_failopen",
2544 "av_failopen_session",
2545 "batch_cmdb",
2546 "bfd_affinity",
2547 "block_session_timer",
2548 "br_fdb_max_entry",
2549 "cert_chain_max",
2550 "cfg_revert_timeout",
2551 "cfg_save",
2552 "check_protocol_header",
2553 "check_reset_range",
2554 "cli_audit_log",
2555 "cloud_communication",
2556 "clt_cert_req",
2557 "cmdbsvr_affinity",
2558 "compliance_check",
2559 "compliance_check_time",
2560 "cpu_use_threshold",
2561 "csr_ca_attribute",
2562 "daily_restart",
2563 "default_service_source_port",
2564 "delay_tcp_npu_session",
2565 "device_identification_active_scan_delay",
2566 "device_idle_timeout",
2567 "dh_params",
2568 "dhcp_lease_backup_interval",
2569 "dnsproxy_worker_count",
2570 "dst",
2571 "early_tcp_npu_session",
2572 "edit_vdom_prompt",
2573 "endpoint_control_fds_access",
2574 "endpoint_control_portal_port",
2575 "extender_controller_reserved_network",
2576 "failtime",
2577 "faz_disk_buffer_size",
2578 "fds_statistics",
2579 "fds_statistics_period",
2580 "fec_port",
2581 "fgd_alert_subscription",
2582 "forticarrier_bypass",
2583 "forticonverter_config_upload",
2584 "forticonverter_integration",
2585 "fortiextender",
2586 "fortiextender_data_port",
2587 "fortiextender_discovery_lockdown",
2588 "fortiextender_provision_on_authorization",
2589 "fortiextender_vlan_mode",
2590 "fortigslb_integration",
2591 "fortiipam_integration",
2592 "fortiservice_port",
2593 "fortitoken_cloud",
2594 "fortitoken_cloud_push_status",
2595 "fortitoken_cloud_region",
2596 "fortitoken_cloud_sync_interval",
2597 "geoip_full_db",
2598 "gui_allow_default_hostname",
2599 "gui_allow_incompatible_fabric_fgt",
2600 "gui_app_detection_sdwan",
2601 "gui_auto_upgrade_setup_warning",
2602 "gui_cdn_domain_override",
2603 "gui_cdn_usage",
2604 "gui_certificates",
2605 "gui_custom_language",
2606 "gui_date_format",
2607 "gui_date_time_source",
2608 "gui_device_latitude",
2609 "gui_device_longitude",
2610 "gui_display_hostname",
2611 "gui_firmware_upgrade_warning",
2612 "gui_forticare_registration_setup_warning",
2613 "gui_fortigate_cloud_sandbox",
2614 "gui_fortiguard_resource_fetch",
2615 "gui_fortisandbox_cloud",
2616 "gui_ipv6",
2617 "gui_lines_per_page",
2618 "gui_local_out",
2619 "gui_replacement_message_groups",
2620 "gui_rest_api_cache",
2621 "gui_theme",
2622 "gui_wireless_opensecurity",
2623 "gui_workflow_management",
2624 "ha_affinity",
2625 "honor_df",
2626 "hostname",
2627 "httpd_max_worker_count",
2628 "igmp_state_limit",
2629 "interface_subnet_usage",
2630 "internet_service_database",
2631 "internet_service_download_list",
2632 "interval",
2633 "ip_conflict_detection",
2634 "ip_fragment_mem_thresholds",
2635 "ip_fragment_timeout",
2636 "ip_src_port_range",
2637 "ips_affinity",
2638 "ipsec_asic_offload",
2639 "ipsec_ha_seqjump_rate",
2640 "ipsec_hmac_offload",
2641 "ipsec_qat_offload",
2642 "ipsec_round_robin",
2643 "ipsec_soft_dec_async",
2644 "ipv6_accept_dad",
2645 "ipv6_allow_anycast_probe",
2646 "ipv6_allow_local_in_silent_drop",
2647 "ipv6_allow_local_in_slient_drop",
2648 "ipv6_allow_multicast_probe",
2649 "ipv6_allow_traffic_redirect",
2650 "ipv6_fragment_timeout",
2651 "ipv6_snat_route_change",
2652 "irq_time_accounting",
2653 "language",
2654 "ldapconntimeout",
2655 "lldp_reception",
2656 "lldp_transmission",
2657 "log_daemon_cpu_threshold",
2658 "log_single_cpu_high",
2659 "log_ssl_connection",
2660 "log_uuid",
2661 "log_uuid_address",
2662 "log_uuid_policy",
2663 "login_timestamp",
2664 "long_vdom_name",
2665 "management_ip",
2666 "management_port",
2667 "management_port_use_admin_sport",
2668 "management_vdom",
2669 "max_dlpstat_memory",
2670 "max_route_cache_size",
2671 "mc_ttl_notchange",
2672 "memory_use_threshold_extreme",
2673 "memory_use_threshold_green",
2674 "memory_use_threshold_red",
2675 "miglog_affinity",
2676 "miglogd_children",
2677 "multi_factor_authentication",
2678 "multicast_forward",
2679 "ndp_max_entry",
2680 "npu_neighbor_update",
2681 "per_user_bal",
2682 "per_user_bwl",
2683 "pmtu_discovery",
2684 "policy_auth_concurrent",
2685 "post_login_banner",
2686 "pre_login_banner",
2687 "private_data_encryption",
2688 "proxy_auth_lifetime",
2689 "proxy_auth_lifetime_timeout",
2690 "proxy_auth_timeout",
2691 "proxy_cert_use_mgmt_vdom",
2692 "proxy_cipher_hardware_acceleration",
2693 "proxy_hardware_acceleration",
2694 "proxy_keep_alive_mode",
2695 "proxy_kxp_hardware_acceleration",
2696 "proxy_re_authentication_mode",
2697 "proxy_re_authentication_time",
2698 "proxy_resource_mode",
2699 "proxy_worker_count",
2700 "purdue_level",
2701 "quic_ack_thresold",
2702 "quic_congestion_control_algo",
2703 "quic_max_datagram_size",
2704 "quic_pmtud",
2705 "quic_tls_handshake_timeout",
2706 "quic_udp_payload_size_shaping_per_cid",
2707 "radius_port",
2708 "reboot_upon_config_restore",
2709 "refresh",
2710 "remoteauthtimeout",
2711 "reset_sessionless_tcp",
2712 "rest_api_key_url_query",
2713 "restart_time",
2714 "revision_backup_on_logout",
2715 "revision_image_auto_backup",
2716 "router_affinity",
2717 "scanunit_count",
2718 "scim_http_port",
2719 "scim_https_port",
2720 "scim_server_cert",
2721 "security_rating_result_submission",
2722 "security_rating_run_on_schedule",
2723 "send_pmtu_icmp",
2724 "sflowd_max_children_num",
2725 "single_vdom_npuvlink",
2726 "snat_route_change",
2727 "special_file_23_support",
2728 "speedtest_server",
2729 "speedtestd_ctrl_port",
2730 "speedtestd_server_port",
2731 "split_port",
2732 "split_port_mode",
2733 "ssd_trim_date",
2734 "ssd_trim_freq",
2735 "ssd_trim_hour",
2736 "ssd_trim_min",
2737 "ssd_trim_weekday",
2738 "ssh_cbc_cipher",
2739 "ssh_enc_algo",
2740 "ssh_hmac_md5",
2741 "ssh_hostkey",
2742 "ssh_hostkey_algo",
2743 "ssh_hostkey_override",
2744 "ssh_hostkey_password",
2745 "ssh_kex_algo",
2746 "ssh_kex_sha1",
2747 "ssh_mac_algo",
2748 "ssh_mac_weak",
2749 "ssl_min_proto_version",
2750 "ssl_static_key_ciphers",
2751 "sslvpn_affinity",
2752 "sslvpn_cipher_hardware_acceleration",
2753 "sslvpn_ems_sn_check",
2754 "sslvpn_kxp_hardware_acceleration",
2755 "sslvpn_max_worker_count",
2756 "sslvpn_plugin_version_check",
2757 "sslvpn_web_mode",
2758 "strict_dirty_session_check",
2759 "strong_crypto",
2760 "switch_controller",
2761 "switch_controller_reserved_network",
2762 "sys_perf_log_interval",
2763 "syslog_affinity",
2764 "tcp_halfclose_timer",
2765 "tcp_halfopen_timer",
2766 "tcp_option",
2767 "tcp_rst_timer",
2768 "tcp_timewait_timer",
2769 "telemetry_controller",
2770 "telemetry_data_port",
2771 "tftp",
2772 "timezone",
2773 "tls_session_cache",
2774 "tp_mc_skip_policy",
2775 "traffic_priority",
2776 "traffic_priority_level",
2777 "two_factor_email_expiry",
2778 "two_factor_fac_expiry",
2779 "two_factor_ftk_expiry",
2780 "two_factor_ftm_expiry",
2781 "two_factor_sms_expiry",
2782 "udp_idle_timer",
2783 "upgrade_report",
2784 "url_filter_affinity",
2785 "url_filter_count",
2786 "user_device_store_max_device_mem",
2787 "user_device_store_max_devices",
2788 "user_device_store_max_unified_mem",
2789 "user_device_store_max_users",
2790 "user_history_password_threshold",
2791 "user_server_cert",
2792 "vdom_admin",
2793 "vdom_mode",
2794 "vip_arp_range",
2795 "virtual_server_count",
2796 "virtual_server_hardware_acceleration",
2797 "virtual_switch_vlan",
2798 "vpn_ems_sn_check",
2799 "wad_affinity",
2800 "wad_csvc_cs_count",
2801 "wad_csvc_db_count",
2802 "wad_memory_change_granularity",
2803 "wad_p2s_max_body_size",
2804 "wad_restart_end_time",
2805 "wad_restart_mode",
2806 "wad_restart_start_time",
2807 "wad_source_affinity",
2808 "wad_worker_count",
2809 "wad_worker_dev_cache",
2810 "wifi_ca_certificate",
2811 "wifi_certificate",
2812 "wimax_4g_usb",
2813 "wireless_controller",
2814 "wireless_controller_port",
2815 ]
2816
2817 json = remove_invalid_fields(json)
2818 dictionary = {}
2819
2820 for attribute in option_list:
2821 if attribute in json and json[attribute] is not None:
2822 dictionary[attribute] = json[attribute]
2823
2824 return dictionary
2825
2826
2827 def flatten_single_path(data, path, index):
2828 if (
2829 not data
2830 or index == len(path)
2831 or path[index] not in data
2832 or (not data[path[index]] and not isinstance(data[path[index]], list))
2833 ):
2834 return
2835
2836 if index == len(path) - 1:
2837 data[path[index]] = " ".join(str(elem) for elem in data[path[index]])
2838 if len(data[path[index]]) == 0:
2839 data[path[index]] = None
2840 elif isinstance(data[path[index]], list):
2841 for value in data[path[index]]:
2842 flatten_single_path(value, path, index + 1)
2843 else:
2844 flatten_single_path(data[path[index]], path, index + 1)
2845
2846
2847 def flatten_multilists_attributes(data):
2848 multilist_attrs = [
2849 ["admin_https_ssl_versions"],
2850 ["admin_https_ssl_ciphersuites"],
2851 ["admin_https_ssl_banned_ciphers"],
2852 ["split_port"],
2853 ["fgd_alert_subscription"],
2854 ["ssh_kex_algo"],
2855 ["ssh_enc_algo"],
2856 ["ssh_mac_algo"],
2857 ["ssh_hostkey_algo"],
2858 ]
2859
2860 for attr in multilist_attrs:
2861 flatten_single_path(data, attr, 0)
2862
2863 return data
2864
2865
2866 def underscore_to_hyphen(data):
2867 new_data = None
2868 if isinstance(data, list):
2869 new_data = []
2870 for i, elem in enumerate(data):
2871 new_data.append(underscore_to_hyphen(elem))
2872 elif isinstance(data, dict):
2873 new_data = {}
2874 for k, v in data.items():
2875 new_data[k.replace("_", "-")] = underscore_to_hyphen(v)
2876 else:
2877 return data
2878 return new_data
2879
2880
2881 def system_global(data, fos, check_mode=False):
2882
2883 state = None
2884 vdom = data["vdom"]
2885 parameters = None
2886 state = data.get("state", None)
2887 system_global_data = data["system_global"]
2888
2889 filtered_data = filter_system_global_data(system_global_data)
2890 filtered_data = flatten_multilists_attributes(filtered_data)
2891 converted_data = underscore_to_hyphen(filtered_data)
2892
2893 # check_mode starts from here
2894 if check_mode:
2895 diff = {
2896 "before": "",
2897 "after": filtered_data,
2898 }
2899 mkeyname = fos.get_mkeyname(None, None)
2900 mkey = fos.get_mkey("system", "global", filtered_data, vdom=vdom)
2901 current_data = fos.get(
2902 "system", "global", vdom=vdom, mkey=mkey, parameters=parameters
2903 )
2904 is_existed = (
2905 current_data
2906 and current_data.get("http_status") == 200
2907 and (
2908 mkeyname
2909 and isinstance(current_data.get("results"), list)
2910 and len(current_data["results"]) > 0
2911 or not mkeyname
2912 and current_data["results"] # global object response
2913 )
2914 )
2915
2916 # 2. if it exists and the state is 'present' then compare current settings with desired
2917 if state == "present" or state is True or state is None:
2918 # for non global modules, mkeyname must exist and it's a new module when mkey is None
2919 if mkeyname is not None and mkey is None:
2920 return False, True, filtered_data, diff
2921
2922 # if mkey exists then compare each other
2923 # record exits and they're matched or not
2924 copied_filtered_data = filtered_data.copy()
2925 copied_filtered_data.pop(mkeyname, None)
2926 unified_filtered_data = unify_data_format(copied_filtered_data)
2927
2928 current_data_results = current_data.get("results", {})
2929 current_config = (
2930 current_data_results[0]
2931 if mkeyname
2932 and isinstance(current_data_results, list)
2933 and len(current_data_results) > 0
2934 else current_data_results
2935 )
2936 if is_existed:
2937 unified_current_values = find_current_values(
2938 unified_filtered_data,
2939 unify_data_format(current_config),
2940 )
2941
2942 is_same = is_same_comparison(
2943 serialize(unified_current_values), serialize(unified_filtered_data)
2944 )
2945
2946 return (
2947 False,
2948 not is_same,
2949 filtered_data,
2950 {"before": unified_current_values, "after": unified_filtered_data},
2951 )
2952
2953 # record does not exist
2954 return False, True, filtered_data, diff
2955
2956 if state == "absent":
2957 if mkey is None:
2958 return (
2959 False,
2960 False,
2961 filtered_data,
2962 {"before": current_data["results"][0], "after": ""},
2963 )
2964
2965 if is_existed:
2966 return (
2967 False,
2968 True,
2969 filtered_data,
2970 {"before": current_data["results"][0], "after": ""},
2971 )
2972 return False, False, filtered_data, {}
2973
2974 return True, False, {"reason: ": "Must provide state parameter"}, {}
2975 # pass post processed data to member operations
2976 # no need to do underscore_to_hyphen since do_member_operation handles it by itself
2977 data_copy = data.copy()
2978 data_copy["system_global"] = filtered_data
2979 fos.do_member_operation(
2980 "system",
2981 "global",
2982 data_copy,
2983 )
2984
2985 return fos.set(
2986 "system", "global", data=converted_data, vdom=vdom, parameters=parameters
2987 )
2988
2989
2990 def is_successful_status(resp):
2991 return (
2992 "status" in resp
2993 and resp["status"] == "success"
2994 or "http_status" in resp
2995 and resp["http_status"] == 200
2996 or "http_method" in resp
2997 and resp["http_method"] == "DELETE"
2998 and resp["http_status"] == 404
2999 )
3000
3001
3002 def fortios_system(data, fos, check_mode):
3003
3004 if data["system_global"]:
3005 resp = system_global(data, fos, check_mode)
3006 else:
3007 fos._module.fail_json(msg="missing task body: %s" % ("system_global"))
3008 if isinstance(resp, tuple) and len(resp) == 4:
3009 return resp
3010 return (
3011 not is_successful_status(resp),
3012 is_successful_status(resp)
3013 and (resp["revision_changed"] if "revision_changed" in resp else True),
3014 resp,
3015 {},
3016 )
3017
3018
3019 versioned_schema = {
3020 "v_range": [["v6.0.0", ""]],
3021 "type": "dict",
3022 "children": {
3023 "language": {
3024 "v_range": [["v6.0.0", ""]],
3025 "type": "string",
3026 "options": [
3027 {"value": "english"},
3028 {"value": "french"},
3029 {"value": "spanish"},
3030 {"value": "portuguese"},
3031 {"value": "japanese"},
3032 {"value": "trach"},
3033 {"value": "simch"},
3034 {"value": "korean"},
3035 ],
3036 },
3037 "gui_allow_incompatible_fabric_fgt": {
3038 "v_range": [["v7.0.12", "v7.0.12"], ["v7.2.1", ""]],
3039 "type": "string",
3040 "options": [{"value": "enable"}, {"value": "disable"}],
3041 },
3042 "gui_ipv6": {
3043 "v_range": [["v6.0.0", ""]],
3044 "type": "string",
3045 "options": [{"value": "enable"}, {"value": "disable"}],
3046 },
3047 "gui_replacement_message_groups": {
3048 "v_range": [["v7.0.0", ""]],
3049 "type": "string",
3050 "options": [{"value": "enable"}, {"value": "disable"}],
3051 },
3052 "gui_local_out": {
3053 "v_range": [["v7.0.0", ""]],
3054 "type": "string",
3055 "options": [{"value": "enable"}, {"value": "disable"}],
3056 },
3057 "gui_certificates": {
3058 "v_range": [["v6.0.0", ""]],
3059 "type": "string",
3060 "options": [{"value": "enable"}, {"value": "disable"}],
3061 },
3062 "gui_custom_language": {
3063 "v_range": [["v6.0.0", ""]],
3064 "type": "string",
3065 "options": [{"value": "enable"}, {"value": "disable"}],
3066 },
3067 "gui_wireless_opensecurity": {
3068 "v_range": [["v6.0.0", ""]],
3069 "type": "string",
3070 "options": [{"value": "enable"}, {"value": "disable"}],
3071 },
3072 "gui_app_detection_sdwan": {
3073 "v_range": [["v7.2.1", ""]],
3074 "type": "string",
3075 "options": [{"value": "enable"}, {"value": "disable"}],
3076 },
3077 "gui_display_hostname": {
3078 "v_range": [["v6.0.0", ""]],
3079 "type": "string",
3080 "options": [{"value": "enable"}, {"value": "disable"}],
3081 },
3082 "gui_fortigate_cloud_sandbox": {
3083 "v_range": [["v7.0.0", ""]],
3084 "type": "string",
3085 "options": [{"value": "enable"}, {"value": "disable"}],
3086 },
3087 "gui_firmware_upgrade_warning": {
3088 "v_range": [["v6.4.0", ""]],
3089 "type": "string",
3090 "options": [{"value": "enable"}, {"value": "disable"}],
3091 },
3092 "gui_forticare_registration_setup_warning": {
3093 "v_range": [["v6.4.4", ""]],
3094 "type": "string",
3095 "options": [{"value": "enable"}, {"value": "disable"}],
3096 },
3097 "gui_auto_upgrade_setup_warning": {
3098 "v_range": [["v7.4.1", ""]],
3099 "type": "string",
3100 "options": [{"value": "enable"}, {"value": "disable"}],
3101 },
3102 "gui_workflow_management": {
3103 "v_range": [["v7.2.0", ""]],
3104 "type": "string",
3105 "options": [{"value": "enable"}, {"value": "disable"}],
3106 },
3107 "gui_cdn_usage": {
3108 "v_range": [["v7.0.4", ""]],
3109 "type": "string",
3110 "options": [{"value": "enable"}, {"value": "disable"}],
3111 },
3112 "admin_https_ssl_versions": {
3113 "v_range": [["v6.0.0", ""]],
3114 "type": "list",
3115 "options": [
3116 {"value": "tlsv1-1"},
3117 {"value": "tlsv1-2"},
3118 {"value": "tlsv1-3", "v_range": [["v6.2.0", ""]]},
3119 {"value": "tlsv1-0", "v_range": [["v6.0.0", "v6.0.11"]]},
3120 ],
3121 "multiple_values": True,
3122 "elements": "str",
3123 },
3124 "admin_https_ssl_ciphersuites": {
3125 "v_range": [["v7.0.2", ""]],
3126 "type": "list",
3127 "options": [
3128 {"value": "TLS-AES-128-GCM-SHA256"},
3129 {"value": "TLS-AES-256-GCM-SHA384"},
3130 {"value": "TLS-CHACHA20-POLY1305-SHA256"},
3131 {"value": "TLS-AES-128-CCM-SHA256"},
3132 {"value": "TLS-AES-128-CCM-8-SHA256"},
3133 ],
3134 "multiple_values": True,
3135 "elements": "str",
3136 },
3137 "admin_https_ssl_banned_ciphers": {
3138 "v_range": [["v7.0.2", ""]],
3139 "type": "list",
3140 "options": [
3141 {"value": "RSA"},
3142 {"value": "DHE"},
3143 {"value": "ECDHE"},
3144 {"value": "DSS"},
3145 {"value": "ECDSA"},
3146 {"value": "AES"},
3147 {"value": "AESGCM"},
3148 {"value": "CAMELLIA"},
3149 {"value": "3DES"},
3150 {"value": "SHA1"},
3151 {"value": "SHA256"},
3152 {"value": "SHA384"},
3153 {"value": "STATIC"},
3154 {"value": "CHACHA20"},
3155 {"value": "ARIA"},
3156 {"value": "AESCCM"},
3157 ],
3158 "multiple_values": True,
3159 "elements": "str",
3160 },
3161 "admintimeout": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3162 "admin_console_timeout": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3163 "ssd_trim_freq": {
3164 "v_range": [["v6.0.0", "v7.4.1"], ["v7.4.3", ""]],
3165 "type": "string",
3166 "options": [
3167 {"value": "never", "v_range": [["v6.0.0", ""]]},
3168 {"value": "hourly", "v_range": [["v6.0.0", ""]]},
3169 {"value": "daily", "v_range": [["v6.0.0", ""]]},
3170 {"value": "weekly", "v_range": [["v6.0.0", ""]]},
3171 {"value": "monthly", "v_range": [["v6.0.0", ""]]},
3172 ],
3173 },
3174 "ssd_trim_hour": {
3175 "v_range": [["v6.0.0", "v7.4.1"], ["v7.4.3", ""]],
3176 "type": "integer",
3177 },
3178 "ssd_trim_min": {
3179 "v_range": [["v6.0.0", "v7.4.1"], ["v7.4.3", ""]],
3180 "type": "integer",
3181 },
3182 "ssd_trim_weekday": {
3183 "v_range": [["v6.0.0", "v7.4.1"], ["v7.4.3", ""]],
3184 "type": "string",
3185 "options": [
3186 {"value": "sunday", "v_range": [["v6.0.0", ""]]},
3187 {"value": "monday", "v_range": [["v6.0.0", ""]]},
3188 {"value": "tuesday", "v_range": [["v6.0.0", ""]]},
3189 {"value": "wednesday", "v_range": [["v6.0.0", ""]]},
3190 {"value": "thursday", "v_range": [["v6.0.0", ""]]},
3191 {"value": "friday", "v_range": [["v6.0.0", ""]]},
3192 {"value": "saturday", "v_range": [["v6.0.0", ""]]},
3193 ],
3194 },
3195 "ssd_trim_date": {
3196 "v_range": [["v6.0.0", "v7.4.1"], ["v7.4.3", ""]],
3197 "type": "integer",
3198 },
3199 "admin_concurrent": {
3200 "v_range": [["v6.0.0", ""]],
3201 "type": "string",
3202 "options": [{"value": "enable"}, {"value": "disable"}],
3203 },
3204 "admin_lockout_threshold": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3205 "admin_lockout_duration": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3206 "refresh": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3207 "interval": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3208 "failtime": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3209 "purdue_level": {
3210 "v_range": [["v7.4.2", ""]],
3211 "type": "string",
3212 "options": [
3213 {"value": "1"},
3214 {"value": "1.5"},
3215 {"value": "2"},
3216 {"value": "2.5"},
3217 {"value": "3"},
3218 {"value": "3.5"},
3219 {"value": "4"},
3220 {"value": "5"},
3221 {"value": "5.5"},
3222 ],
3223 },
3224 "daily_restart": {
3225 "v_range": [["v6.0.0", ""]],
3226 "type": "string",
3227 "options": [{"value": "enable"}, {"value": "disable"}],
3228 },
3229 "restart_time": {"v_range": [["v6.0.0", ""]], "type": "string"},
3230 "wad_restart_mode": {
3231 "v_range": [["v7.2.4", ""]],
3232 "type": "string",
3233 "options": [{"value": "none"}, {"value": "time"}, {"value": "memory"}],
3234 },
3235 "wad_restart_start_time": {"v_range": [["v7.2.4", ""]], "type": "string"},
3236 "wad_restart_end_time": {"v_range": [["v7.2.4", ""]], "type": "string"},
3237 "wad_p2s_max_body_size": {"v_range": [["v7.6.3", ""]], "type": "integer"},
3238 "radius_port": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3239 "speedtestd_server_port": {"v_range": [["v7.4.2", ""]], "type": "integer"},
3240 "speedtestd_ctrl_port": {"v_range": [["v7.4.2", ""]], "type": "integer"},
3241 "admin_login_max": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3242 "remoteauthtimeout": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3243 "ldapconntimeout": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3244 "batch_cmdb": {
3245 "v_range": [["v6.0.0", ""]],
3246 "type": "string",
3247 "options": [{"value": "enable"}, {"value": "disable"}],
3248 },
3249 "multi_factor_authentication": {
3250 "v_range": [["v6.0.0", ""]],
3251 "type": "string",
3252 "options": [{"value": "optional"}, {"value": "mandatory"}],
3253 },
3254 "ssl_min_proto_version": {
3255 "v_range": [["v6.0.0", ""]],
3256 "type": "string",
3257 "options": [
3258 {"value": "SSLv3"},
3259 {"value": "TLSv1"},
3260 {"value": "TLSv1-1"},
3261 {"value": "TLSv1-2"},
3262 {"value": "TLSv1-3", "v_range": [["v6.2.0", ""]]},
3263 ],
3264 },
3265 "autorun_log_fsck": {
3266 "v_range": [["v6.2.0", ""]],
3267 "type": "string",
3268 "options": [{"value": "enable"}, {"value": "disable"}],
3269 },
3270 "timezone": {"v_range": [["v6.0.0", ""]], "type": "string"},
3271 "traffic_priority": {
3272 "v_range": [["v6.0.0", ""]],
3273 "type": "string",
3274 "options": [{"value": "tos"}, {"value": "dscp"}],
3275 },
3276 "traffic_priority_level": {
3277 "v_range": [["v6.0.0", ""]],
3278 "type": "string",
3279 "options": [{"value": "low"}, {"value": "medium"}, {"value": "high"}],
3280 },
3281 "quic_congestion_control_algo": {
3282 "v_range": [["v7.4.1", ""]],
3283 "type": "string",
3284 "options": [
3285 {"value": "cubic"},
3286 {"value": "bbr"},
3287 {"value": "bbr2"},
3288 {"value": "reno"},
3289 ],
3290 },
3291 "quic_max_datagram_size": {"v_range": [["v7.4.1", ""]], "type": "integer"},
3292 "quic_udp_payload_size_shaping_per_cid": {
3293 "v_range": [["v7.4.1", ""]],
3294 "type": "string",
3295 "options": [{"value": "enable"}, {"value": "disable"}],
3296 },
3297 "quic_ack_thresold": {"v_range": [["v7.4.1", ""]], "type": "integer"},
3298 "quic_pmtud": {
3299 "v_range": [["v7.4.1", ""]],
3300 "type": "string",
3301 "options": [{"value": "enable"}, {"value": "disable"}],
3302 },
3303 "quic_tls_handshake_timeout": {"v_range": [["v7.4.1", ""]], "type": "integer"},
3304 "anti_replay": {
3305 "v_range": [["v6.0.0", ""]],
3306 "type": "string",
3307 "options": [{"value": "disable"}, {"value": "loose"}, {"value": "strict"}],
3308 },
3309 "send_pmtu_icmp": {
3310 "v_range": [["v6.0.0", ""]],
3311 "type": "string",
3312 "options": [{"value": "enable"}, {"value": "disable"}],
3313 },
3314 "honor_df": {
3315 "v_range": [["v6.0.0", ""]],
3316 "type": "string",
3317 "options": [{"value": "enable"}, {"value": "disable"}],
3318 },
3319 "pmtu_discovery": {
3320 "v_range": [["v7.0.1", ""]],
3321 "type": "string",
3322 "options": [{"value": "enable"}, {"value": "disable"}],
3323 },
3324 "split_port": {
3325 "v_range": [["v6.0.0", "v7.4.1"], ["v7.4.3", ""]],
3326 "type": "list",
3327 "multiple_values": True,
3328 "elements": "str",
3329 },
3330 "revision_image_auto_backup": {
3331 "v_range": [["v6.0.0", ""]],
3332 "type": "string",
3333 "options": [{"value": "enable"}, {"value": "disable"}],
3334 },
3335 "revision_backup_on_logout": {
3336 "v_range": [["v6.0.0", ""]],
3337 "type": "string",
3338 "options": [{"value": "enable"}, {"value": "disable"}],
3339 },
3340 "management_vdom": {"v_range": [["v6.0.0", ""]], "type": "string"},
3341 "hostname": {"v_range": [["v6.0.0", ""]], "type": "string"},
3342 "alias": {"v_range": [["v6.0.0", ""]], "type": "string"},
3343 "strong_crypto": {
3344 "v_range": [["v6.0.0", ""]],
3345 "type": "string",
3346 "options": [{"value": "enable"}, {"value": "disable"}],
3347 },
3348 "ssl_static_key_ciphers": {
3349 "v_range": [["v6.0.0", ""]],
3350 "type": "string",
3351 "options": [{"value": "enable"}, {"value": "disable"}],
3352 },
3353 "snat_route_change": {
3354 "v_range": [["v6.0.0", ""]],
3355 "type": "string",
3356 "options": [{"value": "enable"}, {"value": "disable"}],
3357 },
3358 "ipv6_snat_route_change": {
3359 "v_range": [["v7.6.4", ""]],
3360 "type": "string",
3361 "options": [{"value": "enable"}, {"value": "disable"}],
3362 },
3363 "speedtest_server": {
3364 "v_range": [["v7.0.1", ""]],
3365 "type": "string",
3366 "options": [{"value": "enable"}, {"value": "disable"}],
3367 },
3368 "cli_audit_log": {
3369 "v_range": [["v6.0.0", ""]],
3370 "type": "string",
3371 "options": [{"value": "enable"}, {"value": "disable"}],
3372 },
3373 "dh_params": {
3374 "v_range": [["v6.0.0", ""]],
3375 "type": "string",
3376 "options": [
3377 {"value": "1024"},
3378 {"value": "1536"},
3379 {"value": "2048"},
3380 {"value": "3072"},
3381 {"value": "4096"},
3382 {"value": "6144"},
3383 {"value": "8192"},
3384 ],
3385 },
3386 "fds_statistics": {
3387 "v_range": [["v6.0.0", ""]],
3388 "type": "string",
3389 "options": [{"value": "enable"}, {"value": "disable"}],
3390 },
3391 "fds_statistics_period": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3392 "tcp_option": {
3393 "v_range": [["v6.0.0", ""]],
3394 "type": "string",
3395 "options": [{"value": "enable"}, {"value": "disable"}],
3396 },
3397 "lldp_transmission": {
3398 "v_range": [["v6.0.0", ""]],
3399 "type": "string",
3400 "options": [{"value": "enable"}, {"value": "disable"}],
3401 },
3402 "lldp_reception": {
3403 "v_range": [["v6.2.0", ""]],
3404 "type": "string",
3405 "options": [{"value": "enable"}, {"value": "disable"}],
3406 },
3407 "proxy_auth_timeout": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3408 "proxy_keep_alive_mode": {
3409 "v_range": [["v7.2.4", ""]],
3410 "type": "string",
3411 "options": [
3412 {"value": "session"},
3413 {"value": "traffic"},
3414 {"value": "re-authentication"},
3415 ],
3416 },
3417 "proxy_re_authentication_time": {
3418 "v_range": [["v7.2.4", ""]],
3419 "type": "integer",
3420 },
3421 "proxy_auth_lifetime": {
3422 "v_range": [["v6.0.0", ""]],
3423 "type": "string",
3424 "options": [{"value": "enable"}, {"value": "disable"}],
3425 },
3426 "proxy_auth_lifetime_timeout": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3427 "proxy_resource_mode": {
3428 "v_range": [["v7.0.0", ""]],
3429 "type": "string",
3430 "options": [{"value": "enable"}, {"value": "disable"}],
3431 },
3432 "proxy_cert_use_mgmt_vdom": {
3433 "v_range": [["v7.0.4", ""]],
3434 "type": "string",
3435 "options": [{"value": "enable"}, {"value": "disable"}],
3436 },
3437 "sys_perf_log_interval": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3438 "check_protocol_header": {
3439 "v_range": [["v6.0.0", ""]],
3440 "type": "string",
3441 "options": [{"value": "loose"}, {"value": "strict"}],
3442 },
3443 "vip_arp_range": {
3444 "v_range": [["v6.0.0", ""]],
3445 "type": "string",
3446 "options": [{"value": "unlimited"}, {"value": "restricted"}],
3447 },
3448 "reset_sessionless_tcp": {
3449 "v_range": [["v6.0.0", ""]],
3450 "type": "string",
3451 "options": [{"value": "enable"}, {"value": "disable"}],
3452 },
3453 "allow_traffic_redirect": {
3454 "v_range": [["v6.0.0", ""]],
3455 "type": "string",
3456 "options": [{"value": "enable"}, {"value": "disable"}],
3457 },
3458 "ipv6_allow_traffic_redirect": {
3459 "v_range": [["v7.0.0", ""]],
3460 "type": "string",
3461 "options": [{"value": "enable"}, {"value": "disable"}],
3462 },
3463 "strict_dirty_session_check": {
3464 "v_range": [["v6.0.0", ""]],
3465 "type": "string",
3466 "options": [{"value": "enable"}, {"value": "disable"}],
3467 },
3468 "tcp_halfclose_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3469 "tcp_halfopen_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3470 "tcp_timewait_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3471 "tcp_rst_timer": {"v_range": [["v7.0.0", ""]], "type": "integer"},
3472 "udp_idle_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3473 "block_session_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3474 "ip_src_port_range": {"v_range": [["v6.0.0", ""]], "type": "string"},
3475 "pre_login_banner": {
3476 "v_range": [["v6.0.0", ""]],
3477 "type": "string",
3478 "options": [{"value": "enable"}, {"value": "disable"}],
3479 },
3480 "post_login_banner": {
3481 "v_range": [["v6.0.0", ""]],
3482 "type": "string",
3483 "options": [{"value": "disable"}, {"value": "enable"}],
3484 },
3485 "tftp": {
3486 "v_range": [["v6.0.0", ""]],
3487 "type": "string",
3488 "options": [{"value": "enable"}, {"value": "disable"}],
3489 },
3490 "av_failopen": {
3491 "v_range": [["v6.0.0", ""]],
3492 "type": "string",
3493 "options": [{"value": "pass"}, {"value": "off"}, {"value": "one-shot"}],
3494 },
3495 "av_failopen_session": {
3496 "v_range": [["v6.0.0", ""]],
3497 "type": "string",
3498 "options": [{"value": "enable"}, {"value": "disable"}],
3499 },
3500 "memory_use_threshold_extreme": {
3501 "v_range": [["v6.0.0", ""]],
3502 "type": "integer",
3503 },
3504 "memory_use_threshold_red": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3505 "memory_use_threshold_green": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3506 "ip_fragment_mem_thresholds": {
3507 "v_range": [["v7.0.8", "v7.0.12"], ["v7.2.4", ""]],
3508 "type": "integer",
3509 },
3510 "ip_fragment_timeout": {"v_range": [["v7.6.0", ""]], "type": "integer"},
3511 "ipv6_fragment_timeout": {"v_range": [["v7.6.0", ""]], "type": "integer"},
3512 "cpu_use_threshold": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3513 "log_single_cpu_high": {
3514 "v_range": [["v7.2.4", ""]],
3515 "type": "string",
3516 "options": [{"value": "enable"}, {"value": "disable"}],
3517 },
3518 "check_reset_range": {
3519 "v_range": [["v6.0.0", ""]],
3520 "type": "string",
3521 "options": [{"value": "strict"}, {"value": "disable"}],
3522 },
3523 "single_vdom_npuvlink": {
3524 "v_range": [["v7.6.1", ""]],
3525 "type": "string",
3526 "options": [{"value": "enable"}, {"value": "disable"}],
3527 },
3528 "vdom_mode": {
3529 "v_range": [["v6.2.0", ""]],
3530 "type": "string",
3531 "options": [
3532 {"value": "no-vdom"},
3533 {"value": "multi-vdom"},
3534 {"value": "split-vdom", "v_range": [["v6.2.0", "v7.0.12"]]},
3535 ],
3536 },
3537 "long_vdom_name": {
3538 "v_range": [["v6.0.0", ""]],
3539 "type": "string",
3540 "options": [{"value": "enable"}, {"value": "disable"}],
3541 },
3542 "upgrade_report": {
3543 "v_range": [["v7.6.1", ""]],
3544 "type": "string",
3545 "options": [{"value": "enable"}, {"value": "disable"}],
3546 },
3547 "edit_vdom_prompt": {
3548 "v_range": [["v6.4.0", ""]],
3549 "type": "string",
3550 "options": [{"value": "enable"}, {"value": "disable"}],
3551 },
3552 "admin_port": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3553 "admin_sport": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3554 "admin_host": {
3555 "v_range": [["v7.0.6", "v7.0.12"], ["v7.2.1", ""]],
3556 "type": "string",
3557 },
3558 "admin_https_redirect": {
3559 "v_range": [["v6.0.0", ""]],
3560 "type": "string",
3561 "options": [{"value": "enable"}, {"value": "disable"}],
3562 },
3563 "admin_hsts_max_age": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3564 "admin_ssh_password": {
3565 "v_range": [["v6.0.0", ""]],
3566 "type": "string",
3567 "options": [{"value": "enable"}, {"value": "disable"}],
3568 },
3569 "admin_restrict_local": {
3570 "v_range": [["v6.0.0", ""]],
3571 "type": "string",
3572 "options": [
3573 {"value": "all", "v_range": [["v7.6.0", ""]]},
3574 {"value": "non-console-only", "v_range": [["v7.6.0", ""]]},
3575 {"value": "disable"},
3576 {"value": "enable", "v_range": [["v6.0.0", "v7.4.4"]]},
3577 ],
3578 },
3579 "admin_ssh_port": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3580 "admin_ssh_grace_time": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3581 "admin_ssh_v1": {
3582 "v_range": [["v6.0.0", ""]],
3583 "type": "string",
3584 "options": [{"value": "enable"}, {"value": "disable"}],
3585 },
3586 "admin_telnet": {
3587 "v_range": [["v6.2.0", ""]],
3588 "type": "string",
3589 "options": [{"value": "enable"}, {"value": "disable"}],
3590 },
3591 "admin_telnet_port": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3592 "admin_forticloud_sso_login": {
3593 "v_range": [["v7.0.0", ""]],
3594 "type": "string",
3595 "options": [{"value": "enable"}, {"value": "disable"}],
3596 },
3597 "admin_forticloud_sso_default_profile": {
3598 "v_range": [["v7.2.4", ""]],
3599 "type": "string",
3600 },
3601 "default_service_source_port": {"v_range": [["v6.2.0", ""]], "type": "string"},
3602 "admin_server_cert": {"v_range": [["v6.0.0", ""]], "type": "string"},
3603 "admin_https_pki_required": {
3604 "v_range": [["v6.0.0", ""]],
3605 "type": "string",
3606 "options": [{"value": "enable"}, {"value": "disable"}],
3607 },
3608 "wifi_certificate": {"v_range": [["v6.0.0", ""]], "type": "string"},
3609 "dhcp_lease_backup_interval": {"v_range": [["v7.4.4", ""]], "type": "integer"},
3610 "wifi_ca_certificate": {"v_range": [["v6.0.0", ""]], "type": "string"},
3611 "auth_http_port": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3612 "auth_https_port": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3613 "auth_ike_saml_port": {"v_range": [["v7.2.0", ""]], "type": "integer"},
3614 "auth_keepalive": {
3615 "v_range": [["v6.0.0", ""]],
3616 "type": "string",
3617 "options": [{"value": "enable"}, {"value": "disable"}],
3618 },
3619 "policy_auth_concurrent": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3620 "auth_session_limit": {
3621 "v_range": [["v6.0.0", ""]],
3622 "type": "string",
3623 "options": [{"value": "block-new"}, {"value": "logout-inactive"}],
3624 },
3625 "auth_cert": {"v_range": [["v6.0.0", ""]], "type": "string"},
3626 "clt_cert_req": {
3627 "v_range": [["v6.0.0", ""]],
3628 "type": "string",
3629 "options": [{"value": "enable"}, {"value": "disable"}],
3630 },
3631 "fortiservice_port": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3632 "cfg_save": {
3633 "v_range": [["v6.0.0", ""]],
3634 "type": "string",
3635 "options": [
3636 {"value": "automatic"},
3637 {"value": "manual"},
3638 {"value": "revert"},
3639 ],
3640 },
3641 "cfg_revert_timeout": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3642 "reboot_upon_config_restore": {
3643 "v_range": [["v6.0.0", ""]],
3644 "type": "string",
3645 "options": [{"value": "enable"}, {"value": "disable"}],
3646 },
3647 "admin_scp": {
3648 "v_range": [["v6.0.0", ""]],
3649 "type": "string",
3650 "options": [{"value": "enable"}, {"value": "disable"}],
3651 },
3652 "wireless_controller": {
3653 "v_range": [["v6.0.0", ""]],
3654 "type": "string",
3655 "options": [{"value": "enable"}, {"value": "disable"}],
3656 },
3657 "wireless_controller_port": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3658 "fortiextender_data_port": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3659 "fortiextender": {
3660 "v_range": [["v6.0.0", ""]],
3661 "type": "string",
3662 "options": [{"value": "disable"}, {"value": "enable"}],
3663 },
3664 "extender_controller_reserved_network": {
3665 "v_range": [["v7.0.2", ""]],
3666 "type": "string",
3667 },
3668 "fortiextender_discovery_lockdown": {
3669 "v_range": [["v7.0.2", ""]],
3670 "type": "string",
3671 "options": [{"value": "disable"}, {"value": "enable"}],
3672 },
3673 "fortiextender_vlan_mode": {
3674 "v_range": [["v6.0.0", ""]],
3675 "type": "string",
3676 "options": [{"value": "enable"}, {"value": "disable"}],
3677 },
3678 "fortiextender_provision_on_authorization": {
3679 "v_range": [["v7.2.1", ""]],
3680 "type": "string",
3681 "options": [{"value": "enable"}, {"value": "disable"}],
3682 },
3683 "telemetry_controller": {
3684 "v_range": [["v7.6.3", ""]],
3685 "type": "string",
3686 "options": [{"value": "enable"}, {"value": "disable"}],
3687 },
3688 "telemetry_data_port": {"v_range": [["v7.6.3", ""]], "type": "integer"},
3689 "switch_controller": {
3690 "v_range": [["v6.0.0", ""]],
3691 "type": "string",
3692 "options": [{"value": "disable"}, {"value": "enable"}],
3693 },
3694 "switch_controller_reserved_network": {
3695 "v_range": [["v6.0.0", ""]],
3696 "type": "string",
3697 },
3698 "dnsproxy_worker_count": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3699 "url_filter_count": {"v_range": [["v6.2.0", ""]], "type": "integer"},
3700 "httpd_max_worker_count": {"v_range": [["v7.6.0", ""]], "type": "integer"},
3701 "proxy_worker_count": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3702 "scanunit_count": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3703 "proxy_hardware_acceleration": {
3704 "v_range": [["v6.4.0", ""]],
3705 "type": "string",
3706 "options": [{"value": "disable"}, {"value": "enable"}],
3707 },
3708 "fgd_alert_subscription": {
3709 "v_range": [["v6.0.0", ""]],
3710 "type": "list",
3711 "options": [
3712 {"value": "advisory"},
3713 {"value": "latest-threat"},
3714 {"value": "latest-virus"},
3715 {"value": "latest-attack"},
3716 {"value": "new-antivirus-db"},
3717 {"value": "new-attack-db"},
3718 ],
3719 "multiple_values": True,
3720 "elements": "str",
3721 },
3722 "ipsec_hmac_offload": {
3723 "v_range": [["v6.0.0", ""]],
3724 "type": "string",
3725 "options": [{"value": "enable"}, {"value": "disable"}],
3726 },
3727 "ipv6_accept_dad": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3728 "ipv6_allow_anycast_probe": {
3729 "v_range": [["v6.0.0", ""]],
3730 "type": "string",
3731 "options": [{"value": "enable"}, {"value": "disable"}],
3732 },
3733 "ipv6_allow_multicast_probe": {
3734 "v_range": [["v7.0.6", "v7.0.12"], ["v7.2.1", ""]],
3735 "type": "string",
3736 "options": [{"value": "enable"}, {"value": "disable"}],
3737 },
3738 "ipv6_allow_local_in_silent_drop": {
3739 "v_range": [["v7.4.4", ""]],
3740 "type": "string",
3741 "options": [{"value": "enable"}, {"value": "disable"}],
3742 },
3743 "csr_ca_attribute": {
3744 "v_range": [["v6.0.0", ""]],
3745 "type": "string",
3746 "options": [{"value": "enable"}, {"value": "disable"}],
3747 },
3748 "wimax_4g_usb": {
3749 "v_range": [["v6.0.0", ""]],
3750 "type": "string",
3751 "options": [{"value": "enable"}, {"value": "disable"}],
3752 },
3753 "cert_chain_max": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3754 "sslvpn_max_worker_count": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3755 "sslvpn_affinity": {"v_range": [["v7.6.3", ""]], "type": "string"},
3756 "sslvpn_web_mode": {
3757 "v_range": [["v7.4.1", ""]],
3758 "type": "string",
3759 "options": [{"value": "enable"}, {"value": "disable"}],
3760 },
3761 "two_factor_ftk_expiry": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3762 "two_factor_email_expiry": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3763 "two_factor_sms_expiry": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3764 "two_factor_fac_expiry": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3765 "two_factor_ftm_expiry": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3766 "per_user_bal": {
3767 "v_range": [["v7.0.0", ""]],
3768 "type": "string",
3769 "options": [{"value": "enable"}, {"value": "disable"}],
3770 },
3771 "wad_worker_count": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3772 "wad_worker_dev_cache": {"v_range": [["v7.6.5", ""]], "type": "integer"},
3773 "wad_csvc_cs_count": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3774 "wad_csvc_db_count": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3775 "wad_source_affinity": {
3776 "v_range": [["v6.0.0", ""]],
3777 "type": "string",
3778 "options": [{"value": "disable"}, {"value": "enable"}],
3779 },
3780 "wad_memory_change_granularity": {
3781 "v_range": [["v6.2.0", ""]],
3782 "type": "integer",
3783 },
3784 "login_timestamp": {
3785 "v_range": [["v6.0.0", ""]],
3786 "type": "string",
3787 "options": [{"value": "enable"}, {"value": "disable"}],
3788 },
3789 "ip_conflict_detection": {
3790 "v_range": [["v7.6.0", ""]],
3791 "type": "string",
3792 "options": [{"value": "enable"}, {"value": "disable"}],
3793 },
3794 "miglogd_children": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3795 "log_daemon_cpu_threshold": {"v_range": [["v7.6.5", ""]], "type": "integer"},
3796 "special_file_23_support": {
3797 "v_range": [["v6.0.0", ""]],
3798 "type": "string",
3799 "options": [{"value": "disable"}, {"value": "enable"}],
3800 },
3801 "log_uuid_address": {
3802 "v_range": [["v6.2.0", ""]],
3803 "type": "string",
3804 "options": [{"value": "enable"}, {"value": "disable"}],
3805 },
3806 "log_ssl_connection": {
3807 "v_range": [["v6.0.0", ""]],
3808 "type": "string",
3809 "options": [{"value": "enable"}, {"value": "disable"}],
3810 },
3811 "gui_rest_api_cache": {
3812 "v_range": [["v7.0.0", ""]],
3813 "type": "string",
3814 "options": [{"value": "enable"}, {"value": "disable"}],
3815 },
3816 "rest_api_key_url_query": {
3817 "v_range": [["v7.6.1", ""]],
3818 "type": "string",
3819 "options": [{"value": "enable"}, {"value": "disable"}],
3820 },
3821 "gui_cdn_domain_override": {
3822 "v_range": [["v7.0.12", "v7.0.12"], ["v7.2.1", ""]],
3823 "type": "string",
3824 },
3825 "arp_max_entry": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3826 "ha_affinity": {"v_range": [["v7.0.1", ""]], "type": "string"},
3827 "bfd_affinity": {"v_range": [["v7.4.2", ""]], "type": "string"},
3828 "cmdbsvr_affinity": {"v_range": [["v7.0.1", ""]], "type": "string"},
3829 "av_affinity": {"v_range": [["v6.0.0", ""]], "type": "string"},
3830 "wad_affinity": {"v_range": [["v6.0.0", ""]], "type": "string"},
3831 "ips_affinity": {
3832 "v_range": [["v6.0.0", "v7.4.1"], ["v7.4.3", ""]],
3833 "type": "string",
3834 },
3835 "miglog_affinity": {"v_range": [["v6.0.0", ""]], "type": "string"},
3836 "syslog_affinity": {"v_range": [["v7.2.4", ""]], "type": "string"},
3837 "url_filter_affinity": {"v_range": [["v6.2.0", ""]], "type": "string"},
3838 "router_affinity": {"v_range": [["v7.6.4", ""]], "type": "string"},
3839 "ndp_max_entry": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3840 "br_fdb_max_entry": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3841 "max_route_cache_size": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3842 "ipsec_asic_offload": {
3843 "v_range": [["v6.0.0", ""]],
3844 "type": "string",
3845 "options": [{"value": "enable"}, {"value": "disable"}],
3846 },
3847 "device_idle_timeout": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3848 "user_device_store_max_devices": {
3849 "v_range": [["v6.4.4", ""]],
3850 "type": "integer",
3851 },
3852 "user_device_store_max_device_mem": {
3853 "v_range": [["v7.6.3", ""]],
3854 "type": "integer",
3855 },
3856 "user_device_store_max_users": {"v_range": [["v6.4.4", ""]], "type": "integer"},
3857 "user_device_store_max_unified_mem": {
3858 "v_range": [["v7.0.2", ""]],
3859 "type": "integer",
3860 },
3861 "gui_device_latitude": {"v_range": [["v6.0.0", ""]], "type": "string"},
3862 "gui_device_longitude": {"v_range": [["v6.0.0", ""]], "type": "string"},
3863 "private_data_encryption": {
3864 "v_range": [["v6.0.0", ""]],
3865 "type": "string",
3866 "options": [{"value": "disable"}, {"value": "enable"}],
3867 },
3868 "auto_auth_extension_device": {
3869 "v_range": [["v6.0.0", ""]],
3870 "type": "string",
3871 "options": [{"value": "enable"}, {"value": "disable"}],
3872 },
3873 "gui_theme": {
3874 "v_range": [["v6.0.0", ""]],
3875 "type": "string",
3876 "options": [
3877 {"value": "jade", "v_range": [["v7.0.0", ""]]},
3878 {"value": "neutrino", "v_range": [["v6.2.0", ""]]},
3879 {"value": "mariner"},
3880 {"value": "graphite", "v_range": [["v7.0.0", ""]]},
3881 {"value": "melongene"},
3882 {"value": "jet-stream", "v_range": [["v7.4.0", ""]]},
3883 {"value": "security-fabric", "v_range": [["v7.4.0", ""]]},
3884 {"value": "retro", "v_range": [["v7.0.0", ""]]},
3885 {"value": "dark-matter", "v_range": [["v7.0.0", ""]]},
3886 {"value": "onyx", "v_range": [["v7.0.0", ""]]},
3887 {"value": "eclipse", "v_range": [["v7.0.0", ""]]},
3888 {"value": "green", "v_range": [["v6.0.0", "v6.4.4"]]},
3889 {"value": "blue", "v_range": [["v6.0.0", "v6.4.4"]]},
3890 {"value": "red", "v_range": [["v6.0.0", "v6.0.11"]]},
3891 ],
3892 },
3893 "gui_date_format": {
3894 "v_range": [["v6.0.0", ""]],
3895 "type": "string",
3896 "options": [
3897 {"value": "yyyy/MM/dd"},
3898 {"value": "dd/MM/yyyy"},
3899 {"value": "MM/dd/yyyy"},
3900 {"value": "yyyy-MM-dd"},
3901 {"value": "dd-MM-yyyy"},
3902 {"value": "MM-dd-yyyy"},
3903 ],
3904 },
3905 "gui_date_time_source": {
3906 "v_range": [["v6.2.0", ""]],
3907 "type": "string",
3908 "options": [{"value": "system"}, {"value": "browser"}],
3909 },
3910 "igmp_state_limit": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3911 "cloud_communication": {
3912 "v_range": [["v6.2.0", ""]],
3913 "type": "string",
3914 "options": [{"value": "enable"}, {"value": "disable"}],
3915 },
3916 "ipsec_ha_seqjump_rate": {"v_range": [["v7.0.0", ""]], "type": "integer"},
3917 "fortitoken_cloud": {
3918 "v_range": [["v6.2.0", ""]],
3919 "type": "string",
3920 "options": [{"value": "enable"}, {"value": "disable"}],
3921 },
3922 "fortitoken_cloud_push_status": {
3923 "v_range": [["v7.4.1", ""]],
3924 "type": "string",
3925 "options": [{"value": "enable"}, {"value": "disable"}],
3926 },
3927 "fortitoken_cloud_region": {"v_range": [["v7.6.4", ""]], "type": "string"},
3928 "fortitoken_cloud_sync_interval": {
3929 "v_range": [["v7.4.1", ""]],
3930 "type": "integer",
3931 },
3932 "faz_disk_buffer_size": {"v_range": [["v6.4.0", ""]], "type": "integer"},
3933 "irq_time_accounting": {
3934 "v_range": [["v6.4.0", ""]],
3935 "type": "string",
3936 "options": [{"value": "auto"}, {"value": "force"}],
3937 },
3938 "management_ip": {"v_range": [["v7.0.0", ""]], "type": "string"},
3939 "management_port": {"v_range": [["v7.0.0", ""]], "type": "integer"},
3940 "management_port_use_admin_sport": {
3941 "v_range": [["v7.0.1", ""]],
3942 "type": "string",
3943 "options": [{"value": "enable"}, {"value": "disable"}],
3944 },
3945 "forticonverter_integration": {
3946 "v_range": [["v7.4.0", ""]],
3947 "type": "string",
3948 "options": [{"value": "enable"}, {"value": "disable"}],
3949 },
3950 "forticonverter_config_upload": {
3951 "v_range": [["v7.4.0", ""]],
3952 "type": "string",
3953 "options": [{"value": "once"}, {"value": "disable"}],
3954 },
3955 "internet_service_database": {
3956 "v_range": [["v7.0.4", ""]],
3957 "type": "string",
3958 "options": [
3959 {"value": "mini"},
3960 {"value": "standard"},
3961 {"value": "full"},
3962 {"value": "on-demand", "v_range": [["v7.2.4", ""]]},
3963 ],
3964 },
3965 "internet_service_download_list": {
3966 "type": "list",
3967 "elements": "dict",
3968 "children": {
3969 "id": {"v_range": [["v7.4.0", ""]], "type": "integer", "required": True}
3970 },
3971 "v_range": [["v7.4.0", ""]],
3972 },
3973 "geoip_full_db": {
3974 "v_range": [["v7.6.5", ""]],
3975 "type": "string",
3976 "options": [{"value": "enable"}, {"value": "disable"}],
3977 },
3978 "early_tcp_npu_session": {
3979 "v_range": [["v7.0.6", "v7.0.12"], ["v7.2.1", ""]],
3980 "type": "string",
3981 "options": [{"value": "enable"}, {"value": "disable"}],
3982 },
3983 "npu_neighbor_update": {
3984 "v_range": [["v7.4.4", ""]],
3985 "type": "string",
3986 "options": [{"value": "enable"}, {"value": "disable"}],
3987 },
3988 "delay_tcp_npu_session": {
3989 "v_range": [["v7.6.0", ""]],
3990 "type": "string",
3991 "options": [{"value": "enable"}, {"value": "disable"}],
3992 },
3993 "interface_subnet_usage": {
3994 "v_range": [["v7.2.4", ""]],
3995 "type": "string",
3996 "options": [{"value": "disable"}, {"value": "enable"}],
3997 },
3998 "sflowd_max_children_num": {"v_range": [["v7.2.4", ""]], "type": "integer"},
3999 "fortigslb_integration": {
4000 "v_range": [["v7.4.2", ""]],
4001 "type": "string",
4002 "options": [{"value": "disable"}, {"value": "enable"}],
4003 },
4004 "user_history_password_threshold": {
4005 "v_range": [["v7.6.0", ""]],
4006 "type": "integer",
4007 },
4008 "auth_session_auto_backup": {
4009 "v_range": [["v7.6.0", ""]],
4010 "type": "string",
4011 "options": [{"value": "enable"}, {"value": "disable"}],
4012 },
4013 "auth_session_auto_backup_interval": {
4014 "v_range": [["v7.6.0", ""]],
4015 "type": "string",
4016 "options": [
4017 {"value": "1min"},
4018 {"value": "5min"},
4019 {"value": "15min"},
4020 {"value": "30min"},
4021 {"value": "1hr"},
4022 ],
4023 },
4024 "scim_https_port": {"v_range": [["v7.6.0", ""]], "type": "integer"},
4025 "scim_http_port": {"v_range": [["v7.6.0", ""]], "type": "integer"},
4026 "scim_server_cert": {"v_range": [["v7.6.0", ""]], "type": "string"},
4027 "application_bandwidth_tracking": {
4028 "v_range": [["v7.6.1", ""]],
4029 "type": "string",
4030 "options": [{"value": "disable"}, {"value": "enable"}],
4031 },
4032 "tls_session_cache": {
4033 "v_range": [["v7.6.3", ""]],
4034 "type": "string",
4035 "options": [{"value": "enable"}, {"value": "disable"}],
4036 },
4037 "vpn_ems_sn_check": {
4038 "v_range": [["v7.4.0", "v7.6.2"]],
4039 "type": "string",
4040 "options": [{"value": "enable"}, {"value": "disable"}],
4041 },
4042 "ipsec_qat_offload": {
4043 "v_range": [],
4044 "type": "string",
4045 "options": [
4046 {"value": "enable", "v_range": [["v7.4.4", "v7.6.1"]]},
4047 {"value": "disable", "v_range": [["v7.4.4", "v7.6.1"]]},
4048 ],
4049 },
4050 "security_rating_run_on_schedule": {
4051 "v_range": [["v6.0.0", "v7.6.0"]],
4052 "type": "string",
4053 "options": [{"value": "enable"}, {"value": "disable"}],
4054 },
4055 "ipsec_round_robin": {
4056 "v_range": [["v7.4.0", "v7.6.0"]],
4057 "type": "string",
4058 "options": [
4059 {
4060 "value": "enable",
4061 "v_range": [
4062 ["v7.0.6", "v7.0.12"],
4063 ["v7.2.1", "v7.2.2"],
4064 ["v7.4.0", "v7.6.0"],
4065 ],
4066 },
4067 {
4068 "value": "disable",
4069 "v_range": [
4070 ["v7.0.6", "v7.0.12"],
4071 ["v7.2.1", "v7.2.2"],
4072 ["v7.4.0", "v7.6.0"],
4073 ],
4074 },
4075 ],
4076 },
4077 "ssh_kex_algo": {
4078 "v_range": [["v7.0.2", "v7.4.3"]],
4079 "type": "list",
4080 "options": [
4081 {"value": "diffie-hellman-group1-sha1"},
4082 {"value": "diffie-hellman-group14-sha1"},
4083 {
4084 "value": "diffie-hellman-group14-sha256",
4085 "v_range": [["v7.4.1", "v7.4.3"]],
4086 },
4087 {
4088 "value": "diffie-hellman-group16-sha512",
4089 "v_range": [["v7.4.1", "v7.4.3"]],
4090 },
4091 {
4092 "value": "diffie-hellman-group18-sha512",
4093 "v_range": [["v7.4.1", "v7.4.3"]],
4094 },
4095 {"value": "diffie-hellman-group-exchange-sha1"},
4096 {"value": "diffie-hellman-group-exchange-sha256"},
4097 {"value": "[email protected]"},
4098 {"value": "ecdh-sha2-nistp256"},
4099 {"value": "ecdh-sha2-nistp384"},
4100 {"value": "ecdh-sha2-nistp521"},
4101 ],
4102 "multiple_values": True,
4103 "elements": "str",
4104 },
4105 "ssh_enc_algo": {
4106 "v_range": [["v7.0.2", "v7.4.3"]],
4107 "type": "list",
4108 "options": [
4109 {"value": "[email protected]"},
4110 {"value": "aes128-ctr"},
4111 {"value": "aes192-ctr"},
4112 {"value": "aes256-ctr"},
4113 {"value": "arcfour256"},
4114 {"value": "arcfour128"},
4115 {"value": "aes128-cbc"},
4116 {"value": "3des-cbc"},
4117 {"value": "blowfish-cbc"},
4118 {"value": "cast128-cbc"},
4119 {"value": "aes192-cbc"},
4120 {"value": "aes256-cbc"},
4121 {"value": "arcfour"},
4122 {"value": "[email protected]"},
4123 {"value": "[email protected]"},
4124 {"value": "[email protected]"},
4125 ],
4126 "multiple_values": True,
4127 "elements": "str",
4128 },
4129 "ssh_mac_algo": {
4130 "v_range": [["v7.0.2", "v7.4.3"]],
4131 "type": "list",
4132 "options": [
4133 {"value": "hmac-md5"},
4134 {"value": "[email protected]"},
4135 {"value": "hmac-md5-96"},
4136 {"value": "[email protected]"},
4137 {"value": "hmac-sha1"},
4138 {"value": "[email protected]"},
4139 {"value": "hmac-sha2-256"},
4140 {"value": "[email protected]"},
4141 {"value": "hmac-sha2-512"},
4142 {"value": "[email protected]"},
4143 {"value": "hmac-ripemd160"},
4144 {"value": "[email protected]"},
4145 {"value": "[email protected]"},
4146 {"value": "[email protected]"},
4147 {"value": "[email protected]"},
4148 {"value": "[email protected]"},
4149 {"value": "[email protected]"},
4150 ],
4151 "multiple_values": True,
4152 "elements": "str",
4153 },
4154 "ssh_hostkey_algo": {
4155 "v_range": [["v7.4.0", "v7.4.3"]],
4156 "type": "list",
4157 "options": [
4158 {"value": "ssh-rsa"},
4159 {"value": "ecdsa-sha2-nistp521"},
4160 {"value": "ecdsa-sha2-nistp384", "v_range": [["v7.4.2", "v7.4.3"]]},
4161 {"value": "ecdsa-sha2-nistp256", "v_range": [["v7.4.2", "v7.4.3"]]},
4162 {"value": "rsa-sha2-256"},
4163 {"value": "rsa-sha2-512"},
4164 {"value": "ssh-ed25519"},
4165 ],
4166 "multiple_values": True,
4167 "elements": "str",
4168 },
4169 "ssh_hostkey_override": {
4170 "v_range": [["v7.4.2", "v7.4.3"]],
4171 "type": "string",
4172 "options": [{"value": "disable"}, {"value": "enable"}],
4173 },
4174 "ssh_hostkey_password": {"v_range": [["v7.4.2", "v7.4.3"]], "type": "string"},
4175 "ssh_hostkey": {"v_range": [["v7.4.2", "v7.4.3"]], "type": "string"},
4176 "security_rating_result_submission": {
4177 "v_range": [["v6.0.0", "v7.4.3"]],
4178 "type": "string",
4179 "options": [{"value": "enable"}, {"value": "disable"}],
4180 },
4181 "ipv6_allow_local_in_slient_drop": {
4182 "v_range": [["v7.0.6", "v7.0.12"], ["v7.2.1", "v7.4.3"]],
4183 "type": "string",
4184 "options": [{"value": "enable"}, {"value": "disable"}],
4185 },
4186 "virtual_switch_vlan": {
4187 "v_range": [["v7.4.2", "v7.4.2"]],
4188 "type": "string",
4189 "options": [{"value": "enable"}, {"value": "disable"}],
4190 },
4191 "split_port_mode": {
4192 "type": "list",
4193 "elements": "dict",
4194 "children": {
4195 "interface": {
4196 "v_range": [["v7.4.2", "v7.4.2"]],
4197 "type": "string",
4198 "required": True,
4199 },
4200 "split_mode": {
4201 "v_range": [["v7.4.2", "v7.4.2"]],
4202 "type": "string",
4203 "options": [
4204 {"value": "disable"},
4205 {"value": "4x10G"},
4206 {"value": "4x25G"},
4207 {"value": "4x50G"},
4208 {"value": "8x25G"},
4209 {"value": "8x50G"},
4210 {"value": "4x100G"},
4211 {"value": "2x200G"},
4212 ],
4213 },
4214 },
4215 "v_range": [["v7.4.2", "v7.4.2"]],
4216 },
4217 "ipsec_soft_dec_async": {
4218 "v_range": [["v6.0.0", "v7.4.1"]],
4219 "type": "string",
4220 "options": [{"value": "enable"}, {"value": "disable"}],
4221 },
4222 "gui_allow_default_hostname": {
4223 "v_range": [["v6.2.0", "v7.4.0"]],
4224 "type": "string",
4225 "options": [{"value": "enable"}, {"value": "disable"}],
4226 },
4227 "sslvpn_ems_sn_check": {
4228 "v_range": [["v6.4.0", "v6.4.0"], ["v6.4.4", "v7.2.4"]],
4229 "type": "string",
4230 "options": [{"value": "enable"}, {"value": "disable"}],
4231 },
4232 "proxy_re_authentication_mode": {
4233 "v_range": [["v6.0.0", "v7.2.2"]],
4234 "type": "string",
4235 "options": [
4236 {"value": "session"},
4237 {"value": "traffic"},
4238 {"value": "absolute"},
4239 ],
4240 },
4241 "admin_maintainer": {
4242 "v_range": [["v6.0.0", "v7.2.2"]],
4243 "type": "string",
4244 "options": [{"value": "enable"}, {"value": "disable"}],
4245 },
4246 "sslvpn_plugin_version_check": {
4247 "v_range": [["v6.0.0", "v7.2.2"]],
4248 "type": "string",
4249 "options": [{"value": "enable"}, {"value": "disable"}],
4250 },
4251 "sslvpn_kxp_hardware_acceleration": {
4252 "v_range": [["v6.0.0", "v7.2.2"]],
4253 "type": "string",
4254 "options": [{"value": "enable"}, {"value": "disable"}],
4255 },
4256 "sslvpn_cipher_hardware_acceleration": {
4257 "v_range": [["v6.0.0", "v7.2.2"]],
4258 "type": "string",
4259 "options": [{"value": "enable"}, {"value": "disable"}],
4260 },
4261 "dst": {
4262 "v_range": [["v6.0.0", "v7.2.0"]],
4263 "type": "string",
4264 "options": [{"value": "enable"}, {"value": "disable"}],
4265 },
4266 "user_server_cert": {"v_range": [["v6.0.0", "v7.2.0"]], "type": "string"},
4267 "forticarrier_bypass": {
4268 "v_range": [["v7.0.4", "v7.0.5"], ["v7.2.0", "v7.2.0"]],
4269 "type": "string",
4270 "options": [{"value": "enable"}, {"value": "disable"}],
4271 },
4272 "gui_fortiguard_resource_fetch": {
4273 "v_range": [["v7.0.6", "v7.0.12"]],
4274 "type": "string",
4275 "options": [{"value": "enable"}, {"value": "disable"}],
4276 },
4277 "ssh_cbc_cipher": {
4278 "v_range": [["v6.0.0", "v7.0.1"]],
4279 "type": "string",
4280 "options": [{"value": "enable"}, {"value": "disable"}],
4281 },
4282 "ssh_hmac_md5": {
4283 "v_range": [["v6.0.0", "v7.0.1"]],
4284 "type": "string",
4285 "options": [{"value": "enable"}, {"value": "disable"}],
4286 },
4287 "ssh_kex_sha1": {
4288 "v_range": [["v6.0.0", "v7.0.1"]],
4289 "type": "string",
4290 "options": [{"value": "enable"}, {"value": "disable"}],
4291 },
4292 "ssh_mac_weak": {
4293 "v_range": [["v6.2.0", "v7.0.1"]],
4294 "type": "string",
4295 "options": [{"value": "enable"}, {"value": "disable"}],
4296 },
4297 "fec_port": {"v_range": [["v6.2.0", "v7.0.1"]], "type": "integer"},
4298 "fortiipam_integration": {
4299 "v_range": [["v6.4.4", "v7.0.1"]],
4300 "type": "string",
4301 "options": [{"value": "enable"}, {"value": "disable"}],
4302 },
4303 "gui_fortisandbox_cloud": {
4304 "v_range": [["v6.2.0", "v6.4.4"]],
4305 "type": "string",
4306 "options": [{"value": "enable"}, {"value": "disable"}],
4307 },
4308 "per_user_bwl": {
4309 "v_range": [["v6.0.0", "v6.4.4"]],
4310 "type": "string",
4311 "options": [{"value": "enable"}, {"value": "disable"}],
4312 },
4313 "gui_lines_per_page": {
4314 "v_range": [["v6.0.0", "v6.2.7"], ["v6.4.1", "v6.4.1"]],
4315 "type": "integer",
4316 },
4317 "log_uuid_policy": {
4318 "v_range": [["v6.2.0", "v6.2.7"], ["v6.4.1", "v6.4.1"]],
4319 "type": "string",
4320 "options": [{"value": "enable"}, {"value": "disable"}],
4321 },
4322 "max_dlpstat_memory": {"v_range": [["v6.0.0", "v6.2.7"]], "type": "integer"},
4323 "proxy_kxp_hardware_acceleration": {
4324 "v_range": [["v6.0.0", "v6.2.7"]],
4325 "type": "string",
4326 "options": [{"value": "disable"}, {"value": "enable"}],
4327 },
4328 "proxy_cipher_hardware_acceleration": {
4329 "v_range": [["v6.0.0", "v6.2.7"]],
4330 "type": "string",
4331 "options": [{"value": "disable"}, {"value": "enable"}],
4332 },
4333 "device_identification_active_scan_delay": {
4334 "v_range": [["v6.0.0", "v6.2.7"]],
4335 "type": "integer",
4336 },
4337 "vdom_admin": {
4338 "v_range": [["v6.0.0", "v6.0.11"], ["v6.2.3", "v6.2.3"]],
4339 "type": "string",
4340 "options": [
4341 {"value": "enable", "v_range": [["v6.0.0", "v6.0.11"]]},
4342 {"value": "disable", "v_range": [["v6.0.0", "v6.0.11"]]},
4343 ],
4344 },
4345 "virtual_server_count": {
4346 "v_range": [["v6.0.0", "v6.0.11"], ["v6.2.3", "v6.2.3"]],
4347 "type": "integer",
4348 },
4349 "virtual_server_hardware_acceleration": {
4350 "v_range": [["v6.0.0", "v6.0.11"], ["v6.2.3", "v6.2.3"]],
4351 "type": "string",
4352 "options": [{"value": "disable"}, {"value": "enable"}],
4353 },
4354 "multicast_forward": {
4355 "v_range": [["v6.0.0", "v6.0.11"]],
4356 "type": "string",
4357 "options": [{"value": "enable"}, {"value": "disable"}],
4358 },
4359 "mc_ttl_notchange": {
4360 "v_range": [["v6.0.0", "v6.0.11"]],
4361 "type": "string",
4362 "options": [{"value": "enable"}, {"value": "disable"}],
4363 },
4364 "asymroute": {
4365 "v_range": [["v6.0.0", "v6.0.11"]],
4366 "type": "string",
4367 "options": [{"value": "enable"}, {"value": "disable"}],
4368 },
4369 "endpoint_control_portal_port": {
4370 "v_range": [["v6.0.0", "v6.0.11"]],
4371 "type": "integer",
4372 },
4373 "endpoint_control_fds_access": {
4374 "v_range": [["v6.0.0", "v6.0.11"]],
4375 "type": "string",
4376 "options": [{"value": "enable"}, {"value": "disable"}],
4377 },
4378 "tp_mc_skip_policy": {
4379 "v_range": [["v6.0.0", "v6.0.11"]],
4380 "type": "string",
4381 "options": [{"value": "enable"}, {"value": "disable"}],
4382 },
4383 "log_uuid": {
4384 "v_range": [["v6.0.0", "v6.0.11"]],
4385 "type": "string",
4386 "options": [
4387 {"value": "disable"},
4388 {"value": "policy-only"},
4389 {"value": "extended"},
4390 ],
4391 },
4392 "compliance_check": {
4393 "v_range": [["v6.0.0", "v6.0.11"]],
4394 "type": "string",
4395 "options": [{"value": "enable"}, {"value": "disable"}],
4396 },
4397 "compliance_check_time": {"v_range": [["v6.0.0", "v6.0.11"]], "type": "string"},
4398 },
4399 }
4400
4401
4402 def main():
4403 module_spec = schema_to_module_spec(versioned_schema)
4404 mkeyname = None
4405 fields = {
4406 "access_token": {"required": False, "type": "str", "no_log": True},
4407 "enable_log": {"required": False, "type": "bool", "default": False},
4408 "vdom": {"required": False, "type": "str", "default": "root"},
4409 "member_path": {"required": False, "type": "str"},
4410 "member_state": {
4411 "type": "str",
4412 "required": False,
4413 "choices": ["present", "absent"],
4414 },
4415 "system_global": {
4416 "required": False,
4417 "type": "dict",
4418 "default": None,
4419 "options": {},
4420 },
4421 }
4422 for attribute_name in module_spec["options"]:
4423 fields["system_global"]["options"][attribute_name] = module_spec["options"][
4424 attribute_name
4425 ]
4426 if mkeyname and mkeyname == attribute_name:
4427 fields["system_global"]["options"][attribute_name]["required"] = True
4428
4429 module = AnsibleModule(argument_spec=fields, supports_check_mode=True)
4430 check_legacy_fortiosapi(module)
4431
4432 is_error = False
4433 has_changed = False
4434 result = None
4435 diff = None
4436
4437 versions_check_result = None
4438 if module._socket_path:
4439 connection = Connection(module._socket_path)
4440 if "access_token" in module.params:
4441 connection.set_custom_option("access_token", module.params["access_token"])
4442
4443 if "enable_log" in module.params:
4444 connection.set_custom_option("enable_log", module.params["enable_log"])
4445 else:
4446 connection.set_custom_option("enable_log", False)
4447 fos = FortiOSHandler(connection, module, mkeyname, admin_passwd_header=False)
4448 versions_check_result = check_schema_versioning(
4449 fos, versioned_schema, "system_global"
4450 )
4451
4452 is_error, has_changed, result, diff = fortios_system(
4453 module.params, fos, module.check_mode
4454 )
4455
4456 else:
4457 module.fail_json(**FAIL_SOCKET_MSG)
4458
4459 if versions_check_result and versions_check_result["matched"] is False:
4460 module.warn(
4461 "Ansible has detected version mismatch between FortOS system and your playbook, see more details by specifying option -vvv"
4462 )
4463
4464 if not is_error:
4465 if versions_check_result and versions_check_result["matched"] is False:
4466 module.exit_json(
4467 changed=has_changed,
4468 version_check_warning=versions_check_result,
4469 meta=result,
4470 diff=diff,
4471 )
4472 else:
4473 module.exit_json(changed=has_changed, meta=result, diff=diff)
4474 else:
4475 if versions_check_result and versions_check_result["matched"] is False:
4476 module.fail_json(
4477 msg="Error in repo",
4478 version_check_warning=versions_check_result,
4479 meta=result,
4480 )
4481 else:
4482 module.fail_json(msg="Error in repo", meta=result)
4483
4484
4485 if __name__ == "__main__":
4486 main()