Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_global.py

raw symbols SCIP
1 #!/usr/bin/python
2 from __future__ import absolute_import, division, print_function
3 # Copyright 2019-2024 Fortinet, Inc.
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5
6 __metaclass__ = type
7
8 ANSIBLE_METADATA = {'status': ['preview'],
9 'supported_by': 'community',
10 'metadata_version': '1.1'}
11
12 DOCUMENTATION = '''
13 ---
14 module: fmgr_system_global
15 short_description: Global range attributes.
16 version_added: "1.0.0"
17 extends_documentation_fragment:
18 - fortinet.fortimanager.general
19 - fortinet.fortimanager.general.partial_crud
20 options:
21 system_global:
22 description: The top level parameters set.
23 required: false
24 type: dict
25 suboptions:
26 admin_lockout_duration:
27 aliases: ['admin-lockout-duration']
28 type: int
29 description: Lockout duration
30 admin_lockout_threshold:
31 aliases: ['admin-lockout-threshold']
32 type: int
33 description: Lockout threshold for administration.
34 adom_mode:
35 aliases: ['adom-mode']
36 type: str
37 description:
38 - ADOM mode.
39 - normal - Normal ADOM mode.
40 - advanced - Advanced ADOM mode.
41 choices: ['normal', 'advanced']
42 adom_rev_auto_delete:
43 aliases: ['adom-rev-auto-delete']
44 type: str
45 description:
46 - Auto delete features for old ADOM revisions.
47 - disable - Disable auto delete function for ADOM revision.
48 - by-revisions - Auto delete ADOM revisions by maximum number of revisions.
49 - by-days - Auto delete ADOM revisions by maximum days.
50 choices: ['disable', 'by-revisions', 'by-days']
51 adom_rev_max_backup_revisions:
52 aliases: ['adom-rev-max-backup-revisions']
53 type: int
54 description: Maximum number of ADOM revisions to backup.
55 adom_rev_max_days:
56 aliases: ['adom-rev-max-days']
57 type: int
58 description: Number of days to keep old ADOM revisions.
59 adom_rev_max_revisions:
60 aliases: ['adom-rev-max-revisions']
61 type: int
62 description: Maximum number of ADOM revisions to keep.
63 adom_select:
64 aliases: ['adom-select']
65 type: str
66 description:
67 - Enable/disable select ADOM after login.
68 - disable - Disable select ADOM after login.
69 - enable - Enable select ADOM after login.
70 choices: ['disable', 'enable']
71 adom_status:
72 aliases: ['adom-status']
73 type: str
74 description:
75 - ADOM status.
76 - disable - Disable ADOM mode.
77 - enable - Enable ADOM mode.
78 choices: ['disable', 'enable']
79 clt_cert_req:
80 aliases: ['clt-cert-req']
81 type: str
82 description:
83 - Require client certificate for GUI login.
84 - disable - Disable setting.
85 - enable - Require client certificate for GUI login.
86 - optional - Optional client certificate for GUI login.
87 choices: ['disable', 'enable', 'optional']
88 console_output:
89 aliases: ['console-output']
90 type: str
91 description:
92 - Console output mode.
93 - standard - Standard output.
94 - more - More page output.
95 choices: ['standard', 'more']
96 country_flag:
97 aliases: ['country-flag']
98 type: str
99 description:
100 - Country flag Status.
101 - disable - Disable country flag icon beside ip address.
102 - enable - Enable country flag icon beside ip address.
103 choices: ['disable', 'enable']
104 create_revision:
105 aliases: ['create-revision']
106 type: str
107 description:
108 - Enable/disable create revision by default.
109 - disable - Disable create revision by default.
110 - enable - Enable create revision by default.
111 choices: ['disable', 'enable']
112 daylightsavetime:
113 type: str
114 description:
115 - Enable/disable daylight saving time.
116 - disable - Disable setting.
117 - enable - Enable setting.
118 choices: ['disable', 'enable']
119 default_disk_quota:
120 aliases: ['default-disk-quota']
121 type: int
122 description: Default disk quota for registered device
123 detect_unregistered_log_device:
124 aliases: ['detect-unregistered-log-device']
125 type: str
126 description:
127 - Detect unregistered logging device from log message.
128 - disable - Disable attribute function.
129 - enable - Enable attribute function.
130 choices: ['disable', 'enable']
131 device_view_mode:
132 aliases: ['device-view-mode']
133 type: str
134 description:
135 - Set devices/groups view mode.
136 - regular - Regular view mode.
137 - tree - Tree view mode.
138 choices: ['regular', 'tree']
139 dh_params:
140 aliases: ['dh-params']
141 type: str
142 description:
143 - Minimum size of Diffie-Hellman prime for SSH/HTTPS
144 - 1024 - 1024 bits.
145 - 1536 - 1536 bits.
146 - 2048 - 2048 bits.
147 - 3072 - 3072 bits.
148 - 4096 - 4096 bits.
149 - 6144 - 6144 bits.
150 - 8192 - 8192 bits.
151 choices: ['1024', '1536', '2048', '3072', '4096', '6144', '8192']
152 disable_module:
153 aliases: ['disable-module']
154 type: list
155 elements: str
156 description:
157 - Disable module list.
158 - fortiview-noc - FortiView/NOC-SOC module.
159 choices: ['fortiview-noc', 'none', 'fortirecorder', 'siem', 'soc', 'ai',
160 'safeguard-mv']
161 enc_algorithm:
162 aliases: ['enc-algorithm']
163 type: str
164 description:
165 - SSL communication encryption algorithms.
166 - low - SSL communication using all available encryption algorithms.
167 - medium - SSL communication using high and medium encryption algorithms.
168 - high - SSL communication using high encryption algorithms.
169 choices: ['low', 'medium', 'high', 'custom']
170 faz_status:
171 aliases: ['faz-status']
172 type: str
173 description:
174 - FAZ status.
175 - disable - Disable FAZ feature.
176 - enable - Enable FAZ feature.
177 choices: ['disable', 'enable']
178 fgfm_local_cert:
179 aliases: ['fgfm-local-cert']
180 type: str
181 description: Set the fgfm local certificate.
182 fgfm_ssl_protocol:
183 aliases: ['fgfm-ssl-protocol']
184 type: str
185 description:
186 - set the lowest SSL protocols for fgfmsd.
187 - sslv3 - set SSLv3 as the lowest version.
188 - tlsv1.
189 - tlsv1.
190 - tlsv1.
191 choices: ['sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2', 'tlsv1.3',
192 'follow-global-ssl-protocol']
193 ha_member_auto_grouping:
194 aliases: ['ha-member-auto-grouping']
195 type: str
196 description:
197 - Enable/disable automatically group HA members feature
198 - disable - Disable automatically grouping HA members feature.
199 - enable - Enable automatically grouping HA members only when group name is unique in your network.
200 choices: ['disable', 'enable']
201 hitcount_concurrent:
202 type: int
203 description: The number of FortiGates that FortiManager polls at one time
204 hitcount_interval:
205 type: int
206 description: The interval for getting hit count from managed FortiGate devices, in seconds
207 hostname:
208 type: str
209 description: System hostname.
210 import_ignore_addr_cmt:
211 aliases: ['import-ignore-addr-cmt']
212 type: str
213 description:
214 - Enable/Disable import ignore of address comments.
215 - disable - Disable import ignore of address comments.
216 - enable - Enable import ignore of address comments.
217 choices: ['disable', 'enable']
218 language:
219 type: str
220 description:
221 - System global language.
222 - english - English
223 - simch - Simplified Chinese
224 - japanese - Japanese
225 - korean - Korean
226 - spanish - Spanish
227 - trach - Traditional Chinese
228 choices: ['english', 'simch', 'japanese', 'korean', 'spanish', 'trach']
229 latitude:
230 type: str
231 description: Fmg location latitude
232 ldap_cache_timeout:
233 aliases: ['ldap-cache-timeout']
234 type: int
235 description: LDAP browser cache timeout
236 ldapconntimeout:
237 type: int
238 description: LDAP connection timeout
239 lock_preempt:
240 aliases: ['lock-preempt']
241 type: str
242 description:
243 - Enable/disable ADOM lock override.
244 - disable - Disable lock preempt.
245 - enable - Enable lock preempt.
246 choices: ['disable', 'enable']
247 log_checksum:
248 aliases: ['log-checksum']
249 type: str
250 description:
251 - Record log file hash value, timestamp, and authentication code at transmission or rolling.
252 - none - No record log file checksum.
253 - md5 - Record log files MD5 hash value only.
254 - md5-auth - Record log files MD5 hash value and authentication code.
255 choices: ['none', 'md5', 'md5-auth']
256 log_forward_cache_size:
257 aliases: ['log-forward-cache-size']
258 type: int
259 description: Log forwarding disk cache size
260 longitude:
261 type: str
262 description: Fmg location longitude
263 max_log_forward:
264 aliases: ['max-log-forward']
265 type: int
266 description: Maximum number of log-forward and aggregation settings.
267 max_running_reports:
268 aliases: ['max-running-reports']
269 type: int
270 description: Maximum number of reports generating at one time.
271 oftp_ssl_protocol:
272 aliases: ['oftp-ssl-protocol']
273 type: str
274 description:
275 - set the lowest SSL protocols for oftpd.
276 - sslv3 - set SSLv3 as the lowest version.
277 - tlsv1.
278 - tlsv1.
279 - tlsv1.
280 choices: ['sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2', 'tlsv1.3']
281 partial_install:
282 aliases: ['partial-install']
283 type: str
284 description:
285 - Enable/Disable partial install
286 - disable - Disable partial install function.
287 - enable - Enable partial install function.
288 choices: ['disable', 'enable']
289 partial_install_force:
290 aliases: ['partial-install-force']
291 type: str
292 description:
293 - Enable/Disable partial install when devdb is modified.
294 - disable - Disable partial install when devdb is modified.
295 - enable - Enable partial install when devdb is modified.
296 choices: ['disable', 'enable']
297 partial_install_rev:
298 aliases: ['partial-install-rev']
299 type: str
300 description:
301 - Enable/Disable auto creating adom revision for partial install.
302 - disable - Disable partial install revision.
303 - enable - Enable partial install revision.
304 choices: ['disable', 'enable']
305 perform_improve_by_ha:
306 aliases: ['perform-improve-by-ha']
307 type: str
308 description:
309 - Enable/Disable performance improvement by distributing tasks to HA slaves.
310 - disable - Disable performance improvement by HA.
311 - enable - Enable performance improvement by HA.
312 choices: ['disable', 'enable']
313 policy_hit_count:
314 aliases: ['policy-hit-count']
315 type: str
316 description:
317 - show policy hit count.
318 - disable - Disable policy hit count.
319 - enable - Enable policy hit count.
320 choices: ['disable', 'enable']
321 policy_object_in_dual_pane:
322 aliases: ['policy-object-in-dual-pane']
323 type: str
324 description:
325 - show policies and objects in dual pane.
326 - disable - Disable polices and objects in dual pane.
327 - enable - Enable polices and objects in dual pane.
328 choices: ['disable', 'enable']
329 pre_login_banner:
330 aliases: ['pre-login-banner']
331 type: str
332 description:
333 - Enable/disable pre-login banner.
334 - disable - Disable pre-login banner.
335 - enable - Enable pre-login banner.
336 choices: ['disable', 'enable']
337 pre_login_banner_message:
338 aliases: ['pre-login-banner-message']
339 type: str
340 description: Pre-login banner message.
341 remoteauthtimeout:
342 type: int
343 description: Remote authentication
344 search_all_adoms:
345 aliases: ['search-all-adoms']
346 type: str
347 description:
348 - Enable/Disable Search all ADOMs for where-used query.
349 - disable - Disable search all ADOMs for where-used queries.
350 - enable - Enable search all ADOMs for where-used queries.
351 choices: ['disable', 'enable']
352 ssl_low_encryption:
353 aliases: ['ssl-low-encryption']
354 type: str
355 description:
356 - SSL low-grade encryption.
357 - disable - Disable SSL low-grade encryption.
358 - enable - Enable SSL low-grade encryption.
359 choices: ['disable', 'enable']
360 ssl_protocol:
361 aliases: ['ssl-protocol']
362 type: list
363 elements: str
364 description:
365 - SSL protocols.
366 - tlsv1.
367 - tlsv1.
368 - tlsv1.
369 - sslv3 - Enable SSLv3.
370 choices: ['tlsv1.2', 'tlsv1.1', 'tlsv1.0', 'sslv3', 'tlsv1.3']
371 ssl_static_key_ciphers:
372 aliases: ['ssl-static-key-ciphers']
373 type: str
374 description:
375 - Enable/disable SSL static key ciphers.
376 - disable - Disable setting.
377 - enable - Enable setting.
378 choices: ['disable', 'enable']
379 task_list_size:
380 aliases: ['task-list-size']
381 type: int
382 description: Maximum number of completed tasks to keep.
383 tftp:
384 type: str
385 description:
386 - Enable/disable TFTP in `exec restore image` command
387 - disable - Disable TFTP
388 - enable - Enable TFTP
389 choices: ['disable', 'enable']
390 timezone:
391 type: str
392 description:
393 - Time zone.
394 - 00 -
395 - 01 -
396 - 02 -
397 - 03 -
398 - 04 -
399 - 05 -
400 - 06 -
401 - 07 -
402 - 08 -
403 - 09 -
404 - 10 -
405 - 11 -
406 - 12 -
407 - 13 -
408 - 14 -
409 - 15 -
410 - 16 -
411 - 17 -
412 - 18 -
413 - 19 -
414 - 20 -
415 - 21 -
416 - 22 -
417 - 23 -
418 - 24 -
419 - 25 -
420 - 26 -
421 - 27 -
422 - 28 -
423 - 29 -
424 - 30 -
425 - 31 -
426 - 32 -
427 - 33 -
428 - 34 -
429 - 35 -
430 - 36 -
431 - 37 -
432 - 38 -
433 - 39 -
434 - 40 -
435 - 41 -
436 - 42 -
437 - 43 -
438 - 44 -
439 - 45 -
440 - 46 -
441 - 47 -
442 - 48 -
443 - 49 -
444 - 50 -
445 - 51 -
446 - 52 -
447 - 53 -
448 - 54 -
449 - 55 -
450 - 56 -
451 - 57 -
452 - 58 -
453 - 59 -
454 - 60 -
455 - 61 -
456 - 62 -
457 - 63 -
458 - 64 -
459 - 65 -
460 - 66 -
461 - 67 -
462 - 68 -
463 - 69 -
464 - 70 -
465 - 71 -
466 - 72 -
467 - 73 -
468 - 74 -
469 - 75 -
470 - 76 -
471 - 77 -
472 - 78 -
473 - 79 -
474 - 80 -
475 - 81 -
476 - 82 -
477 - 83 -
478 - 84 -
479 - 85 -
480 - 86 -
481 - 87 -
482 - 88 -
483 - 89 -
484 choices: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11',
485 '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23',
486 '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35',
487 '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47',
488 '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59',
489 '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71',
490 '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83',
491 '84', '85', '86', '87', '88', '89', '90', '91']
492 tunnel_mtu:
493 aliases: ['tunnel-mtu']
494 type: int
495 description: Maximum transportation unit
496 usg:
497 type: str
498 description:
499 - Enable/disable Fortiguard server restriction.
500 - disable - Contact any Fortiguard server
501 - enable - Contact Fortiguard server in USA only
502 choices: ['disable', 'enable']
503 vdom_mirror:
504 aliases: ['vdom-mirror']
505 type: str
506 description:
507 - VDOM mirror.
508 - disable - Disable VDOM mirror function.
509 - enable - Enable VDOM mirror function.
510 choices: ['disable', 'enable']
511 webservice_proto:
512 aliases: ['webservice-proto']
513 type: list
514 elements: str
515 description:
516 - Web Service connection support SSL protocols.
517 - tlsv1.
518 - tlsv1.
519 - tlsv1.
520 - sslv3 - Web Service connection using SSLv3 protocol.
521 - sslv2 - Web Service connection using SSLv2 protocol.
522 choices: ['tlsv1.2', 'tlsv1.1', 'tlsv1.0', 'sslv3', 'sslv2', 'tlsv1.3']
523 workflow_max_sessions:
524 aliases: ['workflow-max-sessions']
525 type: int
526 description: Maximum number of workflow sessions per ADOM
527 workspace_mode:
528 aliases: ['workspace-mode']
529 type: str
530 description:
531 - Set workspace mode
532 - disabled - Workspace disabled.
533 - normal - Workspace lock mode.
534 - workflow - Workspace workflow mode.
535 choices: ['disabled', 'normal', 'workflow', 'per-adom']
536 clone_name_option:
537 aliases: ['clone-name-option']
538 type: str
539 description:
540 - set the clone object names option.
541 - default - Add a prefix of Clone of to the clone name.
542 - keep - Keep the original name for user to edit.
543 choices: ['default', 'keep']
544 fgfm_ca_cert:
545 aliases: ['fgfm-ca-cert']
546 type: str
547 description: Set the extra fgfm CA certificates.
548 mc_policy_disabled_adoms:
549 aliases: ['mc-policy-disabled-adoms']
550 type: list
551 elements: dict
552 description: Mc policy disabled adoms.
553 suboptions:
554 adom_name:
555 aliases: ['adom-name']
556 type: str
557 description: Adom names.
558 policy_object_icon:
559 aliases: ['policy-object-icon']
560 type: str
561 description:
562 - show icons of policy objects.
563 - disable - Disable icon of policy objects.
564 - enable - Enable icon of policy objects.
565 choices: ['disable', 'enable']
566 private_data_encryption:
567 aliases: ['private-data-encryption']
568 type: str
569 description:
570 - Enable/disable private data encryption using an AES 128-bit key.
571 - disable - Disable private data encryption using an AES 128-bit key.
572 - enable - Enable private data encryption using an AES 128-bit key.
573 choices: ['disable', 'enable']
574 per_policy_lock:
575 aliases: ['per-policy-lock']
576 type: str
577 description:
578 - Enable/Disable per policy lock.
579 - disable - Disable per policy lock.
580 - enable - Enable per policy lock.
581 choices: ['disable', 'enable']
582 multiple_steps_upgrade_in_autolink:
583 aliases: ['multiple-steps-upgrade-in-autolink']
584 type: str
585 description:
586 - Enable/disable multiple steps upgade in autolink process
587 - disable - Disable setting.
588 - enable - Enable setting.
589 choices: ['disable', 'enable']
590 object_revision_db_max:
591 aliases: ['object-revision-db-max']
592 type: int
593 description: Maximum revisions for a single database
594 object_revision_mandatory_note:
595 aliases: ['object-revision-mandatory-note']
596 type: str
597 description:
598 - Enable/disable mandatory note when create revision.
599 - disable - Disable object revision.
600 - enable - Enable object revision.
601 choices: ['disable', 'enable']
602 object_revision_object_max:
603 aliases: ['object-revision-object-max']
604 type: int
605 description: Maximum revisions for a single object
606 object_revision_status:
607 aliases: ['object-revision-status']
608 type: str
609 description:
610 - Enable/disable create revision when modify objects.
611 - disable - Disable object revision.
612 - enable - Enable object revision.
613 choices: ['disable', 'enable']
614 normalized_intf_zone_only:
615 aliases: ['normalized-intf-zone-only']
616 type: str
617 description:
618 - allow normalized interface to be zone only.
619 - disable - Disable SSL low-grade encryption.
620 - enable - Enable SSL low-grade encryption.
621 choices: ['disable', 'enable']
622 ssl_cipher_suites:
623 aliases: ['ssl-cipher-suites']
624 type: list
625 elements: dict
626 description: Ssl cipher suites.
627 suboptions:
628 cipher:
629 type: str
630 description: Cipher name
631 priority:
632 type: int
633 description: SSL/TLS cipher suites priority.
634 version:
635 type: str
636 description:
637 - SSL/TLS version the cipher suite can be used with.
638 - tls1.
639 - tls1.
640 choices: ['tls1.2-or-below', 'tls1.3']
641 gui_curl_timeout:
642 aliases: ['gui-curl-timeout']
643 type: int
644 description: GUI curl timeout in seconds
645 fgfm_cert_exclusive:
646 aliases: ['fgfm-cert-exclusive']
647 type: str
648 description:
649 - set if the local or CA certificates should be used exclusively.
650 - disable - Used certificate best-effort.
651 - enable - Used certificate exclusive.
652 choices: ['disable', 'enable']
653 fgfm_deny_unknown:
654 aliases: ['fgfm-deny-unknown']
655 type: str
656 description:
657 - set if allow devices with unknown SN actively register as an unauthorized device.
658 - disable - Allow devices with unknown SN to actively register as an unauthorized device.
659 - enable - Deny devices with unknown SN to actively register as an unauthorized device.
660 choices: ['disable', 'enable']
661 fgfm_peercert_withoutsn:
662 aliases: ['fgfm-peercert-withoutsn']
663 type: str
664 description:
665 - set if the subject CN or SAN of peers SSL certificate sent in FGFM should include the serial number of the device.
666 - disable - Peers certificate must include serial number in subject CN or SAN.
667 - enable - Peers certificate might not include serial number in subject CN or SAN.
668 choices: ['disable', 'enable']
669 table_entry_blink:
670 aliases: ['table-entry-blink']
671 type: str
672 description:
673 - Enable/disable table entry blink in GUI
674 - disable - Disable setting.
675 - enable - Enable setting.
676 choices: ['disable', 'enable']
677 contentpack_fgt_install:
678 aliases: ['contentpack-fgt-install']
679 type: str
680 description:
681 - Enable/disable outbreak alert auto install for FGT ADOMS .
682 - disable - Disable the sql report auto outbreak auto install.
683 - enable - Enable the sql report auto outbreak auto install.
684 choices: ['disable', 'enable']
685 gui_polling_interval:
686 aliases: ['gui-polling-interval']
687 type: int
688 description: GUI polling interval in seconds
689 no_copy_permission_check:
690 aliases: ['no-copy-permission-check']
691 type: str
692 description:
693 - Do not perform permission check to block object changes in different adom during copy and install.
694 - disable - Disable setting.
695 - enable - Enable setting.
696 choices: ['disable', 'enable']
697 ssh_enc_algo:
698 aliases: ['ssh-enc-algo']
699 type: list
700 elements: str
701 description:
702 - Select one or more SSH ciphers.
703 - chacha20-poly1305@openssh.
704 - aes128-ctr
705 - aes192-ctr
706 - aes256-ctr
707 - arcfour256
708 - arcfour128
709 - aes128-cbc
710 - 3des-cbc
711 - blowfish-cbc
712 - cast128-cbc
713 - aes192-cbc
714 - aes256-cbc
715 - arcfour
716 - rijndael-cbc@lysator.
717 - aes128-gcm@openssh.
718 - aes256-gcm@openssh.
719 choices: ['[email protected]', 'aes128-ctr', 'aes192-ctr',
720 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc',
721 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour',
722 '[email protected]', '[email protected]',
723 '[email protected]']
724 ssh_hostkey_algo:
725 aliases: ['ssh-hostkey-algo']
726 type: list
727 elements: str
728 description:
729 - Select one or more SSH hostkey algorithms.
730 - ssh-rsa
731 - ecdsa-sha2-nistp521
732 - rsa-sha2-256
733 - rsa-sha2-512
734 - ssh-ed25519
735 choices: ['ssh-rsa', 'ecdsa-sha2-nistp521', 'rsa-sha2-256', 'rsa-sha2-512',
736 'ssh-ed25519']
737 ssh_kex_algo:
738 aliases: ['ssh-kex-algo']
739 type: list
740 elements: str
741 description:
742 - Select one or more SSH kex algorithms.
743 - diffie-hellman-group1-sha1
744 - diffie-hellman-group14-sha1
745 - diffie-hellman-group14-sha256
746 - diffie-hellman-group16-sha512
747 - diffie-hellman-group18-sha512
748 - diffie-hellman-group-exchange-sha1
749 - diffie-hellman-group-exchange-sha256
750 - curve25519-sha256@libssh.
751 - ecdh-sha2-nistp256
752 - ecdh-sha2-nistp384
753 - ecdh-sha2-nistp521
754 choices: ['diffie-hellman-group1-sha1', 'diffie-hellman-group14-sha1',
755 'diffie-hellman-group14-sha256', 'diffie-hellman-group16-sha512',
756 'diffie-hellman-group18-sha512', 'diffie-hellman-group-exchange-sha1',
757 'diffie-hellman-group-exchange-sha256', '[email protected]',
758 'ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521']
759 ssh_mac_algo:
760 aliases: ['ssh-mac-algo']
761 type: list
762 elements: str
763 description:
764 - Select one or more SSH MAC algorithms.
765 - hmac-md5
766 - hmac-md5-etm@openssh.
767 - hmac-md5-96
768 - hmac-md5-96-etm@openssh.
769 - hmac-sha1
770 - hmac-sha1-etm@openssh.
771 - hmac-sha2-256
772 - hmac-sha2-256-etm@openssh.
773 - hmac-sha2-512
774 - hmac-sha2-512-etm@openssh.
775 - hmac-ripemd160
776 - hmac-ripemd160@openssh.
777 - hmac-ripemd160-etm@openssh.
778 - umac-64@openssh.
779 - umac-128@openssh.
780 - umac-64-etm@openssh.
781 - umac-128-etm@openssh.
782 choices: ['hmac-md5', '[email protected]', 'hmac-md5-96',
783 '[email protected]', 'hmac-sha1', '[email protected]',
784 'hmac-sha2-256', '[email protected]', 'hmac-sha2-512',
785 '[email protected]', 'hmac-ripemd160',
786 '[email protected]', '[email protected]',
787 '[email protected]', '[email protected]',
788 '[email protected]', '[email protected]']
789 ssh_strong_crypto:
790 aliases: ['ssh-strong-crypto']
791 type: str
792 description:
793 - Only allow strong ciphers for SSH when enabled.
794 - disable - Disable strong crypto for SSH.
795 - enable - Enable strong crypto for SSH.
796 choices: ['disable', 'enable']
797 admin_lockout_method:
798 aliases: ['admin-lockout-method']
799 type: str
800 description:
801 - Lockout method for administration.
802 - ip - Lockout by IP
803 - user - Lockout by user
804 choices: ['ip', 'user']
805 workspace_unlock_after_install:
806 aliases: ['workspace-unlock-after-install']
807 type: str
808 description:
809 - Enable/disable ADOM auto-unlock after device installation.
810 - disable - Disable automatically unlock adom after device installation.
811 - enable - Enable automatically unlock adom after device installation.
812 choices: ['disable', 'enable']
813 log_checksum_upload:
814 aliases: ['log-checksum-upload']
815 type: str
816 description:
817 - Enable/disable upload log checksum with log files.
818 - disable - Disable attribute function.
819 - enable - Enable attribute function.
820 choices: ['disable', 'enable']
821 apache_mode:
822 aliases: ['apache-mode']
823 type: str
824 description:
825 - Set apache mode.
826 - event - Apache event mode.
827 - prefork - Apache prefork mode.
828 choices: ['event', 'prefork']
829 no_vip_value_check:
830 aliases: ['no-vip-value-check']
831 type: str
832 description:
833 - Enable/disable skipping policy instead of throwing error when vip has no default or dynamic mapping during policy copy
834 - disable - Disable setting.
835 - enable - Enable setting.
836 choices: ['disable', 'enable']
837 fortiservice_port:
838 aliases: ['fortiservice-port']
839 type: int
840 description: FortiService port
841 management_ip:
842 aliases: ['management-ip']
843 type: str
844 description: Management IP address of this FortiGate.
845 management_port:
846 aliases: ['management-port']
847 type: int
848 description: Overriding port for management connection
849 save_last_hit_in_adomdb:
850 aliases: ['save-last-hit-in-adomdb']
851 type: str
852 description:
853 - Enable/Disable save last-hit value in adomdb.
854 - disable - Disable save last-hit value in adomdb.
855 - enable - Enable save last-hit value in adomdb.
856 choices: ['disable', 'enable']
857 api_ip_binding:
858 aliases: ['api-ip-binding']
859 type: str
860 description:
861 - Enable/disable source IP check for JSON API request.
862 - disable - Disable setting.
863 - enable - Enable setting.
864 choices: ['disable', 'enable']
865 admin_host:
866 aliases: ['admin-host']
867 type: str
868 description: Administrative host for HTTP and HTTPs.
869 admin_ssh_grace_time:
870 aliases: ['admin-ssh-grace-time']
871 type: int
872 description: Maximum time in seconds permitted between making an SSH connection to the FortiManager unit and authenticating
873 fabric_storage_pool_quota:
874 aliases: ['fabric-storage-pool-quota']
875 type: int
876 description: Disk quota for Fabric
877 fabric_storage_pool_size:
878 aliases: ['fabric-storage-pool-size']
879 type: int
880 description: Max storage pooll size
881 fcp_cfg_service:
882 aliases: ['fcp-cfg-service']
883 type: str
884 description:
885 - Enable/disable FCP service processing configuration requests
886 - disable - FCP service doesn't process configuration requests from web
887 - enable - FCP service processes configuration requests from web.
888 choices: ['disable', 'enable']
889 jsonapi_log:
890 aliases: ['jsonapi-log']
891 type: str
892 description:
893 - enable jsonapi log.
894 - disable - disable jsonapi log.
895 - request - logging jsonapi request.
896 - response - logging jsonapi response.
897 - all - logging both jsonapi request & response.
898 choices: ['disable', 'request', 'response', 'all']
899 global_ssl_protocol:
900 aliases: ['global-ssl-protocol']
901 type: str
902 description:
903 - set the lowest SSL protocol version for all SSL connections.
904 - sslv3 - set SSLv3 as the lowest version.
905 - tlsv1.
906 - tlsv1.
907 - tlsv1.
908 - tlsv1.
909 choices: ['sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2', 'tlsv1.3']
910 httpd_ssl_protocol:
911 aliases: ['httpd-ssl-protocol']
912 type: list
913 elements: str
914 description:
915 - set SSL protocols for apache daemon
916 - sslv3 - Enable SSLv3.
917 - tlsv1.
918 - tlsv1.
919 - tlsv1.
920 - tlsv1.
921 choices: ['sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2', 'tlsv1.3']
922 mapclient_ssl_protocol:
923 aliases: ['mapclient-ssl-protocol']
924 type: str
925 description:
926 - set the lowest SSL protocol version for connection to mapserver.
927 - follow-global-ssl-protocol - Follow system.
928 - sslv3 - set SSLv3 as the lowest version.
929 - tlsv1.
930 - tlsv1.
931 - tlsv1.
932 - tlsv1.
933 choices: ['follow-global-ssl-protocol', 'sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2',
934 'tlsv1.3']
935 apache_wsgi_processes:
936 aliases: ['apache-wsgi-processes']
937 type: int
938 description: Apache wsgi processes.
939 fmg_fabric_port:
940 aliases: ['fmg-fabric-port']
941 type: int
942 description: Fmg fabric port.
943 gui_feature_visibility_mode:
944 aliases: ['gui-feature-visibility-mode']
945 type: str
946 description: Gui feature visibility mode.
947 choices: ['per-adom', 'per-admin']
948 storage_age_limit:
949 aliases: ['storage-age-limit']
950 type: int
951 description: Storage age limit.
952 fgfm_allow_vm:
953 aliases: ['fgfm-allow-vm']
954 type: str
955 description:
956 - Enable/disable VM platform FGFM connect restriction.
957 - disable - Don't allow VM platform connection in FGFM.
958 - enable - Allow VM platform connection in FGFM.
959 choices: ['disable', 'enable']
960 hitcount_response_timeout:
961 aliases: ['hitcount-response-timeout']
962 type: int
963 description: Timeout of waiting for hitcount response
964 rpc_log:
965 aliases: ['rpc-log']
966 type: str
967 description:
968 - Enable/Disable incoming/outgoing rpc log.
969 - disable - Disable rpc log.
970 - enable - Enable rpc log
971 choices: ['disable', 'enable']
972 auth_dev_restapi_allowlist:
973 aliases: ['auth-dev-restapi-allowlist']
974 type: str
975 description: Auth dev restapi allowlist.
976 choices: ['disable', 'enable']
977 gui_install_preview_concurrency:
978 aliases: ['gui-install-preview-concurrency']
979 type: int
980 description: Set the maximum number of devices to be processed in a single GUI install preview request
981 fgfm_allow_products:
982 aliases: ['fgfm-allow-products']
983 type: str
984 description: Set the additional products that FMG can manage it by fgfm.
985 cli_auth:
986 aliases: ['cli-auth']
987 type: str
988 description: Cli auth.
989 choices: ['disable', 'enable']
990 debug_tool:
991 aliases: ['debug-tool']
992 type: str
993 description: Debug tool.
994 choices: ['disable', 'enable']
995 skip_ip_check_in_session:
996 aliases: ['skip-ip-check-in-session']
997 type: str
998 description: Skip ip check in session.
999 choices: ['disable', 'enable']
1000 '''
1001
1002 EXAMPLES = '''
1003 - name: Example playbook
1004 hosts: fortimanagers
1005 gather_facts: false
1006 connection: httpapi
1007 vars:
1008 ansible_httpapi_use_ssl: true
1009 ansible_httpapi_validate_certs: false
1010 ansible_httpapi_port: 443
1011 tasks:
1012 - name: Enable workspace mode
1013 fortinet.fortimanager.fmgr_system_global:
1014 system_global:
1015 adom_status: enable
1016 workspace_mode: normal
1017
1018 - name: Script table.
1019 fortinet.fortimanager.fmgr_dvmdb_script:
1020 bypass_validation: false
1021 adom: root
1022 state: present
1023 workspace_locking_adom: "root"
1024 dvmdb_script:
1025 content: "ansible-test"
1026 name: "fooscript000"
1027 target: device_database
1028 type: cli
1029
1030 - name: Verify script table
1031 fortinet.fortimanager.fmgr_fact:
1032 facts:
1033 selector: "dvmdb_script"
1034 params:
1035 adom: "root"
1036 script: "fooscript000"
1037 register: info
1038 failed_when: info.meta.response_code != 0
1039
1040 - name: Restore workspace mode
1041 fortinet.fortimanager.fmgr_system_global:
1042 system_global:
1043 adom_status: enable
1044 workspace_mode: disabled
1045 '''
1046
1047 RETURN = '''
1048 meta:
1049 description: The result of the request.
1050 type: dict
1051 returned: always
1052 contains:
1053 request_url:
1054 description: The full url requested.
1055 returned: always
1056 type: str
1057 sample: /sys/login/user
1058 response_code:
1059 description: The status of api request.
1060 returned: always
1061 type: int
1062 sample: 0
1063 response_data:
1064 description: The api response.
1065 type: list
1066 returned: always
1067 response_message:
1068 description: The descriptive message of the api response.
1069 type: str
1070 returned: always
1071 sample: OK.
1072 system_information:
1073 description: The information of the target system.
1074 type: dict
1075 returned: always
1076 rc:
1077 description: The status the request.
1078 type: int
1079 returned: always
1080 sample: 0
1081 version_check_warning:
1082 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
1083 type: list
1084 returned: complex
1085 '''
1086 from ansible.module_utils.basic import AnsibleModule
1087 from ansible.module_utils.connection import Connection
1088 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
1089 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
1090
1091
1092 def main():
1093 urls_list = [
1094 '/cli/global/system/global'
1095 ]
1096 module_arg_spec = {
1097 'system_global': {
1098 'type': 'dict', 'v_range': [['6.0.0', '']],
1099 'options': {
1100 'admin-lockout-duration': {'type': 'int'},
1101 'admin-lockout-threshold': {'type': 'int'},
1102 'adom-mode': {'choices': ['normal', 'advanced'], 'type': 'str'},
1103 'adom-rev-auto-delete': {'choices': ['disable', 'by-revisions', 'by-days'], 'type': 'str'},
1104 'adom-rev-max-backup-revisions': {'type': 'int'},
1105 'adom-rev-max-days': {'type': 'int'},
1106 'adom-rev-max-revisions': {'type': 'int'},
1107 'adom-select': {'choices': ['disable', 'enable'], 'type': 'str'},
1108 'adom-status': {'choices': ['disable', 'enable'], 'type': 'str'},
1109 'clt-cert-req': {'choices': ['disable', 'enable', 'optional'], 'type': 'str'},
1110 'console-output': {'choices': ['standard', 'more'], 'type': 'str'},
1111 'country-flag': {'choices': ['disable', 'enable'], 'type': 'str'},
1112 'create-revision': {'choices': ['disable', 'enable'], 'type': 'str'},
1113 'daylightsavetime': {'choices': ['disable', 'enable'], 'type': 'str'},
1114 'default-disk-quota': {'v_range': [['6.0.0', '6.2.0']], 'type': 'int'},
1115 'detect-unregistered-log-device': {'choices': ['disable', 'enable'], 'type': 'str'},
1116 'device-view-mode': {'choices': ['regular', 'tree'], 'type': 'str'},
1117 'dh-params': {'choices': ['1024', '1536', '2048', '3072', '4096', '6144', '8192'], 'type': 'str'},
1118 'disable-module': {
1119 'type': 'list',
1120 'choices': ['fortiview-noc', 'none', 'fortirecorder', 'siem', 'soc', 'ai', 'safeguard-mv'],
1121 'elements': 'str'
1122 },
1123 'enc-algorithm': {'choices': ['low', 'medium', 'high', 'custom'], 'type': 'str'},
1124 'faz-status': {'choices': ['disable', 'enable'], 'type': 'str'},
1125 'fgfm-local-cert': {'type': 'str'},
1126 'fgfm-ssl-protocol': {'choices': ['sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2', 'tlsv1.3', 'follow-global-ssl-protocol'], 'type': 'str'},
1127 'ha-member-auto-grouping': {'choices': ['disable', 'enable'], 'type': 'str'},
1128 'hitcount_concurrent': {'v_range': [['6.0.0', '6.4.2']], 'type': 'int'},
1129 'hitcount_interval': {'v_range': [['6.0.0', '6.4.2']], 'type': 'int'},
1130 'hostname': {'type': 'str'},
1131 'import-ignore-addr-cmt': {'choices': ['disable', 'enable'], 'type': 'str'},
1132 'language': {'choices': ['english', 'simch', 'japanese', 'korean', 'spanish', 'trach'], 'type': 'str'},
1133 'latitude': {'type': 'str'},
1134 'ldap-cache-timeout': {'type': 'int'},
1135 'ldapconntimeout': {'type': 'int'},
1136 'lock-preempt': {'choices': ['disable', 'enable'], 'type': 'str'},
1137 'log-checksum': {'choices': ['none', 'md5', 'md5-auth'], 'type': 'str'},
1138 'log-forward-cache-size': {'type': 'int'},
1139 'longitude': {'type': 'str'},
1140 'max-log-forward': {'type': 'int'},
1141 'max-running-reports': {'type': 'int'},
1142 'oftp-ssl-protocol': {'choices': ['sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2', 'tlsv1.3'], 'type': 'str'},
1143 'partial-install': {'choices': ['disable', 'enable'], 'type': 'str'},
1144 'partial-install-force': {'choices': ['disable', 'enable'], 'type': 'str'},
1145 'partial-install-rev': {'choices': ['disable', 'enable'], 'type': 'str'},
1146 'perform-improve-by-ha': {'choices': ['disable', 'enable'], 'type': 'str'},
1147 'policy-hit-count': {'v_range': [['6.0.0', '6.4.2']], 'choices': ['disable', 'enable'], 'type': 'str'},
1148 'policy-object-in-dual-pane': {'choices': ['disable', 'enable'], 'type': 'str'},
1149 'pre-login-banner': {'choices': ['disable', 'enable'], 'type': 'str'},
1150 'pre-login-banner-message': {'type': 'str'},
1151 'remoteauthtimeout': {'type': 'int'},
1152 'search-all-adoms': {'choices': ['disable', 'enable'], 'type': 'str'},
1153 'ssl-low-encryption': {'choices': ['disable', 'enable'], 'type': 'str'},
1154 'ssl-protocol': {
1155 'v_range': [['6.0.0', '7.4.3'], ['7.6.0', '7.6.1']],
1156 'type': 'list',
1157 'choices': ['tlsv1.2', 'tlsv1.1', 'tlsv1.0', 'sslv3', 'tlsv1.3'],
1158 'elements': 'str'
1159 },
1160 'ssl-static-key-ciphers': {'choices': ['disable', 'enable'], 'type': 'str'},
1161 'task-list-size': {'type': 'int'},
1162 'tftp': {'choices': ['disable', 'enable'], 'type': 'str'},
1163 'timezone': {
1164 'choices': [
1165 '00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
1166 '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41',
1167 '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62',
1168 '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83',
1169 '84', '85', '86', '87', '88', '89', '90', '91'
1170 ],
1171 'type': 'str'
1172 },
1173 'tunnel-mtu': {'type': 'int'},
1174 'usg': {'choices': ['disable', 'enable'], 'type': 'str'},
1175 'vdom-mirror': {'choices': ['disable', 'enable'], 'type': 'str'},
1176 'webservice-proto': {
1177 'v_range': [['6.0.0', '7.6.4']],
1178 'type': 'list',
1179 'choices': ['tlsv1.2', 'tlsv1.1', 'tlsv1.0', 'sslv3', 'sslv2', 'tlsv1.3'],
1180 'elements': 'str'
1181 },
1182 'workflow-max-sessions': {'type': 'int'},
1183 'workspace-mode': {'choices': ['disabled', 'normal', 'workflow', 'per-adom'], 'type': 'str'},
1184 'clone-name-option': {'v_range': [['6.2.2', '']], 'choices': ['default', 'keep'], 'type': 'str'},
1185 'fgfm-ca-cert': {'v_range': [['6.2.3', '']], 'type': 'str'},
1186 'mc-policy-disabled-adoms': {
1187 'v_range': [['6.2.3', '']],
1188 'type': 'list',
1189 'options': {'adom-name': {'v_range': [['6.2.3', '']], 'type': 'str'}},
1190 'elements': 'dict'
1191 },
1192 'policy-object-icon': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1193 'private-data-encryption': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1194 'per-policy-lock': {'v_range': [['6.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1195 'multiple-steps-upgrade-in-autolink': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1196 'object-revision-db-max': {'v_range': [['7.0.0', '']], 'type': 'int'},
1197 'object-revision-mandatory-note': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1198 'object-revision-object-max': {'v_range': [['7.0.0', '']], 'type': 'int'},
1199 'object-revision-status': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1200 'normalized-intf-zone-only': {'v_range': [['6.4.7', '6.4.15'], ['7.0.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1201 'ssl-cipher-suites': {
1202 'v_range': [['6.4.8', '6.4.15'], ['7.0.2', '']],
1203 'type': 'list',
1204 'options': {
1205 'cipher': {'v_range': [['6.4.8', '6.4.15'], ['7.0.2', '']], 'type': 'str'},
1206 'priority': {'v_range': [['6.4.8', '6.4.15'], ['7.0.2', '']], 'type': 'int'},
1207 'version': {'v_range': [['6.4.8', '6.4.15'], ['7.0.2', '']], 'choices': ['tls1.2-or-below', 'tls1.3'], 'type': 'str'}
1208 },
1209 'elements': 'dict'
1210 },
1211 'gui-curl-timeout': {'v_range': [['6.4.11', '6.4.15'], ['7.0.7', '7.0.16'], ['7.2.2', '']], 'type': 'int'},
1212 'fgfm-cert-exclusive': {
1213 'v_range': [['6.4.15', '6.4.15'], ['7.0.12', '7.0.16'], ['7.2.2', '']],
1214 'choices': ['disable', 'enable'],
1215 'type': 'str'
1216 },
1217 'fgfm-deny-unknown': {
1218 'v_range': [['6.4.15', '6.4.15'], ['7.0.12', '7.0.16'], ['7.2.5', '7.2.12'], ['7.4.3', '']],
1219 'choices': ['disable', 'enable'],
1220 'type': 'str'
1221 },
1222 'fgfm-peercert-withoutsn': {
1223 'v_range': [['6.4.15', '6.4.15'], ['7.0.12', '7.0.16'], ['7.2.5', '7.2.9'], ['7.4.3', '7.4.5'], ['7.6.0', '7.6.1']],
1224 'choices': ['disable', 'enable'],
1225 'type': 'str'
1226 },
1227 'table-entry-blink': {'v_range': [['7.0.4', '7.0.16'], ['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1228 'contentpack-fgt-install': {'v_range': [['7.0.5', '7.0.16'], ['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1229 'gui-polling-interval': {'v_range': [['7.0.5', '7.0.16'], ['7.2.1', '']], 'type': 'int'},
1230 'no-copy-permission-check': {'v_range': [['7.0.8', '7.0.16'], ['7.2.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1231 'ssh-enc-algo': {
1232 'v_range': [['7.0.11', '7.0.16'], ['7.2.5', '7.2.12'], ['7.4.2', '']],
1233 'type': 'list',
1234 'choices': [
1235 '[email protected]', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'arcfour256', 'arcfour128', 'aes128-cbc', '3des-cbc',
1236 'blowfish-cbc', 'cast128-cbc', 'aes192-cbc', 'aes256-cbc', 'arcfour', '[email protected]', '[email protected]',
1237 '[email protected]'
1238 ],
1239 'elements': 'str'
1240 },
1241 'ssh-hostkey-algo': {
1242 'v_range': [['7.0.11', '7.0.16'], ['7.2.5', '7.2.12'], ['7.4.2', '']],
1243 'type': 'list',
1244 'choices': ['ssh-rsa', 'ecdsa-sha2-nistp521', 'rsa-sha2-256', 'rsa-sha2-512', 'ssh-ed25519'],
1245 'elements': 'str'
1246 },
1247 'ssh-kex-algo': {
1248 'v_range': [['7.0.11', '7.0.16'], ['7.2.5', '7.2.12'], ['7.4.2', '']],
1249 'type': 'list',
1250 'choices': [
1251 'diffie-hellman-group1-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group14-sha256', 'diffie-hellman-group16-sha512',
1252 'diffie-hellman-group18-sha512', 'diffie-hellman-group-exchange-sha1', 'diffie-hellman-group-exchange-sha256',
1253 '[email protected]', 'ecdh-sha2-nistp256', 'ecdh-sha2-nistp384', 'ecdh-sha2-nistp521'
1254 ],
1255 'elements': 'str'
1256 },
1257 'ssh-mac-algo': {
1258 'v_range': [['7.0.11', '7.0.16'], ['7.2.5', '7.2.12'], ['7.4.2', '']],
1259 'type': 'list',
1260 'choices': [
1261 'hmac-md5', '[email protected]', 'hmac-md5-96', '[email protected]', 'hmac-sha1', '[email protected]',
1262 'hmac-sha2-256', '[email protected]', 'hmac-sha2-512', '[email protected]', 'hmac-ripemd160',
1263 '[email protected]', '[email protected]', '[email protected]', '[email protected]',
1264 '[email protected]', '[email protected]'
1265 ],
1266 'elements': 'str'
1267 },
1268 'ssh-strong-crypto': {
1269 'v_range': [['7.0.11', '7.0.16'], ['7.2.5', '7.2.12'], ['7.4.2', '7.6.3']],
1270 'choices': ['disable', 'enable'],
1271 'type': 'str'
1272 },
1273 'admin-lockout-method': {'v_range': [['7.2.2', '']], 'choices': ['ip', 'user'], 'type': 'str'},
1274 'workspace-unlock-after-install': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1275 'log-checksum-upload': {'v_range': [['7.2.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1276 'apache-mode': {'v_range': [['7.2.4', '7.2.12'], ['7.4.1', '']], 'choices': ['event', 'prefork'], 'type': 'str'},
1277 'no-vip-value-check': {'v_range': [['7.2.4', '7.2.12'], ['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1278 'fortiservice-port': {'v_range': [['7.4.1', '']], 'type': 'int'},
1279 'management-ip': {'v_range': [['7.4.1', '']], 'type': 'str'},
1280 'management-port': {'v_range': [['7.4.1', '']], 'type': 'int'},
1281 'save-last-hit-in-adomdb': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1282 'api-ip-binding': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1283 'admin-host': {'v_range': [['7.4.4', '']], 'type': 'str'},
1284 'admin-ssh-grace-time': {'v_range': [['7.2.6', '7.2.12'], ['7.4.4', '']], 'type': 'int'},
1285 'fabric-storage-pool-quota': {'v_range': [['7.6.0', '']], 'type': 'int'},
1286 'fabric-storage-pool-size': {'v_range': [['7.6.0', '']], 'type': 'int'},
1287 'fcp-cfg-service': {'v_range': [['7.2.6', '7.2.12'], ['7.4.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1288 'jsonapi-log': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'request', 'response', 'all'], 'type': 'str'},
1289 'global-ssl-protocol': {
1290 'v_range': [['7.4.4', '7.4.10'], ['7.6.2', '']],
1291 'choices': ['sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2', 'tlsv1.3'],
1292 'type': 'str'
1293 },
1294 'httpd-ssl-protocol': {
1295 'v_range': [['7.4.4', '7.4.10'], ['7.6.2', '']],
1296 'type': 'list',
1297 'choices': ['sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2', 'tlsv1.3'],
1298 'elements': 'str'
1299 },
1300 'mapclient-ssl-protocol': {
1301 'v_range': [['7.4.4', '7.4.10'], ['7.6.2', '']],
1302 'choices': ['follow-global-ssl-protocol', 'sslv3', 'tlsv1.0', 'tlsv1.1', 'tlsv1.2', 'tlsv1.3'],
1303 'type': 'str'
1304 },
1305 'apache-wsgi-processes': {'v_range': [['7.2.10', '7.2.12'], ['7.4.6', '7.4.10'], ['7.6.2', '']], 'type': 'int'},
1306 'fmg-fabric-port': {'v_range': [['7.6.2', '']], 'type': 'int'},
1307 'gui-feature-visibility-mode': {'v_range': [['7.4.7', '7.4.10'], ['7.6.2', '']], 'choices': ['per-adom', 'per-admin'], 'type': 'str'},
1308 'storage-age-limit': {'v_range': [['7.6.2', '']], 'type': 'int'},
1309 'fgfm-allow-vm': {'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1310 'hitcount-response-timeout': {'v_range': [['7.4.7', '7.4.10'], ['7.6.4', '']], 'type': 'int'},
1311 'rpc-log': {'v_range': [['7.4.7', '7.4.10'], ['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1312 'auth-dev-restapi-allowlist': {'v_range': [['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1313 'gui-install-preview-concurrency': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'int'},
1314 'fgfm-allow-products': {'v_range': [['7.4.9', '7.4.10'], ['7.6.5', '']], 'type': 'str'},
1315 'cli-auth': {'v_range': [['7.6.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1316 'debug-tool': {'v_range': [['7.6.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1317 'skip-ip-check-in-session': {'v_range': [['7.6.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1318 }
1319 }
1320 }
1321
1322 module_option_spec = get_module_arg_spec('partial crud')
1323 module_arg_spec.update(module_option_spec)
1324 check_galaxy_version(module_arg_spec)
1325 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'system_global'),
1326 supports_check_mode=True)
1327 if not module._socket_path:
1328 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
1329 connection = Connection(module._socket_path)
1330 fmgr = NAPIManager('partial crud', module_arg_spec, urls_list,
1331 None, 'data', module, connection)
1332 fmgr.process_partial_crud()
1333 module.exit_json(meta=module.params)
1334
1335
1336 if __name__ == '__main__':
1337 main()