Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_fortiguard.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_fortiguard
15 short_description: Configure FortiGuard services.
16 version_added: "2.0.0"
17 extends_documentation_fragment:
18 - fortinet.fortimanager.general
19 - fortinet.fortimanager.general.partial_crud
20 options:
21 revision_note:
22 description: The change note that can be specified when an object is created or updated.
23 type: str
24 adom:
25 description: The parameter (adom) in requested url.
26 type: str
27 required: true
28 system_fortiguard:
29 description: The top level parameters set.
30 required: false
31 type: dict
32 suboptions:
33 antispam_cache:
34 aliases: ['antispam-cache']
35 type: str
36 description: Enable/disable FortiGuard antispam request caching.
37 choices: ['disable', 'enable']
38 antispam_cache_mpercent:
39 aliases: ['antispam-cache-mpercent']
40 type: int
41 description: Maximum percent of FortiGate memory the antispam cache is allowed to use
42 antispam_cache_ttl:
43 aliases: ['antispam-cache-ttl']
44 type: int
45 description: Time-to-live for antispam cache entries in seconds
46 antispam_expiration:
47 aliases: ['antispam-expiration']
48 type: int
49 description: Antispam expiration.
50 antispam_force_off:
51 aliases: ['antispam-force-off']
52 type: str
53 description: Enable/disable turning off the FortiGuard antispam service.
54 choices: ['disable', 'enable']
55 antispam_license:
56 aliases: ['antispam-license']
57 type: int
58 description: Antispam license.
59 antispam_timeout:
60 aliases: ['antispam-timeout']
61 type: int
62 description: Antispam query time out
63 auto_join_forticloud:
64 aliases: ['auto-join-forticloud']
65 type: str
66 description: Automatically connect to and login to FortiCloud.
67 choices: ['disable', 'enable']
68 ddns_server_ip:
69 aliases: ['ddns-server-ip']
70 type: str
71 description: IP address of the FortiDDNS server.
72 ddns_server_port:
73 aliases: ['ddns-server-port']
74 type: int
75 description: Port used to communicate with FortiDDNS servers.
76 load_balance_servers:
77 aliases: ['load-balance-servers']
78 type: int
79 description: Number of servers to alternate between as first FortiGuard option.
80 outbreak_prevention_cache:
81 aliases: ['outbreak-prevention-cache']
82 type: str
83 description: Enable/disable FortiGuard Virus Outbreak Prevention cache.
84 choices: ['disable', 'enable']
85 outbreak_prevention_cache_mpercent:
86 aliases: ['outbreak-prevention-cache-mpercent']
87 type: int
88 description: Maximum percent of memory FortiGuard Virus Outbreak Prevention cache can use
89 outbreak_prevention_cache_ttl:
90 aliases: ['outbreak-prevention-cache-ttl']
91 type: int
92 description: Time-to-live for FortiGuard Virus Outbreak Prevention cache entries
93 outbreak_prevention_expiration:
94 aliases: ['outbreak-prevention-expiration']
95 type: int
96 description: Outbreak prevention expiration.
97 outbreak_prevention_force_off:
98 aliases: ['outbreak-prevention-force-off']
99 type: str
100 description: Turn off FortiGuard Virus Outbreak Prevention service.
101 choices: ['disable', 'enable']
102 outbreak_prevention_license:
103 aliases: ['outbreak-prevention-license']
104 type: int
105 description: Outbreak prevention license.
106 outbreak_prevention_timeout:
107 aliases: ['outbreak-prevention-timeout']
108 type: int
109 description: FortiGuard Virus Outbreak Prevention time out
110 port:
111 type: str
112 description: Port used to communicate with the FortiGuard servers.
113 choices: ['53', '80', '8888', '443']
114 sdns_server_ip:
115 aliases: ['sdns-server-ip']
116 type: raw
117 description: (list) IP address of the FortiDNS server.
118 sdns_server_port:
119 aliases: ['sdns-server-port']
120 type: int
121 description: Port used to communicate with FortiDNS servers.
122 service_account_id:
123 aliases: ['service-account-id']
124 type: str
125 description: Service account ID.
126 source_ip:
127 aliases: ['source-ip']
128 type: str
129 description: Source IPv4 address used to communicate with FortiGuard.
130 source_ip6:
131 aliases: ['source-ip6']
132 type: str
133 description: Source IPv6 address used to communicate with FortiGuard.
134 update_server_location:
135 aliases: ['update-server-location']
136 type: str
137 description: Signature update server location.
138 choices: ['any', 'usa', 'automatic', 'eu']
139 webfilter_cache:
140 aliases: ['webfilter-cache']
141 type: str
142 description: Enable/disable FortiGuard web filter caching.
143 choices: ['disable', 'enable']
144 webfilter_cache_ttl:
145 aliases: ['webfilter-cache-ttl']
146 type: int
147 description: Time-to-live for web filter cache entries in seconds
148 webfilter_expiration:
149 aliases: ['webfilter-expiration']
150 type: int
151 description: Webfilter expiration.
152 webfilter_force_off:
153 aliases: ['webfilter-force-off']
154 type: str
155 description: Enable/disable turning off the FortiGuard web filtering service.
156 choices: ['disable', 'enable']
157 webfilter_license:
158 aliases: ['webfilter-license']
159 type: int
160 description: Webfilter license.
161 webfilter_timeout:
162 aliases: ['webfilter-timeout']
163 type: int
164 description: Web filter query time out
165 protocol:
166 type: str
167 description: Protocol used to communicate with the FortiGuard servers.
168 choices: ['udp', 'http', 'https']
169 proxy_password:
170 aliases: ['proxy-password']
171 type: raw
172 description: (list) Proxy user password.
173 proxy_server_ip:
174 aliases: ['proxy-server-ip']
175 type: str
176 description: IP address of the proxy server.
177 proxy_server_port:
178 aliases: ['proxy-server-port']
179 type: int
180 description: Port used to communicate with the proxy server.
181 proxy_username:
182 aliases: ['proxy-username']
183 type: str
184 description: Proxy user name.
185 sandbox_region:
186 aliases: ['sandbox-region']
187 type: str
188 description: Cloud sandbox region.
189 avquery_cache_ttl:
190 aliases: ['avquery-cache-ttl']
191 type: int
192 description: Time-to-live for antivirus cache entries
193 avquery_timeout:
194 aliases: ['avquery-timeout']
195 type: int
196 description: Antivirus query time out
197 avquery_cache:
198 aliases: ['avquery-cache']
199 type: str
200 description: Enable/disable the FortiGuard antivirus cache.
201 choices: ['disable', 'enable']
202 avquery_cache_mpercent:
203 aliases: ['avquery-cache-mpercent']
204 type: int
205 description: Maximum percent of memory the antivirus cache can use
206 avquery_license:
207 aliases: ['avquery-license']
208 type: int
209 description: Interval of time between license checks for the FortiGuard antivirus contract.
210 avquery_force_off:
211 aliases: ['avquery-force-off']
212 type: str
213 description: Turn off the FortiGuard antivirus service.
214 choices: ['disable', 'enable']
215 fortiguard_anycast:
216 aliases: ['fortiguard-anycast']
217 type: str
218 description: Enable/disable use of FortiGuards anycast network.
219 choices: ['disable', 'enable']
220 fortiguard_anycast_source:
221 aliases: ['fortiguard-anycast-source']
222 type: str
223 description: Configure which of Fortinets servers to provide FortiGuard services in FortiGuards anycast network.
224 choices: ['fortinet', 'aws', 'debug']
225 interface:
226 type: str
227 description: Specify outgoing interface to reach server.
228 interface_select_method:
229 aliases: ['interface-select-method']
230 type: str
231 description: Specify how to select outgoing interface to reach server.
232 choices: ['auto', 'sdwan', 'specify']
233 sdns_options:
234 aliases: ['sdns-options']
235 type: list
236 elements: str
237 description: Customization options for the FortiGuard DNS service.
238 choices: ['include-question-section']
239 anycast_sdns_server_ip:
240 aliases: ['anycast-sdns-server-ip']
241 type: str
242 description: IP address of the FortiGuard anycast DNS rating server.
243 anycast_sdns_server_port:
244 aliases: ['anycast-sdns-server-port']
245 type: int
246 description: Port to connect to on the FortiGuard anycast DNS rating server.
247 persistent_connection:
248 aliases: ['persistent-connection']
249 type: str
250 description: Enable/disable use of persistent connection to receive update notification from FortiGuard.
251 choices: ['disable', 'enable']
252 update_build_proxy:
253 aliases: ['update-build-proxy']
254 type: str
255 description: Enable/disable proxy dictionary rebuild.
256 choices: ['disable', 'enable']
257 update_extdb:
258 aliases: ['update-extdb']
259 type: str
260 description: Enable/disable external resource update.
261 choices: ['disable', 'enable']
262 update_ffdb:
263 aliases: ['update-ffdb']
264 type: str
265 description: Enable/disable Internet Service Database update.
266 choices: ['disable', 'enable']
267 update_uwdb:
268 aliases: ['update-uwdb']
269 type: str
270 description: Enable/disable allowlist update.
271 choices: ['disable', 'enable']
272 videofilter_expiration:
273 aliases: ['videofilter-expiration']
274 type: int
275 description: Videofilter expiration.
276 videofilter_license:
277 aliases: ['videofilter-license']
278 type: int
279 description: Videofilter license.
280 ddns_server_ip6:
281 aliases: ['ddns-server-ip6']
282 type: str
283 description: IPv6 address of the FortiDDNS server.
284 vdom:
285 type: str
286 description: FortiGuard Service virtual domain name.
287 auto_firmware_upgrade:
288 aliases: ['auto-firmware-upgrade']
289 type: str
290 description: Enable/disable automatic patch-level firmware upgrade from FortiGuard.
291 choices: ['disable', 'enable']
292 auto_firmware_upgrade_day:
293 aliases: ['auto-firmware-upgrade-day']
294 type: list
295 elements: str
296 description: Allowed day
297 choices: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday',
298 'saturday']
299 auto_firmware_upgrade_end_hour:
300 aliases: ['auto-firmware-upgrade-end-hour']
301 type: int
302 description: End time in the designated time window for automatic patch-level firmware upgrade from FortiGuard in 24 hour time
303 auto_firmware_upgrade_start_hour:
304 aliases: ['auto-firmware-upgrade-start-hour']
305 type: int
306 description: Start time in the designated time window for automatic patch-level firmware upgrade from FortiGuard in 24 hour time
307 sandbox_inline_scan:
308 aliases: ['sandbox-inline-scan']
309 type: str
310 description: Enable/disable FortiCloud Sandbox inline-scan.
311 choices: ['disable', 'enable']
312 auto_firmware_upgrade_delay:
313 aliases: ['auto-firmware-upgrade-delay']
314 type: int
315 description: Delay of day
316 gui_prompt_auto_upgrade:
317 aliases: ['gui-prompt-auto-upgrade']
318 type: str
319 description: Enable/disable prompting of automatic patch-level firmware upgrade recommendation.
320 choices: ['disable', 'enable']
321 FDS_license_expiring_days:
322 aliases: ['FDS-license-expiring-days']
323 type: int
324 description: Threshold for number of days before FortiGuard license expiration to generate license expiring event log
325 antispam_cache_mpermille:
326 aliases: ['antispam-cache-mpermille']
327 type: int
328 description: Maximum permille of FortiGate memory the antispam cache is allowed to use
329 outbreak_prevention_cache_mpermille:
330 aliases: ['outbreak-prevention-cache-mpermille']
331 type: int
332 description: Maximum permille of memory FortiGuard Virus Outbreak Prevention cache can use
333 update_dldb:
334 aliases: ['update-dldb']
335 type: str
336 description: Enable/disable DLP signature update.
337 choices: ['disable', 'enable']
338 vrf_select:
339 aliases: ['vrf-select']
340 type: int
341 description: VRF ID used for connection to server.
342 subscribe_update_notification:
343 aliases: ['subscribe-update-notification']
344 type: str
345 description: Enable/disable subscription to receive update notification from FortiGuard.
346 choices: ['disable', 'enable']
347 dlp_expiration:
348 aliases: ['dlp-expiration']
349 type: int
350 description: Dlp expiration.
351 dlp_license:
352 aliases: ['dlp-license']
353 type: int
354 description: Dlp license.
355 fnbi_expiration:
356 aliases: ['fnbi-expiration']
357 type: int
358 description: Fnbi expiration.
359 fnbi_license:
360 aliases: ['fnbi-license']
361 type: int
362 description: Fnbi license.
363 ia_expiration:
364 aliases: ['ia-expiration']
365 type: int
366 description: Ia expiration.
367 ia_license:
368 aliases: ['ia-license']
369 type: int
370 description: Ia license.
371 '''
372
373 EXAMPLES = '''
374 - name: Example playbook (generated based on argument schema)
375 hosts: fortimanagers
376 connection: httpapi
377 gather_facts: false
378 tasks:
379 - name: Configure FortiGuard services.
380 fortinet.fortimanager.fmgr_system_fortiguard:
381 # workspace_locking_adom: <global or your adom name>
382 adom: <your own value>
383 system_fortiguard:
384 # antispam_cache: <value in [disable, enable]>
385 # antispam_cache_mpercent: <integer>
386 # antispam_cache_ttl: <integer>
387 # antispam_expiration: <integer>
388 # antispam_force_off: <value in [disable, enable]>
389 # antispam_license: <integer>
390 # antispam_timeout: <integer>
391 # auto_join_forticloud: <value in [disable, enable]>
392 # ddns_server_ip: <string>
393 # ddns_server_port: <integer>
394 # load_balance_servers: <integer>
395 # outbreak_prevention_cache: <value in [disable, enable]>
396 # outbreak_prevention_cache_mpercent: <integer>
397 # outbreak_prevention_cache_ttl: <integer>
398 # outbreak_prevention_expiration: <integer>
399 # outbreak_prevention_force_off: <value in [disable, enable]>
400 # outbreak_prevention_license: <integer>
401 # outbreak_prevention_timeout: <integer>
402 # port: <value in [53, 80, 8888, ...]>
403 # sdns_server_ip: <list or string>
404 # sdns_server_port: <integer>
405 # service_account_id: <string>
406 # source_ip: <string>
407 # source_ip6: <string>
408 # update_server_location: <value in [any, usa, automatic, ...]>
409 # webfilter_cache: <value in [disable, enable]>
410 # webfilter_cache_ttl: <integer>
411 # webfilter_expiration: <integer>
412 # webfilter_force_off: <value in [disable, enable]>
413 # webfilter_license: <integer>
414 # webfilter_timeout: <integer>
415 # protocol: <value in [udp, http, https]>
416 # proxy_password: <list or string>
417 # proxy_server_ip: <string>
418 # proxy_server_port: <integer>
419 # proxy_username: <string>
420 # sandbox_region: <string>
421 # avquery_cache_ttl: <integer>
422 # avquery_timeout: <integer>
423 # avquery_cache: <value in [disable, enable]>
424 # avquery_cache_mpercent: <integer>
425 # avquery_license: <integer>
426 # avquery_force_off: <value in [disable, enable]>
427 # fortiguard_anycast: <value in [disable, enable]>
428 # fortiguard_anycast_source: <value in [fortinet, aws, debug]>
429 # interface: <string>
430 # interface_select_method: <value in [auto, sdwan, specify]>
431 # sdns_options: ["include-question-section"]
432 # anycast_sdns_server_ip: <string>
433 # anycast_sdns_server_port: <integer>
434 # persistent_connection: <value in [disable, enable]>
435 # update_build_proxy: <value in [disable, enable]>
436 # update_extdb: <value in [disable, enable]>
437 # update_ffdb: <value in [disable, enable]>
438 # update_uwdb: <value in [disable, enable]>
439 # videofilter_expiration: <integer>
440 # videofilter_license: <integer>
441 # ddns_server_ip6: <string>
442 # vdom: <string>
443 # auto_firmware_upgrade: <value in [disable, enable]>
444 # auto_firmware_upgrade_day: ["sunday", "monday", "tuesday", "wednesday", "thursday",
445 # "friday", "saturday"]
446 # auto_firmware_upgrade_end_hour: <integer>
447 # auto_firmware_upgrade_start_hour: <integer>
448 # sandbox_inline_scan: <value in [disable, enable]>
449 # auto_firmware_upgrade_delay: <integer>
450 # gui_prompt_auto_upgrade: <value in [disable, enable]>
451 # FDS_license_expiring_days: <integer>
452 # antispam_cache_mpermille: <integer>
453 # outbreak_prevention_cache_mpermille: <integer>
454 # update_dldb: <value in [disable, enable]>
455 # vrf_select: <integer>
456 # subscribe_update_notification: <value in [disable, enable]>
457 # dlp_expiration: <integer>
458 # dlp_license: <integer>
459 # fnbi_expiration: <integer>
460 # fnbi_license: <integer>
461 # ia_expiration: <integer>
462 # ia_license: <integer>
463 '''
464
465 RETURN = '''
466 meta:
467 description: The result of the request.
468 type: dict
469 returned: always
470 contains:
471 request_url:
472 description: The full url requested.
473 returned: always
474 type: str
475 sample: /sys/login/user
476 response_code:
477 description: The status of api request.
478 returned: always
479 type: int
480 sample: 0
481 response_data:
482 description: The api response.
483 type: list
484 returned: always
485 response_message:
486 description: The descriptive message of the api response.
487 type: str
488 returned: always
489 sample: OK.
490 system_information:
491 description: The information of the target system.
492 type: dict
493 returned: always
494 rc:
495 description: The status the request.
496 type: int
497 returned: always
498 sample: 0
499 version_check_warning:
500 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
501 type: list
502 returned: complex
503 '''
504 from ansible.module_utils.basic import AnsibleModule
505 from ansible.module_utils.connection import Connection
506 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
507 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
508
509
510 def main():
511 urls_list = [
512 '/pm/config/adom/{adom}/obj/system/fortiguard',
513 '/pm/config/global/obj/system/fortiguard'
514 ]
515 module_arg_spec = {
516 'adom': {'required': True, 'type': 'str'},
517 'revision_note': {'type': 'str'},
518 'system_fortiguard': {
519 'type': 'dict', 'v_range': [['6.0.0', '']],
520 'options': {
521 'antispam-cache': {'choices': ['disable', 'enable'], 'type': 'str'},
522 'antispam-cache-mpercent': {'type': 'int'},
523 'antispam-cache-ttl': {'type': 'int'},
524 'antispam-expiration': {'type': 'int'},
525 'antispam-force-off': {'choices': ['disable', 'enable'], 'type': 'str'},
526 'antispam-license': {'type': 'int'},
527 'antispam-timeout': {'type': 'int'},
528 'auto-join-forticloud': {'choices': ['disable', 'enable'], 'type': 'str'},
529 'ddns-server-ip': {'type': 'str'},
530 'ddns-server-port': {'type': 'int'},
531 'load-balance-servers': {'type': 'int'},
532 'outbreak-prevention-cache': {'choices': ['disable', 'enable'], 'type': 'str'},
533 'outbreak-prevention-cache-mpercent': {'type': 'int'},
534 'outbreak-prevention-cache-ttl': {'type': 'int'},
535 'outbreak-prevention-expiration': {'type': 'int'},
536 'outbreak-prevention-force-off': {'choices': ['disable', 'enable'], 'type': 'str'},
537 'outbreak-prevention-license': {'type': 'int'},
538 'outbreak-prevention-timeout': {'type': 'int'},
539 'port': {'choices': ['53', '80', '8888', '443'], 'type': 'str'},
540 'sdns-server-ip': {'type': 'raw'},
541 'sdns-server-port': {'type': 'int'},
542 'service-account-id': {'type': 'str'},
543 'source-ip': {'type': 'str'},
544 'source-ip6': {'type': 'str'},
545 'update-server-location': {'choices': ['any', 'usa', 'automatic', 'eu'], 'type': 'str'},
546 'webfilter-cache': {'choices': ['disable', 'enable'], 'type': 'str'},
547 'webfilter-cache-ttl': {'type': 'int'},
548 'webfilter-expiration': {'type': 'int'},
549 'webfilter-force-off': {'choices': ['disable', 'enable'], 'type': 'str'},
550 'webfilter-license': {'type': 'int'},
551 'webfilter-timeout': {'type': 'int'},
552 'protocol': {'v_range': [['6.2.0', '']], 'choices': ['udp', 'http', 'https'], 'type': 'str'},
553 'proxy-password': {'v_range': [['6.2.1', '']], 'no_log': True, 'type': 'raw'},
554 'proxy-server-ip': {'v_range': [['6.2.1', '']], 'type': 'str'},
555 'proxy-server-port': {'v_range': [['6.2.1', '']], 'type': 'int'},
556 'proxy-username': {'v_range': [['6.2.1', '']], 'type': 'str'},
557 'sandbox-region': {'v_range': [['6.2.0', '']], 'type': 'str'},
558 'avquery-cache-ttl': {'v_range': [['6.2.0', '6.4.15']], 'type': 'int'},
559 'avquery-timeout': {'v_range': [['6.2.0', '6.4.15']], 'type': 'int'},
560 'avquery-cache': {'v_range': [['6.2.0', '6.4.15']], 'choices': ['disable', 'enable'], 'type': 'str'},
561 'avquery-cache-mpercent': {'v_range': [['6.2.0', '6.4.15']], 'type': 'int'},
562 'avquery-license': {'v_range': [['6.2.0', '6.4.15']], 'type': 'int'},
563 'avquery-force-off': {'v_range': [['6.2.0', '6.4.15']], 'choices': ['disable', 'enable'], 'type': 'str'},
564 'fortiguard-anycast': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
565 'fortiguard-anycast-source': {'v_range': [['6.2.2', '']], 'choices': ['fortinet', 'aws', 'debug'], 'type': 'str'},
566 'interface': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], 'type': 'str'},
567 'interface-select-method': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '']], 'choices': ['auto', 'sdwan', 'specify'], 'type': 'str'},
568 'sdns-options': {'v_range': [['6.4.0', '']], 'type': 'list', 'choices': ['include-question-section'], 'elements': 'str'},
569 'anycast-sdns-server-ip': {'v_range': [['6.4.1', '']], 'type': 'str'},
570 'anycast-sdns-server-port': {'v_range': [['6.4.1', '']], 'type': 'int'},
571 'persistent-connection': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
572 'update-build-proxy': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
573 'update-extdb': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
574 'update-ffdb': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
575 'update-uwdb': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
576 'videofilter-expiration': {'v_range': [['7.0.0', '']], 'type': 'int'},
577 'videofilter-license': {'v_range': [['7.0.0', '']], 'type': 'int'},
578 'ddns-server-ip6': {'v_range': [['7.0.1', '']], 'type': 'str'},
579 'vdom': {'v_range': [['7.2.0', '']], 'type': 'str'},
580 'auto-firmware-upgrade': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
581 'auto-firmware-upgrade-day': {
582 'v_range': [['7.2.1', '']],
583 'type': 'list',
584 'choices': ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'],
585 'elements': 'str'
586 },
587 'auto-firmware-upgrade-end-hour': {'v_range': [['7.2.1', '']], 'type': 'int'},
588 'auto-firmware-upgrade-start-hour': {'v_range': [['7.2.1', '']], 'type': 'int'},
589 'sandbox-inline-scan': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
590 'auto-firmware-upgrade-delay': {'v_range': [['7.2.4', '']], 'type': 'int'},
591 'gui-prompt-auto-upgrade': {'v_range': [['7.2.4', '7.2.12'], ['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
592 'FDS-license-expiring-days': {'v_range': [['7.4.0', '']], 'type': 'int'},
593 'antispam-cache-mpermille': {'v_range': [['7.4.0', '']], 'type': 'int'},
594 'outbreak-prevention-cache-mpermille': {'v_range': [['7.4.0', '']], 'type': 'int'},
595 'update-dldb': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
596 'vrf-select': {'v_range': [['7.6.2', '']], 'type': 'int'},
597 'subscribe-update-notification': {'v_range': [['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
598 'dlp-expiration': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'int'},
599 'dlp-license': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'int'},
600 'fnbi-expiration': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'int'},
601 'fnbi-license': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'int'},
602 'ia-expiration': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'int'},
603 'ia-license': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'int'}
604 }
605 }
606 }
607
608 module_option_spec = get_module_arg_spec('partial crud')
609 module_arg_spec.update(module_option_spec)
610 check_galaxy_version(module_arg_spec)
611 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'system_fortiguard'),
612 supports_check_mode=True)
613 if not module._socket_path:
614 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
615 connection = Connection(module._socket_path)
616 fmgr = NAPIManager('partial crud', module_arg_spec, urls_list,
617 None, 'data', module, connection)
618 fmgr.process_partial_crud()
619 module.exit_json(meta=module.params)
620
621
622 if __name__ == '__main__':
623 main()