Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_profileprotocoloptions.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_firewall_profileprotocoloptions
15 short_description: Configure protocol options.
16 version_added: "2.0.0"
17 extends_documentation_fragment:
18 - fortinet.fortimanager.general
19 - fortinet.fortimanager.general.full_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 firewall_profileprotocoloptions:
29 description: The top level parameters set.
30 required: false
31 type: dict
32 suboptions:
33 comment:
34 type: str
35 description: Optional comments.
36 name:
37 type: str
38 description: Name.
39 required: true
40 oversize_log:
41 aliases: ['oversize-log']
42 type: str
43 description: Enable/disable logging for antivirus oversize file blocking.
44 choices: ['disable', 'enable']
45 replacemsg_group:
46 aliases: ['replacemsg-group']
47 type: str
48 description: Name of the replacement message group to be used
49 rpc_over_http:
50 aliases: ['rpc-over-http']
51 type: str
52 description: Enable/disable inspection of RPC over HTTP.
53 choices: ['disable', 'enable']
54 switching_protocols_log:
55 aliases: ['switching-protocols-log']
56 type: str
57 description: Enable/disable logging for HTTP/HTTPS switching protocols.
58 choices: ['disable', 'enable']
59 feature_set:
60 aliases: ['feature-set']
61 type: str
62 description: Flow/proxy feature set.
63 choices: ['proxy', 'flow']
64 cifs:
65 type: dict
66 description: Cifs.
67 suboptions:
68 domain_controller:
69 aliases: ['domain-controller']
70 type: str
71 description: Domain for which to decrypt CIFS traffic.
72 file_filter:
73 aliases: ['file-filter']
74 type: dict
75 description: File filter.
76 suboptions:
77 entries:
78 type: list
79 elements: dict
80 description: Entries.
81 suboptions:
82 action:
83 type: str
84 description: Action taken for matched file.
85 choices: ['log', 'block']
86 comment:
87 type: str
88 description: Comment.
89 direction:
90 type: str
91 description: Match files transmitted in the sessions originating or reply direction.
92 choices: ['any', 'incoming', 'outgoing']
93 file_type:
94 aliases: ['file-type']
95 type: raw
96 description: (list) Select file type.
97 filter:
98 type: str
99 description: Add a file filter.
100 protocol:
101 type: list
102 elements: str
103 description: Protocols to apply with.
104 choices: ['cifs']
105 log:
106 type: str
107 description: Enable/disable file filter logging.
108 choices: ['disable', 'enable']
109 status:
110 type: str
111 description: Enable/disable file filter.
112 choices: ['disable', 'enable']
113 options:
114 type: list
115 elements: str
116 description: One or more options that can be applied to the session.
117 choices: ['oversize']
118 oversize_limit:
119 aliases: ['oversize-limit']
120 type: int
121 description: Maximum in-memory file size that can be scanned
122 ports:
123 type: raw
124 description: (list) Ports to scan for content
125 scan_bzip2:
126 aliases: ['scan-bzip2']
127 type: str
128 description: Enable/disable scanning of BZip2 compressed files.
129 choices: ['disable', 'enable']
130 server_credential_type:
131 aliases: ['server-credential-type']
132 type: str
133 description: CIFS server credential type.
134 choices: ['none', 'credential-replication', 'credential-keytab']
135 server_keytab:
136 aliases: ['server-keytab']
137 type: list
138 elements: dict
139 description: Server keytab.
140 suboptions:
141 keytab:
142 type: str
143 description: Base64 encoded keytab file containing credential of the server.
144 password:
145 type: raw
146 description: (list) Password for keytab.
147 principal:
148 type: str
149 description: Service principal.
150 status:
151 type: str
152 description: Enable/disable the active status of scanning for this protocol.
153 choices: ['disable', 'enable']
154 tcp_window_maximum:
155 aliases: ['tcp-window-maximum']
156 type: int
157 description: Maximum dynamic TCP window size
158 tcp_window_minimum:
159 aliases: ['tcp-window-minimum']
160 type: int
161 description: Minimum dynamic TCP window size
162 tcp_window_size:
163 aliases: ['tcp-window-size']
164 type: int
165 description: Set TCP static window size
166 tcp_window_type:
167 aliases: ['tcp-window-type']
168 type: str
169 description: Specify type of TCP window to use for this protocol.
170 choices: ['system', 'static', 'dynamic', 'auto-tuning']
171 uncompressed_nest_limit:
172 aliases: ['uncompressed-nest-limit']
173 type: int
174 description: Maximum nested levels of compression that can be uncompressed and scanned
175 uncompressed_oversize_limit:
176 aliases: ['uncompressed-oversize-limit']
177 type: int
178 description: Maximum in-memory uncompressed file size that can be scanned
179 dns:
180 type: dict
181 description: Dns.
182 suboptions:
183 ports:
184 type: raw
185 description: (list) Ports to scan for content
186 status:
187 type: str
188 description: Enable/disable the active status of scanning for this protocol.
189 choices: ['disable', 'enable']
190 ftp:
191 type: dict
192 description: Ftp.
193 suboptions:
194 comfort_amount:
195 aliases: ['comfort-amount']
196 type: int
197 description: Amount of data to send in a transmission for client comforting
198 comfort_interval:
199 aliases: ['comfort-interval']
200 type: int
201 description: Period of time between start, or last transmission, and the next client comfort transmission of data
202 inspect_all:
203 aliases: ['inspect-all']
204 type: str
205 description: Enable/disable the inspection of all ports for the protocol.
206 choices: ['disable', 'enable']
207 options:
208 type: list
209 elements: str
210 description: One or more options that can be applied to the session.
211 choices: ['clientcomfort', 'no-content-summary', 'oversize', 'splice',
212 'bypass-rest-command', 'bypass-mode-command']
213 oversize_limit:
214 aliases: ['oversize-limit']
215 type: int
216 description: Maximum in-memory file size that can be scanned
217 ports:
218 type: raw
219 description: (list) Ports to scan for content
220 scan_bzip2:
221 aliases: ['scan-bzip2']
222 type: str
223 description: Enable/disable scanning of BZip2 compressed files.
224 choices: ['disable', 'enable']
225 ssl_offloaded:
226 aliases: ['ssl-offloaded']
227 type: str
228 description: SSL decryption and encryption performed by an external device.
229 choices: ['no', 'yes']
230 status:
231 type: str
232 description: Enable/disable the active status of scanning for this protocol.
233 choices: ['disable', 'enable']
234 uncompressed_nest_limit:
235 aliases: ['uncompressed-nest-limit']
236 type: int
237 description: Maximum nested levels of compression that can be uncompressed and scanned
238 uncompressed_oversize_limit:
239 aliases: ['uncompressed-oversize-limit']
240 type: int
241 description: Maximum in-memory uncompressed file size that can be scanned
242 stream_based_uncompressed_limit:
243 aliases: ['stream-based-uncompressed-limit']
244 type: int
245 description: Maximum stream-based uncompressed data size that will be scanned
246 tcp_window_maximum:
247 aliases: ['tcp-window-maximum']
248 type: int
249 description: Maximum dynamic TCP window size.
250 tcp_window_minimum:
251 aliases: ['tcp-window-minimum']
252 type: int
253 description: Minimum dynamic TCP window size.
254 tcp_window_size:
255 aliases: ['tcp-window-size']
256 type: int
257 description: Set TCP static window size.
258 tcp_window_type:
259 aliases: ['tcp-window-type']
260 type: str
261 description: TCP window type to use for this protocol.
262 choices: ['system', 'static', 'dynamic', 'auto-tuning']
263 explicit_ftp_tls:
264 aliases: ['explicit-ftp-tls']
265 type: str
266 description: Enable/disable FTP redirection for explicit FTPS.
267 choices: ['disable', 'enable']
268 http:
269 type: dict
270 description: Http.
271 suboptions:
272 block_page_status_code:
273 aliases: ['block-page-status-code']
274 type: int
275 description: Code number returned for blocked HTTP pages
276 comfort_amount:
277 aliases: ['comfort-amount']
278 type: int
279 description: Amount of data to send in a transmission for client comforting
280 comfort_interval:
281 aliases: ['comfort-interval']
282 type: int
283 description: Period of time between start, or last transmission, and the next client comfort transmission of data
284 fortinet_bar:
285 aliases: ['fortinet-bar']
286 type: str
287 description: Enable/disable Fortinet bar on HTML content.
288 choices: ['disable', 'enable']
289 fortinet_bar_port:
290 aliases: ['fortinet-bar-port']
291 type: int
292 description: Port for use by Fortinet Bar
293 inspect_all:
294 aliases: ['inspect-all']
295 type: str
296 description: Enable/disable the inspection of all ports for the protocol.
297 choices: ['disable', 'enable']
298 options:
299 type: list
300 elements: str
301 description: One or more options that can be applied to the session.
302 choices: ['oversize', 'chunkedbypass', 'clientcomfort',
303 'no-content-summary', 'servercomfort']
304 oversize_limit:
305 aliases: ['oversize-limit']
306 type: int
307 description: Maximum in-memory file size that can be scanned
308 ports:
309 type: raw
310 description: (list) Ports to scan for content
311 post_lang:
312 aliases: ['post-lang']
313 type: list
314 elements: str
315 description: ID codes for character sets to be used to convert to UTF-8 for banned words and DLP on HTTP posts
316 choices: ['jisx0201', 'jisx0208', 'jisx0212', 'gb2312', 'ksc5601-ex',
317 'euc-jp', 'sjis', 'iso2022-jp', 'iso2022-jp-1', 'iso2022-jp-2',
318 'euc-cn', 'ces-gbk', 'hz', 'ces-big5', 'euc-kr', 'iso2022-jp-3',
319 'iso8859-1', 'tis620', 'cp874', 'cp1252', 'cp1251']
320 proxy_after_tcp_handshake:
321 aliases: ['proxy-after-tcp-handshake']
322 type: str
323 description: Proxy traffic after the TCP 3-way handshake has been established
324 choices: ['disable', 'enable']
325 range_block:
326 aliases: ['range-block']
327 type: str
328 description: Enable/disable blocking of partial downloads.
329 choices: ['disable', 'enable']
330 retry_count:
331 aliases: ['retry-count']
332 type: int
333 description: Number of attempts to retry HTTP connection
334 scan_bzip2:
335 aliases: ['scan-bzip2']
336 type: str
337 description: Enable/disable scanning of BZip2 compressed files.
338 choices: ['disable', 'enable']
339 ssl_offloaded:
340 aliases: ['ssl-offloaded']
341 type: str
342 description: SSL decryption and encryption performed by an external device.
343 choices: ['no', 'yes']
344 status:
345 type: str
346 description: Enable/disable the active status of scanning for this protocol.
347 choices: ['disable', 'enable']
348 stream_based_uncompressed_limit:
349 aliases: ['stream-based-uncompressed-limit']
350 type: int
351 description: Maximum stream-based uncompressed data size that will be scanned
352 streaming_content_bypass:
353 aliases: ['streaming-content-bypass']
354 type: str
355 description: Enable/disable bypassing of streaming content from buffering.
356 choices: ['disable', 'enable']
357 strip_x_forwarded_for:
358 aliases: ['strip-x-forwarded-for']
359 type: str
360 description: Enable/disable stripping of HTTP X-Forwarded-For header.
361 choices: ['disable', 'enable']
362 switching_protocols:
363 aliases: ['switching-protocols']
364 type: str
365 description: Bypass from scanning, or block a connection that attempts to switch protocol.
366 choices: ['bypass', 'block']
367 tcp_window_maximum:
368 aliases: ['tcp-window-maximum']
369 type: int
370 description: Maximum dynamic TCP window size
371 tcp_window_minimum:
372 aliases: ['tcp-window-minimum']
373 type: int
374 description: Minimum dynamic TCP window size
375 tcp_window_size:
376 aliases: ['tcp-window-size']
377 type: int
378 description: Set TCP static window size
379 tcp_window_type:
380 aliases: ['tcp-window-type']
381 type: str
382 description: Specify type of TCP window to use for this protocol.
383 choices: ['system', 'static', 'dynamic', 'auto-tuning']
384 tunnel_non_http:
385 aliases: ['tunnel-non-http']
386 type: str
387 description: Configure how to process non-HTTP traffic when a profile configured for HTTP traffic accepts a non-HTTP session.
388 choices: ['disable', 'enable']
389 uncompressed_nest_limit:
390 aliases: ['uncompressed-nest-limit']
391 type: int
392 description: Maximum nested levels of compression that can be uncompressed and scanned
393 uncompressed_oversize_limit:
394 aliases: ['uncompressed-oversize-limit']
395 type: int
396 description: Maximum in-memory uncompressed file size that can be scanned
397 unknown_http_version:
398 aliases: ['unknown-http-version']
399 type: str
400 description: How to handle HTTP sessions that do not comply with HTTP 0.
401 choices: ['best-effort', 'reject', 'tunnel']
402 http_policy:
403 aliases: ['http-policy']
404 type: str
405 description: Enable/disable HTTP policy check.
406 choices: ['disable', 'enable']
407 address_ip_rating:
408 aliases: ['address-ip-rating']
409 type: str
410 description: Enable/disable IP based URL rating.
411 choices: ['disable', 'enable']
412 h2c:
413 type: str
414 description: Enable/disable h2c HTTP connection upgrade.
415 choices: ['disable', 'enable']
416 verify_dns_for_policy_matching:
417 aliases: ['verify-dns-for-policy-matching']
418 type: str
419 description: Enable/disable verification of DNS for policy matching.
420 choices: ['disable', 'enable']
421 unknown_content_encoding:
422 aliases: ['unknown-content-encoding']
423 type: str
424 description: Configure the action the FortiGate unit will take on unknown content-encoding.
425 choices: ['block', 'inspect', 'bypass']
426 domain_fronting:
427 aliases: ['domain-fronting']
428 type: str
429 description: Configure HTTP domain fronting
430 choices: ['block', 'monitor', 'allow', 'disable', 'enable', 'strict']
431 http_0_9:
432 aliases: ['http-0.9']
433 type: str
434 description: Configure action to take upon receipt of HTTP 0.
435 choices: ['block', 'allow']
436 dns_protection:
437 aliases: ['dns-protection']
438 type: str
439 description: Enable/disable DNS protection for HTTP/HTTPS traffic.
440 choices: ['disable', 'enable']
441 encrypted_file:
442 aliases: ['encrypted-file']
443 type: str
444 description: Encrypted file.
445 choices: ['block', 'pass', 'inspect']
446 encrypted_file_log:
447 aliases: ['encrypted-file-log']
448 type: str
449 description: Encrypted file log.
450 choices: ['disable', 'enable']
451 imap:
452 type: dict
453 description: Imap.
454 suboptions:
455 inspect_all:
456 aliases: ['inspect-all']
457 type: str
458 description: Enable/disable the inspection of all ports for the protocol.
459 choices: ['disable', 'enable']
460 options:
461 type: list
462 elements: str
463 description: One or more options that can be applied to the session.
464 choices: ['oversize', 'fragmail', 'no-content-summary']
465 oversize_limit:
466 aliases: ['oversize-limit']
467 type: int
468 description: Maximum in-memory file size that can be scanned
469 ports:
470 type: raw
471 description: (list) Ports to scan for content
472 proxy_after_tcp_handshake:
473 aliases: ['proxy-after-tcp-handshake']
474 type: str
475 description: Proxy traffic after the TCP 3-way handshake has been established
476 choices: ['disable', 'enable']
477 scan_bzip2:
478 aliases: ['scan-bzip2']
479 type: str
480 description: Enable/disable scanning of BZip2 compressed files.
481 choices: ['disable', 'enable']
482 ssl_offloaded:
483 aliases: ['ssl-offloaded']
484 type: str
485 description: SSL decryption and encryption performed by an external device.
486 choices: ['no', 'yes']
487 status:
488 type: str
489 description: Enable/disable the active status of scanning for this protocol.
490 choices: ['disable', 'enable']
491 uncompressed_nest_limit:
492 aliases: ['uncompressed-nest-limit']
493 type: int
494 description: Maximum nested levels of compression that can be uncompressed and scanned
495 uncompressed_oversize_limit:
496 aliases: ['uncompressed-oversize-limit']
497 type: int
498 description: Maximum in-memory uncompressed file size that can be scanned
499 address_ip_rating:
500 aliases: ['address-ip-rating']
501 type: str
502 description: Address ip rating.
503 choices: ['disable', 'enable']
504 mail_signature:
505 aliases: ['mail-signature']
506 type: dict
507 description: Mail signature.
508 suboptions:
509 signature:
510 type: str
511 description: Email signature to be added to outgoing email
512 status:
513 type: str
514 description: Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate.
515 choices: ['disable', 'enable']
516 mapi:
517 type: dict
518 description: Mapi.
519 suboptions:
520 options:
521 type: list
522 elements: str
523 description: One or more options that can be applied to the session.
524 choices: ['fragmail', 'oversize', 'no-content-summary']
525 oversize_limit:
526 aliases: ['oversize-limit']
527 type: int
528 description: Maximum in-memory file size that can be scanned
529 ports:
530 type: raw
531 description: (list) Ports to scan for content
532 scan_bzip2:
533 aliases: ['scan-bzip2']
534 type: str
535 description: Enable/disable scanning of BZip2 compressed files.
536 choices: ['disable', 'enable']
537 status:
538 type: str
539 description: Enable/disable the active status of scanning for this protocol.
540 choices: ['disable', 'enable']
541 uncompressed_nest_limit:
542 aliases: ['uncompressed-nest-limit']
543 type: int
544 description: Maximum nested levels of compression that can be uncompressed and scanned
545 uncompressed_oversize_limit:
546 aliases: ['uncompressed-oversize-limit']
547 type: int
548 description: Maximum in-memory uncompressed file size that can be scanned
549 nntp:
550 type: dict
551 description: Nntp.
552 suboptions:
553 inspect_all:
554 aliases: ['inspect-all']
555 type: str
556 description: Enable/disable the inspection of all ports for the protocol.
557 choices: ['disable', 'enable']
558 options:
559 type: list
560 elements: str
561 description: One or more options that can be applied to the session.
562 choices: ['oversize', 'no-content-summary', 'splice']
563 oversize_limit:
564 aliases: ['oversize-limit']
565 type: int
566 description: Maximum in-memory file size that can be scanned
567 ports:
568 type: raw
569 description: (list) Ports to scan for content
570 proxy_after_tcp_handshake:
571 aliases: ['proxy-after-tcp-handshake']
572 type: str
573 description: Proxy traffic after the TCP 3-way handshake has been established
574 choices: ['disable', 'enable']
575 scan_bzip2:
576 aliases: ['scan-bzip2']
577 type: str
578 description: Enable/disable scanning of BZip2 compressed files.
579 choices: ['disable', 'enable']
580 status:
581 type: str
582 description: Enable/disable the active status of scanning for this protocol.
583 choices: ['disable', 'enable']
584 uncompressed_nest_limit:
585 aliases: ['uncompressed-nest-limit']
586 type: int
587 description: Maximum nested levels of compression that can be uncompressed and scanned
588 uncompressed_oversize_limit:
589 aliases: ['uncompressed-oversize-limit']
590 type: int
591 description: Maximum in-memory uncompressed file size that can be scanned
592 pop3:
593 type: dict
594 description: Pop3.
595 suboptions:
596 inspect_all:
597 aliases: ['inspect-all']
598 type: str
599 description: Enable/disable the inspection of all ports for the protocol.
600 choices: ['disable', 'enable']
601 options:
602 type: list
603 elements: str
604 description: One or more options that can be applied to the session.
605 choices: ['oversize', 'fragmail', 'no-content-summary']
606 oversize_limit:
607 aliases: ['oversize-limit']
608 type: int
609 description: Maximum in-memory file size that can be scanned
610 ports:
611 type: raw
612 description: (list) Ports to scan for content
613 proxy_after_tcp_handshake:
614 aliases: ['proxy-after-tcp-handshake']
615 type: str
616 description: Proxy traffic after the TCP 3-way handshake has been established
617 choices: ['disable', 'enable']
618 scan_bzip2:
619 aliases: ['scan-bzip2']
620 type: str
621 description: Enable/disable scanning of BZip2 compressed files.
622 choices: ['disable', 'enable']
623 ssl_offloaded:
624 aliases: ['ssl-offloaded']
625 type: str
626 description: SSL decryption and encryption performed by an external device.
627 choices: ['no', 'yes']
628 status:
629 type: str
630 description: Enable/disable the active status of scanning for this protocol.
631 choices: ['disable', 'enable']
632 uncompressed_nest_limit:
633 aliases: ['uncompressed-nest-limit']
634 type: int
635 description: Maximum nested levels of compression that can be uncompressed and scanned
636 uncompressed_oversize_limit:
637 aliases: ['uncompressed-oversize-limit']
638 type: int
639 description: Maximum in-memory uncompressed file size that can be scanned
640 smtp:
641 type: dict
642 description: Smtp.
643 suboptions:
644 inspect_all:
645 aliases: ['inspect-all']
646 type: str
647 description: Enable/disable the inspection of all ports for the protocol.
648 choices: ['disable', 'enable']
649 options:
650 type: list
651 elements: str
652 description: One or more options that can be applied to the session.
653 choices: ['oversize', 'fragmail', 'no-content-summary', 'splice']
654 oversize_limit:
655 aliases: ['oversize-limit']
656 type: int
657 description: Maximum in-memory file size that can be scanned
658 ports:
659 type: raw
660 description: (list) Ports to scan for content
661 proxy_after_tcp_handshake:
662 aliases: ['proxy-after-tcp-handshake']
663 type: str
664 description: Proxy traffic after the TCP 3-way handshake has been established
665 choices: ['disable', 'enable']
666 scan_bzip2:
667 aliases: ['scan-bzip2']
668 type: str
669 description: Enable/disable scanning of BZip2 compressed files.
670 choices: ['disable', 'enable']
671 server_busy:
672 aliases: ['server-busy']
673 type: str
674 description: Enable/disable SMTP server busy when server not available.
675 choices: ['disable', 'enable']
676 ssl_offloaded:
677 aliases: ['ssl-offloaded']
678 type: str
679 description: SSL decryption and encryption performed by an external device.
680 choices: ['no', 'yes']
681 status:
682 type: str
683 description: Enable/disable the active status of scanning for this protocol.
684 choices: ['disable', 'enable']
685 uncompressed_nest_limit:
686 aliases: ['uncompressed-nest-limit']
687 type: int
688 description: Maximum nested levels of compression that can be uncompressed and scanned
689 uncompressed_oversize_limit:
690 aliases: ['uncompressed-oversize-limit']
691 type: int
692 description: Maximum in-memory uncompressed file size that can be scanned
693 ssh:
694 type: dict
695 description: Ssh.
696 suboptions:
697 comfort_amount:
698 aliases: ['comfort-amount']
699 type: int
700 description: Amount of data to send in a transmission for client comforting
701 comfort_interval:
702 aliases: ['comfort-interval']
703 type: int
704 description: Period of time between start, or last transmission, and the next client comfort transmission of data
705 options:
706 type: list
707 elements: str
708 description: One or more options that can be applied to the session.
709 choices: ['oversize', 'clientcomfort', 'servercomfort']
710 oversize_limit:
711 aliases: ['oversize-limit']
712 type: int
713 description: Maximum in-memory file size that can be scanned
714 scan_bzip2:
715 aliases: ['scan-bzip2']
716 type: str
717 description: Enable/disable scanning of BZip2 compressed files.
718 choices: ['disable', 'enable']
719 uncompressed_nest_limit:
720 aliases: ['uncompressed-nest-limit']
721 type: int
722 description: Maximum nested levels of compression that can be uncompressed and scanned
723 uncompressed_oversize_limit:
724 aliases: ['uncompressed-oversize-limit']
725 type: int
726 description: Maximum in-memory uncompressed file size that can be scanned
727 ssl_offloaded:
728 aliases: ['ssl-offloaded']
729 type: str
730 description: SSL decryption and encryption performed by an external device.
731 choices: ['no', 'yes']
732 stream_based_uncompressed_limit:
733 aliases: ['stream-based-uncompressed-limit']
734 type: int
735 description: Maximum stream-based uncompressed data size that will be scanned
736 tcp_window_maximum:
737 aliases: ['tcp-window-maximum']
738 type: int
739 description: Maximum dynamic TCP window size.
740 tcp_window_minimum:
741 aliases: ['tcp-window-minimum']
742 type: int
743 description: Minimum dynamic TCP window size.
744 tcp_window_size:
745 aliases: ['tcp-window-size']
746 type: int
747 description: Set TCP static window size.
748 tcp_window_type:
749 aliases: ['tcp-window-type']
750 type: str
751 description: TCP window type to use for this protocol.
752 choices: ['system', 'static', 'dynamic', 'auto-tuning']
753 explicit_ftp_tls:
754 aliases: ['explicit-ftp-tls']
755 type: str
756 description: Explicit ftp tls.
757 choices: ['disable', 'enable']
758 proxy_redirect:
759 aliases: ['proxy-redirect']
760 type: dict
761 description: Proxy redirect.
762 suboptions:
763 ports:
764 type: raw
765 description: (list) Ports.
766 status:
767 type: str
768 description: Status.
769 choices: ['disable', 'enable']
770 rtmp:
771 type: dict
772 description: Rtmp.
773 suboptions:
774 http_tunnel:
775 aliases: ['http-tunnel']
776 type: str
777 description: Enable/disable RTMP http tunnel.
778 choices: ['disable', 'enable']
779 ports:
780 type: raw
781 description: (list) Ports to scan for content
782 rtmpt:
783 type: str
784 description: Enable/disable RTMPT.
785 choices: ['disable', 'enable']
786 status:
787 type: str
788 description: Enable/disable the active status of scanning for this protocol.
789 choices: ['disable', 'enable']
790 '''
791
792 EXAMPLES = '''
793 - name: Example playbook
794 hosts: fortimanagers
795 gather_facts: false
796 connection: httpapi
797 vars:
798 ansible_httpapi_use_ssl: true
799 ansible_httpapi_validate_certs: false
800 ansible_httpapi_port: 443
801 tasks:
802 - name: Configure protocol options.
803 fortinet.fortimanager.fmgr_firewall_profileprotocoloptions:
804 bypass_validation: false
805 adom: ansible
806 state: present
807 firewall_profileprotocoloptions:
808 comment: "ansible-comment"
809 name: "ansible-test"
810
811 - name: Gathering fortimanager facts
812 hosts: fortimanagers
813 gather_facts: false
814 connection: httpapi
815 vars:
816 ansible_httpapi_use_ssl: true
817 ansible_httpapi_validate_certs: false
818 ansible_httpapi_port: 443
819 tasks:
820 - name: Retrieve all the profile protocol options
821 fortinet.fortimanager.fmgr_fact:
822 facts:
823 selector: "firewall_profileprotocoloptions"
824 params:
825 adom: "ansible"
826 profile_protocol_options: "your_value"
827 '''
828
829 RETURN = '''
830 meta:
831 description: The result of the request.
832 type: dict
833 returned: always
834 contains:
835 request_url:
836 description: The full url requested.
837 returned: always
838 type: str
839 sample: /sys/login/user
840 response_code:
841 description: The status of api request.
842 returned: always
843 type: int
844 sample: 0
845 response_data:
846 description: The api response.
847 type: list
848 returned: always
849 response_message:
850 description: The descriptive message of the api response.
851 type: str
852 returned: always
853 sample: OK.
854 system_information:
855 description: The information of the target system.
856 type: dict
857 returned: always
858 rc:
859 description: The status the request.
860 type: int
861 returned: always
862 sample: 0
863 version_check_warning:
864 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
865 type: list
866 returned: complex
867 '''
868 from ansible.module_utils.basic import AnsibleModule
869 from ansible.module_utils.connection import Connection
870 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
871 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
872
873
874 def main():
875 urls_list = [
876 '/pm/config/adom/{adom}/obj/firewall/profile-protocol-options',
877 '/pm/config/global/obj/firewall/profile-protocol-options'
878 ]
879 module_arg_spec = {
880 'adom': {'required': True, 'type': 'str'},
881 'revision_note': {'type': 'str'},
882 'firewall_profileprotocoloptions': {
883 'type': 'dict', 'v_range': [['6.0.0', '']],
884 'options': {
885 'comment': {'type': 'str'},
886 'name': {'required': True, 'type': 'str'},
887 'oversize-log': {'choices': ['disable', 'enable'], 'type': 'str'},
888 'replacemsg-group': {'type': 'str'},
889 'rpc-over-http': {'choices': ['disable', 'enable'], 'type': 'str'},
890 'switching-protocols-log': {'choices': ['disable', 'enable'], 'type': 'str'},
891 'feature-set': {'v_range': [['6.4.0', '']], 'choices': ['proxy', 'flow'], 'type': 'str'},
892 'cifs': {
893 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
894 'type': 'dict',
895 'options': {
896 'domain-controller': {'v_range': [['6.4.5', '']], 'type': 'str'},
897 'file-filter': {
898 'v_range': [['6.4.5', '']],
899 'type': 'dict',
900 'options': {
901 'entries': {
902 'v_range': [['6.4.5', '']],
903 'type': 'list',
904 'options': {
905 'action': {'v_range': [['6.4.5', '']], 'choices': ['log', 'block'], 'type': 'str'},
906 'comment': {'v_range': [['6.4.5', '']], 'type': 'str'},
907 'direction': {'v_range': [['6.4.5', '']], 'choices': ['any', 'incoming', 'outgoing'], 'type': 'str'},
908 'file-type': {'v_range': [['6.4.5', '']], 'type': 'raw'},
909 'filter': {'v_range': [['6.4.5', '']], 'type': 'str'},
910 'protocol': {'v_range': [['6.4.5', '']], 'type': 'list', 'choices': ['cifs'], 'elements': 'str'}
911 },
912 'elements': 'dict'
913 },
914 'log': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
915 'status': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
916 }
917 },
918 'options': {'v_range': [['6.4.5', '']], 'type': 'list', 'choices': ['oversize'], 'elements': 'str'},
919 'oversize-limit': {'v_range': [['6.4.5', '']], 'type': 'int'},
920 'ports': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
921 'scan-bzip2': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
922 'server-credential-type': {
923 'v_range': [['6.4.5', '']],
924 'choices': ['none', 'credential-replication', 'credential-keytab'],
925 'type': 'str'
926 },
927 'server-keytab': {
928 'v_range': [['6.4.5', '']],
929 'no_log': True,
930 'type': 'list',
931 'options': {
932 'keytab': {'v_range': [['6.4.5', '']], 'no_log': True, 'type': 'str'},
933 'password': {'v_range': [['6.4.5', '']], 'no_log': True, 'type': 'raw'},
934 'principal': {'v_range': [['6.4.5', '']], 'type': 'str'}
935 },
936 'elements': 'dict'
937 },
938 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
939 'tcp-window-maximum': {'v_range': [['6.4.5', '']], 'type': 'int'},
940 'tcp-window-minimum': {'v_range': [['6.4.5', '']], 'type': 'int'},
941 'tcp-window-size': {'v_range': [['6.4.5', '']], 'type': 'int'},
942 'tcp-window-type': {'v_range': [['6.4.5', '']], 'choices': ['system', 'static', 'dynamic', 'auto-tuning'], 'type': 'str'},
943 'uncompressed-nest-limit': {'v_range': [['6.4.5', '']], 'type': 'int'},
944 'uncompressed-oversize-limit': {'v_range': [['6.4.5', '']], 'type': 'int'}
945 }
946 },
947 'dns': {
948 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
949 'type': 'dict',
950 'options': {
951 'ports': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
952 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
953 }
954 },
955 'ftp': {
956 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
957 'type': 'dict',
958 'options': {
959 'comfort-amount': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
960 'comfort-interval': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
961 'inspect-all': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
962 'options': {
963 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
964 'type': 'list',
965 'choices': ['clientcomfort', 'no-content-summary', 'oversize', 'splice', 'bypass-rest-command', 'bypass-mode-command'],
966 'elements': 'str'
967 },
968 'oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
969 'ports': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
970 'scan-bzip2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
971 'ssl-offloaded': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['no', 'yes'], 'type': 'str'},
972 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
973 'uncompressed-nest-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
974 'uncompressed-oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
975 'stream-based-uncompressed-limit': {'v_range': [['7.0.0', '']], 'type': 'int'},
976 'tcp-window-maximum': {'v_range': [['7.0.0', '']], 'type': 'int'},
977 'tcp-window-minimum': {'v_range': [['7.0.0', '']], 'type': 'int'},
978 'tcp-window-size': {'v_range': [['7.0.0', '']], 'type': 'int'},
979 'tcp-window-type': {'v_range': [['7.0.0', '']], 'choices': ['system', 'static', 'dynamic', 'auto-tuning'], 'type': 'str'},
980 'explicit-ftp-tls': {'v_range': [['7.0.5', '7.0.16'], ['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
981 }
982 },
983 'http': {
984 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
985 'type': 'dict',
986 'options': {
987 'block-page-status-code': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
988 'comfort-amount': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
989 'comfort-interval': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
990 'fortinet-bar': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
991 'fortinet-bar-port': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
992 'inspect-all': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
993 'options': {
994 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
995 'type': 'list',
996 'choices': ['oversize', 'chunkedbypass', 'clientcomfort', 'no-content-summary', 'servercomfort'],
997 'elements': 'str'
998 },
999 'oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1000 'ports': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1001 'post-lang': {
1002 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1003 'type': 'list',
1004 'choices': [
1005 'jisx0201', 'jisx0208', 'jisx0212', 'gb2312', 'ksc5601-ex', 'euc-jp', 'sjis', 'iso2022-jp', 'iso2022-jp-1',
1006 'iso2022-jp-2', 'euc-cn', 'ces-gbk', 'hz', 'ces-big5', 'euc-kr', 'iso2022-jp-3', 'iso8859-1', 'tis620', 'cp874',
1007 'cp1252', 'cp1251'
1008 ],
1009 'elements': 'str'
1010 },
1011 'proxy-after-tcp-handshake': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1012 'range-block': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1013 'retry-count': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1014 'scan-bzip2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1015 'ssl-offloaded': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['no', 'yes'], 'type': 'str'},
1016 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1017 'stream-based-uncompressed-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1018 'streaming-content-bypass': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1019 'strip-x-forwarded-for': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1020 'switching-protocols': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['bypass', 'block'], 'type': 'str'},
1021 'tcp-window-maximum': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1022 'tcp-window-minimum': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1023 'tcp-window-size': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1024 'tcp-window-type': {
1025 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1026 'choices': ['system', 'static', 'dynamic', 'auto-tuning'],
1027 'type': 'str'
1028 },
1029 'tunnel-non-http': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1030 'uncompressed-nest-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1031 'uncompressed-oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1032 'unknown-http-version': {'v_range': [['6.4.5', '']], 'choices': ['best-effort', 'reject', 'tunnel'], 'type': 'str'},
1033 'http-policy': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.2.1']], 'choices': ['disable', 'enable'], 'type': 'str'},
1034 'address-ip-rating': {'v_range': [['7.0.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1035 'h2c': {'v_range': [['7.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1036 'verify-dns-for-policy-matching': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1037 'unknown-content-encoding': {'v_range': [['7.2.2', '']], 'choices': ['block', 'inspect', 'bypass'], 'type': 'str'},
1038 'domain-fronting': {
1039 'v_range': [['7.4.8', '']],
1040 'choices': ['block', 'monitor', 'allow', 'disable', 'enable', 'strict'],
1041 'type': 'str'
1042 },
1043 'http-0.9': {'v_range': [['7.6.2', '']], 'choices': ['block', 'allow'], 'type': 'str'},
1044 'dns-protection': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1045 'encrypted-file': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['block', 'pass', 'inspect'], 'type': 'str'},
1046 'encrypted-file-log': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1047 }
1048 },
1049 'imap': {
1050 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1051 'type': 'dict',
1052 'options': {
1053 'inspect-all': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1054 'options': {
1055 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1056 'type': 'list',
1057 'choices': ['oversize', 'fragmail', 'no-content-summary'],
1058 'elements': 'str'
1059 },
1060 'oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1061 'ports': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1062 'proxy-after-tcp-handshake': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1063 'scan-bzip2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1064 'ssl-offloaded': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['no', 'yes'], 'type': 'str'},
1065 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1066 'uncompressed-nest-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1067 'uncompressed-oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1068 'address-ip-rating': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1069 }
1070 },
1071 'mail-signature': {
1072 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1073 'type': 'dict',
1074 'options': {
1075 'signature': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1076 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1077 }
1078 },
1079 'mapi': {
1080 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1081 'type': 'dict',
1082 'options': {
1083 'options': {
1084 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1085 'type': 'list',
1086 'choices': ['fragmail', 'oversize', 'no-content-summary'],
1087 'elements': 'str'
1088 },
1089 'oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1090 'ports': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1091 'scan-bzip2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1092 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1093 'uncompressed-nest-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1094 'uncompressed-oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}
1095 }
1096 },
1097 'nntp': {
1098 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1099 'type': 'dict',
1100 'options': {
1101 'inspect-all': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1102 'options': {
1103 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1104 'type': 'list',
1105 'choices': ['oversize', 'no-content-summary', 'splice'],
1106 'elements': 'str'
1107 },
1108 'oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1109 'ports': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1110 'proxy-after-tcp-handshake': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1111 'scan-bzip2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1112 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1113 'uncompressed-nest-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1114 'uncompressed-oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}
1115 }
1116 },
1117 'pop3': {
1118 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1119 'type': 'dict',
1120 'options': {
1121 'inspect-all': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1122 'options': {
1123 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1124 'type': 'list',
1125 'choices': ['oversize', 'fragmail', 'no-content-summary'],
1126 'elements': 'str'
1127 },
1128 'oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1129 'ports': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1130 'proxy-after-tcp-handshake': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1131 'scan-bzip2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1132 'ssl-offloaded': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['no', 'yes'], 'type': 'str'},
1133 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1134 'uncompressed-nest-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1135 'uncompressed-oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}
1136 }
1137 },
1138 'smtp': {
1139 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1140 'type': 'dict',
1141 'options': {
1142 'inspect-all': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1143 'options': {
1144 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1145 'type': 'list',
1146 'choices': ['oversize', 'fragmail', 'no-content-summary', 'splice'],
1147 'elements': 'str'
1148 },
1149 'oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1150 'ports': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1151 'proxy-after-tcp-handshake': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1152 'scan-bzip2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1153 'server-busy': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1154 'ssl-offloaded': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['no', 'yes'], 'type': 'str'},
1155 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1156 'uncompressed-nest-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1157 'uncompressed-oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}
1158 }
1159 },
1160 'ssh': {
1161 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1162 'type': 'dict',
1163 'options': {
1164 'comfort-amount': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1165 'comfort-interval': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1166 'options': {
1167 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1168 'type': 'list',
1169 'choices': ['oversize', 'clientcomfort', 'servercomfort'],
1170 'elements': 'str'
1171 },
1172 'oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1173 'scan-bzip2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1174 'uncompressed-nest-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1175 'uncompressed-oversize-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1176 'ssl-offloaded': {'v_range': [['7.0.0', '']], 'choices': ['no', 'yes'], 'type': 'str'},
1177 'stream-based-uncompressed-limit': {'v_range': [['7.0.0', '']], 'type': 'int'},
1178 'tcp-window-maximum': {'v_range': [['7.0.0', '']], 'type': 'int'},
1179 'tcp-window-minimum': {'v_range': [['7.0.0', '']], 'type': 'int'},
1180 'tcp-window-size': {'v_range': [['7.0.0', '']], 'type': 'int'},
1181 'tcp-window-type': {'v_range': [['7.0.0', '']], 'choices': ['system', 'static', 'dynamic', 'auto-tuning'], 'type': 'str'},
1182 'explicit-ftp-tls': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1183 }
1184 },
1185 'proxy-redirect': {
1186 'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']],
1187 'type': 'dict',
1188 'options': {
1189 'ports': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'raw'},
1190 'status': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1191 }
1192 },
1193 'rtmp': {
1194 'v_range': [['7.4.8', '7.4.10']],
1195 'type': 'dict',
1196 'options': {
1197 'http-tunnel': {'v_range': [['7.4.8', '7.4.10']], 'choices': ['disable', 'enable'], 'type': 'str'},
1198 'ports': {'v_range': [['7.4.8', '7.4.10']], 'type': 'raw'},
1199 'rtmpt': {'v_range': [['7.4.8', '7.4.10']], 'choices': ['disable', 'enable'], 'type': 'str'},
1200 'status': {'v_range': [['7.4.8', '7.4.10']], 'choices': ['disable', 'enable'], 'type': 'str'}
1201 }
1202 }
1203 }
1204 }
1205 }
1206
1207 module_option_spec = get_module_arg_spec('full crud')
1208 module_arg_spec.update(module_option_spec)
1209 check_galaxy_version(module_arg_spec)
1210 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'firewall_profileprotocoloptions'),
1211 supports_check_mode=True)
1212 if not module._socket_path:
1213 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
1214 connection = Connection(module._socket_path)
1215 fmgr = NAPIManager('full crud', module_arg_spec, urls_list,
1216 'name', 'data', module, connection)
1217 fmgr.process_crud()
1218 module.exit_json(meta=module.params)
1219
1220
1221 if __name__ == '__main__':
1222 main()