Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_accessproxy6.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_accessproxy6
15 short_description: Configure IPv6 access proxy.
16 version_added: "2.2.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_accessproxy6:
29 description: The top level parameters set.
30 required: false
31 type: dict
32 suboptions:
33 add_vhost_domain_to_dnsdb:
34 aliases: ['add-vhost-domain-to-dnsdb']
35 type: str
36 description: Enable/disable adding vhost/domain to dnsdb for ztna dox tunnel.
37 choices: ['disable', 'enable']
38 api_gateway:
39 aliases: ['api-gateway']
40 type: list
41 elements: dict
42 description: Api gateway.
43 suboptions:
44 application:
45 type: raw
46 description: (list) SaaS application controlled by this Access Proxy.
47 http_cookie_age:
48 aliases: ['http-cookie-age']
49 type: int
50 description: Time in minutes that client web browsers should keep a cookie.
51 http_cookie_domain:
52 aliases: ['http-cookie-domain']
53 type: str
54 description: Domain that HTTP cookie persistence should apply to.
55 http_cookie_domain_from_host:
56 aliases: ['http-cookie-domain-from-host']
57 type: str
58 description: Enable/disable use of HTTP cookie domain from host field in HTTP.
59 choices: ['disable', 'enable']
60 http_cookie_generation:
61 aliases: ['http-cookie-generation']
62 type: int
63 description: Generation of HTTP cookie to be accepted.
64 http_cookie_path:
65 aliases: ['http-cookie-path']
66 type: str
67 description: Limit HTTP cookie persistence to the specified path.
68 http_cookie_share:
69 aliases: ['http-cookie-share']
70 type: str
71 description: Control sharing of cookies across API Gateway.
72 choices: ['disable', 'same-ip']
73 https_cookie_secure:
74 aliases: ['https-cookie-secure']
75 type: str
76 description: Enable/disable verification that inserted HTTPS cookies are secure.
77 choices: ['disable', 'enable']
78 id:
79 type: int
80 description: API Gateway ID.
81 ldb_method:
82 aliases: ['ldb-method']
83 type: str
84 description: Method used to distribute sessions to real servers.
85 choices: ['static', 'round-robin', 'weighted', 'first-alive', 'http-host']
86 persistence:
87 type: str
88 description: Configure how to make sure that clients connect to the same server every time they make a request that is part of ...
89 choices: ['none', 'http-cookie']
90 realservers:
91 type: list
92 elements: dict
93 description: Realservers.
94 suboptions:
95 addr_type:
96 aliases: ['addr-type']
97 type: str
98 description: Type of address.
99 choices: ['fqdn', 'ip']
100 address:
101 type: str
102 description: Address or address group of the real server.
103 domain:
104 type: str
105 description: Wildcard domain name of the real server.
106 health_check:
107 aliases: ['health-check']
108 type: str
109 description: Enable to check the responsiveness of the real server before forwarding traffic.
110 choices: ['disable', 'enable']
111 health_check_proto:
112 aliases: ['health-check-proto']
113 type: str
114 description: Protocol of the health check monitor to use when polling to determine servers connectivity status.
115 choices: ['ping', 'http', 'tcp-connect']
116 holddown_interval:
117 aliases: ['holddown-interval']
118 type: str
119 description: Enable/disable holddown timer.
120 choices: ['disable', 'enable']
121 http_host:
122 aliases: ['http-host']
123 type: str
124 description: HTTP server domain name in HTTP header.
125 id:
126 type: int
127 description: Real server ID.
128 ip:
129 type: str
130 description: IP address of the real server.
131 mappedport:
132 type: raw
133 description: (list or str) Port for communicating with the real server.
134 port:
135 type: int
136 description: Port for communicating with the real server.
137 ssh_client_cert:
138 aliases: ['ssh-client-cert']
139 type: str
140 description: Set access-proxy SSH client certificate profile.
141 ssh_host_key:
142 aliases: ['ssh-host-key']
143 type: raw
144 description: (list) One or more server host key.
145 ssh_host_key_validation:
146 aliases: ['ssh-host-key-validation']
147 type: str
148 description: Enable/disable SSH real server host key validation.
149 choices: ['disable', 'enable']
150 status:
151 type: str
152 description: Set the status of the real server to active so that it can accept traffic, or on standby or disabled so no...
153 choices: ['active', 'standby', 'disable']
154 type:
155 type: str
156 description: TCP forwarding server type.
157 choices: ['tcp-forwarding', 'ssh']
158 weight:
159 type: int
160 description: Weight of the real server.
161 translate_host:
162 aliases: ['translate-host']
163 type: str
164 description: Enable/disable translation of hostname/IP from virtual server to real server.
165 choices: ['disable', 'enable']
166 external_auth:
167 aliases: ['external-auth']
168 type: str
169 description: Enable/disable use of external browser as user-agent for SAML user authentication.
170 choices: ['disable', 'enable']
171 tunnel_encryption:
172 aliases: ['tunnel-encryption']
173 type: str
174 description: Tunnel encryption.
175 choices: ['disable', 'enable']
176 verify_cert:
177 aliases: ['verify-cert']
178 type: str
179 description: Enable/disable certificate verification of the real server.
180 choices: ['disable', 'enable']
181 saml_redirect:
182 aliases: ['saml-redirect']
183 type: str
184 description: Enable/disable SAML redirection after successful authentication.
185 choices: ['disable', 'enable']
186 saml_server:
187 aliases: ['saml-server']
188 type: str
189 description: SAML service provider configuration for VIP authentication.
190 service:
191 type: str
192 description: Service.
193 choices: ['http', 'https', 'tcp-forwarding', 'samlsp', 'web-portal', 'saas']
194 ssl_algorithm:
195 aliases: ['ssl-algorithm']
196 type: str
197 description: Permitted encryption algorithms for the server side of SSL full mode sessions according to encryption strength.
198 choices: ['high', 'medium', 'low']
199 ssl_cipher_suites:
200 aliases: ['ssl-cipher-suites']
201 type: list
202 elements: dict
203 description: Ssl cipher suites.
204 suboptions:
205 cipher:
206 type: str
207 description: Cipher suite name.
208 choices: ['TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA',
209 'TLS-RSA-WITH-DES-CBC-SHA',
210 'TLS-RSA-WITH-3DES-EDE-CBC-SHA',
211 'TLS-RSA-WITH-AES-128-CBC-SHA',
212 'TLS-RSA-WITH-AES-256-CBC-SHA',
213 'TLS-RSA-WITH-AES-128-CBC-SHA256',
214 'TLS-RSA-WITH-AES-256-CBC-SHA256',
215 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA',
216 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA',
217 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256',
218 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256',
219 'TLS-RSA-WITH-SEED-CBC-SHA',
220 'TLS-RSA-WITH-ARIA-128-CBC-SHA256',
221 'TLS-RSA-WITH-ARIA-256-CBC-SHA384',
222 'TLS-DHE-RSA-WITH-DES-CBC-SHA',
223 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA',
224 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA',
225 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA',
226 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256',
227 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256',
228 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA',
229 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA',
230 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256',
231 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256',
232 'TLS-DHE-RSA-WITH-SEED-CBC-SHA',
233 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256',
234 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384',
235 'TLS-ECDHE-RSA-WITH-RC4-128-SHA',
236 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA',
237 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA',
238 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA',
239 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
240 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256',
241 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
242 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256',
243 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384',
244 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA',
245 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA',
246 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256',
247 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256',
248 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256',
249 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384',
250 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256',
251 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256',
252 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384',
253 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384',
254 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA',
255 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256',
256 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256',
257 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384',
258 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384',
259 'TLS-RSA-WITH-AES-128-GCM-SHA256',
260 'TLS-RSA-WITH-AES-256-GCM-SHA384',
261 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA',
262 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA',
263 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256',
264 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256',
265 'TLS-DHE-DSS-WITH-SEED-CBC-SHA',
266 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256',
267 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384',
268 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256',
269 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384',
270 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256',
271 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384',
272 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA',
273 'TLS-DHE-DSS-WITH-DES-CBC-SHA',
274 'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384',
275 'TLS-CHACHA20-POLY1305-SHA256',
276 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA']
277 priority:
278 type: int
279 description: SSL/TLS cipher suites priority.
280 versions:
281 type: list
282 elements: str
283 description: SSL/TLS versions that the cipher suite can be used with.
284 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
285 ssl_dh_bits:
286 aliases: ['ssl-dh-bits']
287 type: str
288 description: Number of bits to use in the Diffie-Hellman exchange for RSA encryption of SSL sessions.
289 choices: ['768', '1024', '1536', '2048', '3072', '4096']
290 ssl_max_version:
291 aliases: ['ssl-max-version']
292 type: str
293 description: Highest SSL/TLS version acceptable from a server.
294 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
295 ssl_min_version:
296 aliases: ['ssl-min-version']
297 type: str
298 description: Lowest SSL/TLS version acceptable from a server.
299 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
300 ssl_vpn_web_portal:
301 aliases: ['ssl-vpn-web-portal']
302 type: str
303 description: SSL-VPN web portal.
304 url_map:
305 aliases: ['url-map']
306 type: str
307 description: URL pattern to match.
308 url_map_type:
309 aliases: ['url-map-type']
310 type: str
311 description: Type of url-map.
312 choices: ['sub-string', 'wildcard', 'regex']
313 virtual_host:
314 aliases: ['virtual-host']
315 type: str
316 description: Virtual host.
317 ssl_renegotiation:
318 aliases: ['ssl-renegotiation']
319 type: str
320 description: Enable/disable secure renegotiation to comply with RFC 5746.
321 choices: ['disable', 'enable']
322 h2_support:
323 aliases: ['h2-support']
324 type: str
325 description: HTTP2 support, default=Enable.
326 choices: ['disable', 'enable']
327 h3_support:
328 aliases: ['h3-support']
329 type: str
330 description: HTTP3/QUIC support, default=Disable.
331 choices: ['disable', 'enable']
332 quic:
333 type: dict
334 description: Quic.
335 suboptions:
336 ack_delay_exponent:
337 aliases: ['ack-delay-exponent']
338 type: int
339 description: ACK delay exponent
340 active_connection_id_limit:
341 aliases: ['active-connection-id-limit']
342 type: int
343 description: Active connection ID limit
344 active_migration:
345 aliases: ['active-migration']
346 type: str
347 description: Enable/disable active migration
348 choices: ['disable', 'enable']
349 grease_quic_bit:
350 aliases: ['grease-quic-bit']
351 type: str
352 description: Enable/disable grease QUIC bit
353 choices: ['disable', 'enable']
354 max_ack_delay:
355 aliases: ['max-ack-delay']
356 type: int
357 description: Maximum ACK delay in milliseconds
358 max_datagram_frame_size:
359 aliases: ['max-datagram-frame-size']
360 type: int
361 description: Maximum datagram frame size in bytes
362 max_idle_timeout:
363 aliases: ['max-idle-timeout']
364 type: int
365 description: Maximum idle timeout milliseconds
366 max_udp_payload_size:
367 aliases: ['max-udp-payload-size']
368 type: int
369 description: Maximum UDP payload size in bytes
370 api_gateway6:
371 aliases: ['api-gateway6']
372 type: list
373 elements: dict
374 description: Api gateway6.
375 suboptions:
376 application:
377 type: raw
378 description: (list) SaaS application controlled by this Access Proxy.
379 http_cookie_age:
380 aliases: ['http-cookie-age']
381 type: int
382 description: Time in minutes that client web browsers should keep a cookie.
383 http_cookie_domain:
384 aliases: ['http-cookie-domain']
385 type: str
386 description: Domain that HTTP cookie persistence should apply to.
387 http_cookie_domain_from_host:
388 aliases: ['http-cookie-domain-from-host']
389 type: str
390 description: Enable/disable use of HTTP cookie domain from host field in HTTP.
391 choices: ['disable', 'enable']
392 http_cookie_generation:
393 aliases: ['http-cookie-generation']
394 type: int
395 description: Generation of HTTP cookie to be accepted.
396 http_cookie_path:
397 aliases: ['http-cookie-path']
398 type: str
399 description: Limit HTTP cookie persistence to the specified path.
400 http_cookie_share:
401 aliases: ['http-cookie-share']
402 type: str
403 description: Control sharing of cookies across API Gateway.
404 choices: ['disable', 'same-ip']
405 https_cookie_secure:
406 aliases: ['https-cookie-secure']
407 type: str
408 description: Enable/disable verification that inserted HTTPS cookies are secure.
409 choices: ['disable', 'enable']
410 id:
411 type: int
412 description: API Gateway ID.
413 ldb_method:
414 aliases: ['ldb-method']
415 type: str
416 description: Method used to distribute sessions to real servers.
417 choices: ['static', 'round-robin', 'weighted', 'first-alive', 'http-host']
418 persistence:
419 type: str
420 description: Configure how to make sure that clients connect to the same server every time they make a request that is part of ...
421 choices: ['none', 'http-cookie']
422 realservers:
423 type: list
424 elements: dict
425 description: Realservers.
426 suboptions:
427 addr_type:
428 aliases: ['addr-type']
429 type: str
430 description: Type of address.
431 choices: ['fqdn', 'ip']
432 address:
433 type: str
434 description: Address or address group of the real server.
435 domain:
436 type: str
437 description: Wildcard domain name of the real server.
438 health_check:
439 aliases: ['health-check']
440 type: str
441 description: Enable to check the responsiveness of the real server before forwarding traffic.
442 choices: ['disable', 'enable']
443 health_check_proto:
444 aliases: ['health-check-proto']
445 type: str
446 description: Protocol of the health check monitor to use when polling to determine servers connectivity status.
447 choices: ['ping', 'http', 'tcp-connect']
448 holddown_interval:
449 aliases: ['holddown-interval']
450 type: str
451 description: Enable/disable holddown timer.
452 choices: ['disable', 'enable']
453 http_host:
454 aliases: ['http-host']
455 type: str
456 description: HTTP server domain name in HTTP header.
457 id:
458 type: int
459 description: Real server ID.
460 ip:
461 type: str
462 description: IPv6 address of the real server.
463 mappedport:
464 type: raw
465 description: (list or str) Port for communicating with the real server.
466 port:
467 type: int
468 description: Port for communicating with the real server.
469 ssh_client_cert:
470 aliases: ['ssh-client-cert']
471 type: str
472 description: Set access-proxy SSH client certificate profile.
473 ssh_host_key:
474 aliases: ['ssh-host-key']
475 type: raw
476 description: (list) One or more server host key.
477 ssh_host_key_validation:
478 aliases: ['ssh-host-key-validation']
479 type: str
480 description: Enable/disable SSH real server host key validation.
481 choices: ['disable', 'enable']
482 status:
483 type: str
484 description: Set the status of the real server to active so that it can accept traffic, or on standby or disabled so no...
485 choices: ['active', 'standby', 'disable']
486 type:
487 type: str
488 description: TCP forwarding server type.
489 choices: ['tcp-forwarding', 'ssh']
490 weight:
491 type: int
492 description: Weight of the real server.
493 translate_host:
494 aliases: ['translate-host']
495 type: str
496 description: Enable/disable translation of hostname/IP from virtual server to real server.
497 choices: ['disable', 'enable']
498 external_auth:
499 aliases: ['external-auth']
500 type: str
501 description: Enable/disable use of external browser as user-agent for SAML user authentication.
502 choices: ['disable', 'enable']
503 tunnel_encryption:
504 aliases: ['tunnel-encryption']
505 type: str
506 description: Tunnel encryption.
507 choices: ['disable', 'enable']
508 verify_cert:
509 aliases: ['verify-cert']
510 type: str
511 description: Enable/disable certificate verification of the real server.
512 choices: ['disable', 'enable']
513 saml_redirect:
514 aliases: ['saml-redirect']
515 type: str
516 description: Enable/disable SAML redirection after successful authentication.
517 choices: ['disable', 'enable']
518 saml_server:
519 aliases: ['saml-server']
520 type: str
521 description: SAML service provider configuration for VIP authentication.
522 service:
523 type: str
524 description: Service.
525 choices: ['http', 'https', 'tcp-forwarding', 'samlsp', 'web-portal', 'saas']
526 ssl_algorithm:
527 aliases: ['ssl-algorithm']
528 type: str
529 description: Permitted encryption algorithms for the server side of SSL full mode sessions according to encryption strength.
530 choices: ['high', 'medium', 'low']
531 ssl_cipher_suites:
532 aliases: ['ssl-cipher-suites']
533 type: list
534 elements: dict
535 description: Ssl cipher suites.
536 suboptions:
537 cipher:
538 type: str
539 description: Cipher suite name.
540 choices: ['TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA',
541 'TLS-RSA-WITH-DES-CBC-SHA',
542 'TLS-RSA-WITH-3DES-EDE-CBC-SHA',
543 'TLS-RSA-WITH-AES-128-CBC-SHA',
544 'TLS-RSA-WITH-AES-256-CBC-SHA',
545 'TLS-RSA-WITH-AES-128-CBC-SHA256',
546 'TLS-RSA-WITH-AES-256-CBC-SHA256',
547 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA',
548 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA',
549 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256',
550 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256',
551 'TLS-RSA-WITH-SEED-CBC-SHA',
552 'TLS-RSA-WITH-ARIA-128-CBC-SHA256',
553 'TLS-RSA-WITH-ARIA-256-CBC-SHA384',
554 'TLS-DHE-RSA-WITH-DES-CBC-SHA',
555 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA',
556 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA',
557 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA',
558 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256',
559 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256',
560 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA',
561 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA',
562 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256',
563 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256',
564 'TLS-DHE-RSA-WITH-SEED-CBC-SHA',
565 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256',
566 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384',
567 'TLS-ECDHE-RSA-WITH-RC4-128-SHA',
568 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA',
569 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA',
570 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA',
571 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
572 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256',
573 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
574 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256',
575 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384',
576 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA',
577 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA',
578 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256',
579 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256',
580 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256',
581 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384',
582 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256',
583 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256',
584 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384',
585 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384',
586 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA',
587 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256',
588 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256',
589 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384',
590 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384',
591 'TLS-RSA-WITH-AES-128-GCM-SHA256',
592 'TLS-RSA-WITH-AES-256-GCM-SHA384',
593 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA',
594 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA',
595 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256',
596 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256',
597 'TLS-DHE-DSS-WITH-SEED-CBC-SHA',
598 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256',
599 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384',
600 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256',
601 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384',
602 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256',
603 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384',
604 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA',
605 'TLS-DHE-DSS-WITH-DES-CBC-SHA',
606 'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384',
607 'TLS-CHACHA20-POLY1305-SHA256',
608 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA']
609 priority:
610 type: int
611 description: SSL/TLS cipher suites priority.
612 versions:
613 type: list
614 elements: str
615 description: SSL/TLS versions that the cipher suite can be used with.
616 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
617 ssl_dh_bits:
618 aliases: ['ssl-dh-bits']
619 type: str
620 description: Number of bits to use in the Diffie-Hellman exchange for RSA encryption of SSL sessions.
621 choices: ['768', '1024', '1536', '2048', '3072', '4096']
622 ssl_max_version:
623 aliases: ['ssl-max-version']
624 type: str
625 description: Highest SSL/TLS version acceptable from a server.
626 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
627 ssl_min_version:
628 aliases: ['ssl-min-version']
629 type: str
630 description: Lowest SSL/TLS version acceptable from a server.
631 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
632 ssl_vpn_web_portal:
633 aliases: ['ssl-vpn-web-portal']
634 type: str
635 description: SSL-VPN web portal.
636 url_map:
637 aliases: ['url-map']
638 type: str
639 description: URL pattern to match.
640 url_map_type:
641 aliases: ['url-map-type']
642 type: str
643 description: Type of url-map.
644 choices: ['sub-string', 'wildcard', 'regex']
645 virtual_host:
646 aliases: ['virtual-host']
647 type: str
648 description: Virtual host.
649 ssl_renegotiation:
650 aliases: ['ssl-renegotiation']
651 type: str
652 description: Enable/disable secure renegotiation to comply with RFC 5746.
653 choices: ['disable', 'enable']
654 h2_support:
655 aliases: ['h2-support']
656 type: str
657 description: HTTP2 support, default=Enable.
658 choices: ['disable', 'enable']
659 h3_support:
660 aliases: ['h3-support']
661 type: str
662 description: HTTP3/QUIC support, default=Disable.
663 choices: ['disable', 'enable']
664 quic:
665 type: dict
666 description: Quic.
667 suboptions:
668 ack_delay_exponent:
669 aliases: ['ack-delay-exponent']
670 type: int
671 description: ACK delay exponent
672 active_connection_id_limit:
673 aliases: ['active-connection-id-limit']
674 type: int
675 description: Active connection ID limit
676 active_migration:
677 aliases: ['active-migration']
678 type: str
679 description: Enable/disable active migration
680 choices: ['disable', 'enable']
681 grease_quic_bit:
682 aliases: ['grease-quic-bit']
683 type: str
684 description: Enable/disable grease QUIC bit
685 choices: ['disable', 'enable']
686 max_ack_delay:
687 aliases: ['max-ack-delay']
688 type: int
689 description: Maximum ACK delay in milliseconds
690 max_datagram_frame_size:
691 aliases: ['max-datagram-frame-size']
692 type: int
693 description: Maximum datagram frame size in bytes
694 max_idle_timeout:
695 aliases: ['max-idle-timeout']
696 type: int
697 description: Maximum idle timeout milliseconds
698 max_udp_payload_size:
699 aliases: ['max-udp-payload-size']
700 type: int
701 description: Maximum UDP payload size in bytes
702 auth_portal:
703 aliases: ['auth-portal']
704 type: str
705 description: Enable/disable authentication portal.
706 choices: ['disable', 'enable']
707 auth_virtual_host:
708 aliases: ['auth-virtual-host']
709 type: str
710 description: Virtual host for authentication portal.
711 client_cert:
712 aliases: ['client-cert']
713 type: str
714 description: Enable/disable to request client certificate.
715 choices: ['disable', 'enable']
716 decrypted_traffic_mirror:
717 aliases: ['decrypted-traffic-mirror']
718 type: str
719 description: Decrypted traffic mirror.
720 empty_cert_action:
721 aliases: ['empty-cert-action']
722 type: str
723 description: Action of an empty client certificate.
724 choices: ['block', 'accept', 'accept-unmanageable']
725 log_blocked_traffic:
726 aliases: ['log-blocked-traffic']
727 type: str
728 description: Enable/disable logging of blocked traffic.
729 choices: ['disable', 'enable']
730 name:
731 type: str
732 description: Access Proxy name.
733 required: true
734 user_agent_detect:
735 aliases: ['user-agent-detect']
736 type: str
737 description: Enable/disable to detect device type by HTTP user-agent if no client certificate provided.
738 choices: ['disable', 'enable']
739 vip:
740 type: str
741 description: Virtual IP name.
742 http_supported_max_version:
743 aliases: ['http-supported-max-version']
744 type: str
745 description: Maximum supported HTTP versions.
746 choices: ['http1', 'http2']
747 svr_pool_multiplex:
748 aliases: ['svr-pool-multiplex']
749 type: str
750 description: Enable/disable server pool multiplexing.
751 choices: ['disable', 'enable']
752 svr_pool_server_max_request:
753 aliases: ['svr-pool-server-max-request']
754 type: int
755 description: Maximum number of requests that servers in server pool handle before disconnecting
756 svr_pool_ttl:
757 aliases: ['svr-pool-ttl']
758 type: int
759 description: Time-to-live in the server pool for idle connections to servers.
760 svr_pool_server_max_concurrent_request:
761 aliases: ['svr-pool-server-max-concurrent-request']
762 type: int
763 description: Maximum number of concurrent requests that servers in server pool could handle
764 '''
765
766 EXAMPLES = '''
767 - name: Example playbook (generated based on argument schema)
768 hosts: fortimanagers
769 connection: httpapi
770 gather_facts: false
771 tasks:
772 - name: Configure IPv6 access proxy.
773 fortinet.fortimanager.fmgr_firewall_accessproxy6:
774 # workspace_locking_adom: <global or your adom name>
775 adom: <your own value>
776 state: present # <value in [present, absent]>
777 firewall_accessproxy6:
778 name: "your value" # Required variable, string
779 # add_vhost_domain_to_dnsdb: <value in [disable, enable]>
780 # api_gateway:
781 # - application: <list or string>
782 # http_cookie_age: <integer>
783 # http_cookie_domain: <string>
784 # http_cookie_domain_from_host: <value in [disable, enable]>
785 # http_cookie_generation: <integer>
786 # http_cookie_path: <string>
787 # http_cookie_share: <value in [disable, same-ip]>
788 # https_cookie_secure: <value in [disable, enable]>
789 # id: <integer>
790 # ldb_method: <value in [static, round-robin, weighted, ...]>
791 # persistence: <value in [none, http-cookie]>
792 # realservers:
793 # - addr_type: <value in [fqdn, ip]>
794 # address: <string>
795 # domain: <string>
796 # health_check: <value in [disable, enable]>
797 # health_check_proto: <value in [ping, http, tcp-connect]>
798 # holddown_interval: <value in [disable, enable]>
799 # http_host: <string>
800 # id: <integer>
801 # ip: <string>
802 # mappedport: <list or string>
803 # port: <integer>
804 # ssh_client_cert: <string>
805 # ssh_host_key: <list or string>
806 # ssh_host_key_validation: <value in [disable, enable]>
807 # status: <value in [active, standby, disable]>
808 # type: <value in [tcp-forwarding, ssh]>
809 # weight: <integer>
810 # translate_host: <value in [disable, enable]>
811 # external_auth: <value in [disable, enable]>
812 # tunnel_encryption: <value in [disable, enable]>
813 # verify_cert: <value in [disable, enable]>
814 # saml_redirect: <value in [disable, enable]>
815 # saml_server: <string>
816 # service: <value in [http, https, tcp-forwarding, ...]>
817 # ssl_algorithm: <value in [high, medium, low]>
818 # ssl_cipher_suites:
819 # - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]>
820 # priority: <integer>
821 # versions: ["tls-1.0", "tls-1.1", "tls-1.2", "tls-1.3"]
822 # ssl_dh_bits: <value in [768, 1024, 1536, ...]>
823 # ssl_max_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]>
824 # ssl_min_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]>
825 # ssl_vpn_web_portal: <string>
826 # url_map: <string>
827 # url_map_type: <value in [sub-string, wildcard, regex]>
828 # virtual_host: <string>
829 # ssl_renegotiation: <value in [disable, enable]>
830 # h2_support: <value in [disable, enable]>
831 # h3_support: <value in [disable, enable]>
832 # quic:
833 # ack_delay_exponent: <integer>
834 # active_connection_id_limit: <integer>
835 # active_migration: <value in [disable, enable]>
836 # grease_quic_bit: <value in [disable, enable]>
837 # max_ack_delay: <integer>
838 # max_datagram_frame_size: <integer>
839 # max_idle_timeout: <integer>
840 # max_udp_payload_size: <integer>
841 # api_gateway6:
842 # - application: <list or string>
843 # http_cookie_age: <integer>
844 # http_cookie_domain: <string>
845 # http_cookie_domain_from_host: <value in [disable, enable]>
846 # http_cookie_generation: <integer>
847 # http_cookie_path: <string>
848 # http_cookie_share: <value in [disable, same-ip]>
849 # https_cookie_secure: <value in [disable, enable]>
850 # id: <integer>
851 # ldb_method: <value in [static, round-robin, weighted, ...]>
852 # persistence: <value in [none, http-cookie]>
853 # realservers:
854 # - addr_type: <value in [fqdn, ip]>
855 # address: <string>
856 # domain: <string>
857 # health_check: <value in [disable, enable]>
858 # health_check_proto: <value in [ping, http, tcp-connect]>
859 # holddown_interval: <value in [disable, enable]>
860 # http_host: <string>
861 # id: <integer>
862 # ip: <string>
863 # mappedport: <list or string>
864 # port: <integer>
865 # ssh_client_cert: <string>
866 # ssh_host_key: <list or string>
867 # ssh_host_key_validation: <value in [disable, enable]>
868 # status: <value in [active, standby, disable]>
869 # type: <value in [tcp-forwarding, ssh]>
870 # weight: <integer>
871 # translate_host: <value in [disable, enable]>
872 # external_auth: <value in [disable, enable]>
873 # tunnel_encryption: <value in [disable, enable]>
874 # verify_cert: <value in [disable, enable]>
875 # saml_redirect: <value in [disable, enable]>
876 # saml_server: <string>
877 # service: <value in [http, https, tcp-forwarding, ...]>
878 # ssl_algorithm: <value in [high, medium, low]>
879 # ssl_cipher_suites:
880 # - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]>
881 # priority: <integer>
882 # versions: ["tls-1.0", "tls-1.1", "tls-1.2", "tls-1.3"]
883 # ssl_dh_bits: <value in [768, 1024, 1536, ...]>
884 # ssl_max_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]>
885 # ssl_min_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]>
886 # ssl_vpn_web_portal: <string>
887 # url_map: <string>
888 # url_map_type: <value in [sub-string, wildcard, regex]>
889 # virtual_host: <string>
890 # ssl_renegotiation: <value in [disable, enable]>
891 # h2_support: <value in [disable, enable]>
892 # h3_support: <value in [disable, enable]>
893 # quic:
894 # ack_delay_exponent: <integer>
895 # active_connection_id_limit: <integer>
896 # active_migration: <value in [disable, enable]>
897 # grease_quic_bit: <value in [disable, enable]>
898 # max_ack_delay: <integer>
899 # max_datagram_frame_size: <integer>
900 # max_idle_timeout: <integer>
901 # max_udp_payload_size: <integer>
902 # auth_portal: <value in [disable, enable]>
903 # auth_virtual_host: <string>
904 # client_cert: <value in [disable, enable]>
905 # decrypted_traffic_mirror: <string>
906 # empty_cert_action: <value in [block, accept, accept-unmanageable]>
907 # log_blocked_traffic: <value in [disable, enable]>
908 # user_agent_detect: <value in [disable, enable]>
909 # vip: <string>
910 # http_supported_max_version: <value in [http1, http2]>
911 # svr_pool_multiplex: <value in [disable, enable]>
912 # svr_pool_server_max_request: <integer>
913 # svr_pool_ttl: <integer>
914 # svr_pool_server_max_concurrent_request: <integer>
915 '''
916
917 RETURN = '''
918 meta:
919 description: The result of the request.
920 type: dict
921 returned: always
922 contains:
923 request_url:
924 description: The full url requested.
925 returned: always
926 type: str
927 sample: /sys/login/user
928 response_code:
929 description: The status of api request.
930 returned: always
931 type: int
932 sample: 0
933 response_data:
934 description: The api response.
935 type: list
936 returned: always
937 response_message:
938 description: The descriptive message of the api response.
939 type: str
940 returned: always
941 sample: OK.
942 system_information:
943 description: The information of the target system.
944 type: dict
945 returned: always
946 rc:
947 description: The status the request.
948 type: int
949 returned: always
950 sample: 0
951 version_check_warning:
952 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
953 type: list
954 returned: complex
955 '''
956 from ansible.module_utils.basic import AnsibleModule
957 from ansible.module_utils.connection import Connection
958 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
959 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
960
961
962 def main():
963 urls_list = [
964 '/pm/config/adom/{adom}/obj/firewall/access-proxy6',
965 '/pm/config/global/obj/firewall/access-proxy6'
966 ]
967 module_arg_spec = {
968 'adom': {'required': True, 'type': 'str'},
969 'revision_note': {'type': 'str'},
970 'firewall_accessproxy6': {
971 'type': 'dict', 'v_range': [['7.2.1', '']],
972 'options': {
973 'add-vhost-domain-to-dnsdb': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
974 'api-gateway': {
975 'v_range': [['7.2.1', '']],
976 'type': 'list',
977 'options': {
978 'application': {'v_range': [['7.2.1', '']], 'type': 'raw'},
979 'http-cookie-age': {'v_range': [['7.2.1', '']], 'type': 'int'},
980 'http-cookie-domain': {'v_range': [['7.2.1', '']], 'type': 'str'},
981 'http-cookie-domain-from-host': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
982 'http-cookie-generation': {'v_range': [['7.2.1', '']], 'type': 'int'},
983 'http-cookie-path': {'v_range': [['7.2.1', '']], 'type': 'str'},
984 'http-cookie-share': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'same-ip'], 'type': 'str'},
985 'https-cookie-secure': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
986 'id': {'v_range': [['7.2.1', '']], 'type': 'int'},
987 'ldb-method': {
988 'v_range': [['7.2.1', '']],
989 'choices': ['static', 'round-robin', 'weighted', 'first-alive', 'http-host'],
990 'type': 'str'
991 },
992 'persistence': {'v_range': [['7.2.1', '']], 'choices': ['none', 'http-cookie'], 'type': 'str'},
993 'realservers': {
994 'v_range': [['7.2.1', '']],
995 'type': 'list',
996 'options': {
997 'addr-type': {'v_range': [['7.2.1', '']], 'choices': ['fqdn', 'ip'], 'type': 'str'},
998 'address': {'v_range': [['7.2.1', '']], 'type': 'str'},
999 'domain': {'v_range': [['7.2.1', '']], 'type': 'str'},
1000 'health-check': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1001 'health-check-proto': {'v_range': [['7.2.1', '']], 'choices': ['ping', 'http', 'tcp-connect'], 'type': 'str'},
1002 'holddown-interval': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1003 'http-host': {'v_range': [['7.2.1', '']], 'type': 'str'},
1004 'id': {'v_range': [['7.2.1', '']], 'type': 'int'},
1005 'ip': {'v_range': [['7.2.1', '']], 'type': 'str'},
1006 'mappedport': {'v_range': [['7.2.1', '']], 'type': 'raw'},
1007 'port': {'v_range': [['7.2.1', '']], 'type': 'int'},
1008 'ssh-client-cert': {'v_range': [['7.2.1', '']], 'type': 'str'},
1009 'ssh-host-key': {'v_range': [['7.2.1', '']], 'no_log': True, 'type': 'raw'},
1010 'ssh-host-key-validation': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1011 'status': {'v_range': [['7.2.1', '']], 'choices': ['active', 'standby', 'disable'], 'type': 'str'},
1012 'type': {'v_range': [['7.2.1', '']], 'choices': ['tcp-forwarding', 'ssh'], 'type': 'str'},
1013 'weight': {'v_range': [['7.2.1', '']], 'type': 'int'},
1014 'translate-host': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1015 'external-auth': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1016 'tunnel-encryption': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1017 'verify-cert': {'v_range': [['7.4.8', '7.4.10'], ['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1018 },
1019 'elements': 'dict'
1020 },
1021 'saml-redirect': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1022 'saml-server': {'v_range': [['7.2.1', '']], 'type': 'str'},
1023 'service': {
1024 'v_range': [['7.2.1', '']],
1025 'choices': ['http', 'https', 'tcp-forwarding', 'samlsp', 'web-portal', 'saas'],
1026 'type': 'str'
1027 },
1028 'ssl-algorithm': {'v_range': [['7.2.1', '']], 'choices': ['high', 'medium', 'low'], 'type': 'str'},
1029 'ssl-cipher-suites': {
1030 'v_range': [['7.2.1', '']],
1031 'type': 'list',
1032 'options': {
1033 'cipher': {
1034 'v_range': [['7.2.1', '']],
1035 'choices': [
1036 'TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', 'TLS-RSA-WITH-DES-CBC-SHA',
1037 'TLS-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA',
1038 'TLS-RSA-WITH-AES-128-CBC-SHA256', 'TLS-RSA-WITH-AES-256-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA',
1039 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256',
1040 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-RSA-WITH-SEED-CBC-SHA', 'TLS-RSA-WITH-ARIA-128-CBC-SHA256',
1041 'TLS-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-RSA-WITH-DES-CBC-SHA', 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA',
1042 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256',
1043 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA',
1044 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256',
1045 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-SEED-CBC-SHA',
1046 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-RC4-128-SHA',
1047 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA',
1048 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
1049 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
1050 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA',
1051 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256',
1052 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384',
1053 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256',
1054 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384',
1055 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256',
1056 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384',
1057 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', 'TLS-RSA-WITH-AES-128-GCM-SHA256', 'TLS-RSA-WITH-AES-256-GCM-SHA384',
1058 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA',
1059 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256',
1060 'TLS-DHE-DSS-WITH-SEED-CBC-SHA', 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384',
1061 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384',
1062 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384',
1063 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-DSS-WITH-DES-CBC-SHA', 'TLS-AES-128-GCM-SHA256',
1064 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA'
1065 ],
1066 'type': 'str'
1067 },
1068 'priority': {'v_range': [['7.2.1', '']], 'type': 'int'},
1069 'versions': {
1070 'v_range': [['7.2.1', '']],
1071 'type': 'list',
1072 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'],
1073 'elements': 'str'
1074 }
1075 },
1076 'elements': 'dict'
1077 },
1078 'ssl-dh-bits': {'v_range': [['7.2.1', '']], 'choices': ['768', '1024', '1536', '2048', '3072', '4096'], 'type': 'str'},
1079 'ssl-max-version': {'v_range': [['7.2.1', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'},
1080 'ssl-min-version': {'v_range': [['7.2.1', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'},
1081 'ssl-vpn-web-portal': {'v_range': [['7.2.1', '']], 'type': 'str'},
1082 'url-map': {'v_range': [['7.2.1', '']], 'type': 'str'},
1083 'url-map-type': {'v_range': [['7.2.1', '']], 'choices': ['sub-string', 'wildcard', 'regex'], 'type': 'str'},
1084 'virtual-host': {'v_range': [['7.2.1', '']], 'type': 'str'},
1085 'ssl-renegotiation': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1086 'h2-support': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1087 'h3-support': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1088 'quic': {
1089 'v_range': [['7.4.1', '']],
1090 'type': 'dict',
1091 'options': {
1092 'ack-delay-exponent': {'v_range': [['7.4.1', '']], 'type': 'int'},
1093 'active-connection-id-limit': {'v_range': [['7.4.1', '']], 'type': 'int'},
1094 'active-migration': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1095 'grease-quic-bit': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1096 'max-ack-delay': {'v_range': [['7.4.1', '']], 'type': 'int'},
1097 'max-datagram-frame-size': {'v_range': [['7.4.1', '']], 'type': 'int'},
1098 'max-idle-timeout': {'v_range': [['7.4.1', '']], 'type': 'int'},
1099 'max-udp-payload-size': {'v_range': [['7.4.1', '']], 'type': 'int'}
1100 }
1101 }
1102 },
1103 'elements': 'dict'
1104 },
1105 'api-gateway6': {
1106 'v_range': [['7.2.1', '']],
1107 'type': 'list',
1108 'options': {
1109 'application': {'v_range': [['7.2.1', '']], 'type': 'raw'},
1110 'http-cookie-age': {'v_range': [['7.2.1', '']], 'type': 'int'},
1111 'http-cookie-domain': {'v_range': [['7.2.1', '']], 'type': 'str'},
1112 'http-cookie-domain-from-host': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1113 'http-cookie-generation': {'v_range': [['7.2.1', '']], 'type': 'int'},
1114 'http-cookie-path': {'v_range': [['7.2.1', '']], 'type': 'str'},
1115 'http-cookie-share': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'same-ip'], 'type': 'str'},
1116 'https-cookie-secure': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1117 'id': {'v_range': [['7.2.1', '']], 'type': 'int'},
1118 'ldb-method': {
1119 'v_range': [['7.2.1', '']],
1120 'choices': ['static', 'round-robin', 'weighted', 'first-alive', 'http-host'],
1121 'type': 'str'
1122 },
1123 'persistence': {'v_range': [['7.2.1', '']], 'choices': ['none', 'http-cookie'], 'type': 'str'},
1124 'realservers': {
1125 'v_range': [['7.2.1', '']],
1126 'type': 'list',
1127 'options': {
1128 'addr-type': {'v_range': [['7.2.1', '']], 'choices': ['fqdn', 'ip'], 'type': 'str'},
1129 'address': {'v_range': [['7.2.1', '']], 'type': 'str'},
1130 'domain': {'v_range': [['7.2.1', '']], 'type': 'str'},
1131 'health-check': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1132 'health-check-proto': {'v_range': [['7.2.1', '']], 'choices': ['ping', 'http', 'tcp-connect'], 'type': 'str'},
1133 'holddown-interval': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1134 'http-host': {'v_range': [['7.2.1', '']], 'type': 'str'},
1135 'id': {'v_range': [['7.2.1', '']], 'type': 'int'},
1136 'ip': {'v_range': [['7.2.1', '']], 'type': 'str'},
1137 'mappedport': {'v_range': [['7.2.1', '']], 'type': 'raw'},
1138 'port': {'v_range': [['7.2.1', '']], 'type': 'int'},
1139 'ssh-client-cert': {'v_range': [['7.2.1', '']], 'type': 'str'},
1140 'ssh-host-key': {'v_range': [['7.2.1', '']], 'no_log': True, 'type': 'raw'},
1141 'ssh-host-key-validation': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1142 'status': {'v_range': [['7.2.1', '']], 'choices': ['active', 'standby', 'disable'], 'type': 'str'},
1143 'type': {'v_range': [['7.2.1', '']], 'choices': ['tcp-forwarding', 'ssh'], 'type': 'str'},
1144 'weight': {'v_range': [['7.2.1', '']], 'type': 'int'},
1145 'translate-host': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1146 'external-auth': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1147 'tunnel-encryption': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1148 'verify-cert': {'v_range': [['7.4.8', '7.4.10'], ['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1149 },
1150 'elements': 'dict'
1151 },
1152 'saml-redirect': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1153 'saml-server': {'v_range': [['7.2.1', '']], 'type': 'str'},
1154 'service': {
1155 'v_range': [['7.2.1', '']],
1156 'choices': ['http', 'https', 'tcp-forwarding', 'samlsp', 'web-portal', 'saas'],
1157 'type': 'str'
1158 },
1159 'ssl-algorithm': {'v_range': [['7.2.1', '']], 'choices': ['high', 'medium', 'low'], 'type': 'str'},
1160 'ssl-cipher-suites': {
1161 'v_range': [['7.2.1', '']],
1162 'type': 'list',
1163 'options': {
1164 'cipher': {
1165 'v_range': [['7.2.1', '']],
1166 'choices': [
1167 'TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', 'TLS-RSA-WITH-DES-CBC-SHA',
1168 'TLS-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA',
1169 'TLS-RSA-WITH-AES-128-CBC-SHA256', 'TLS-RSA-WITH-AES-256-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA',
1170 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256',
1171 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-RSA-WITH-SEED-CBC-SHA', 'TLS-RSA-WITH-ARIA-128-CBC-SHA256',
1172 'TLS-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-RSA-WITH-DES-CBC-SHA', 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA',
1173 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256',
1174 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA',
1175 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256',
1176 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-SEED-CBC-SHA',
1177 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-RC4-128-SHA',
1178 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA',
1179 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
1180 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
1181 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA',
1182 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256',
1183 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384',
1184 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256',
1185 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384',
1186 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256',
1187 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384',
1188 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', 'TLS-RSA-WITH-AES-128-GCM-SHA256', 'TLS-RSA-WITH-AES-256-GCM-SHA384',
1189 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA',
1190 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256',
1191 'TLS-DHE-DSS-WITH-SEED-CBC-SHA', 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384',
1192 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384',
1193 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384',
1194 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-DSS-WITH-DES-CBC-SHA', 'TLS-AES-128-GCM-SHA256',
1195 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA'
1196 ],
1197 'type': 'str'
1198 },
1199 'priority': {'v_range': [['7.2.1', '']], 'type': 'int'},
1200 'versions': {
1201 'v_range': [['7.2.1', '']],
1202 'type': 'list',
1203 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'],
1204 'elements': 'str'
1205 }
1206 },
1207 'elements': 'dict'
1208 },
1209 'ssl-dh-bits': {'v_range': [['7.2.1', '']], 'choices': ['768', '1024', '1536', '2048', '3072', '4096'], 'type': 'str'},
1210 'ssl-max-version': {'v_range': [['7.2.1', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'},
1211 'ssl-min-version': {'v_range': [['7.2.1', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'},
1212 'ssl-vpn-web-portal': {'v_range': [['7.2.1', '']], 'type': 'str'},
1213 'url-map': {'v_range': [['7.2.1', '']], 'type': 'str'},
1214 'url-map-type': {'v_range': [['7.2.1', '']], 'choices': ['sub-string', 'wildcard', 'regex'], 'type': 'str'},
1215 'virtual-host': {'v_range': [['7.2.1', '']], 'type': 'str'},
1216 'ssl-renegotiation': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1217 'h2-support': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1218 'h3-support': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1219 'quic': {
1220 'v_range': [['7.4.1', '']],
1221 'type': 'dict',
1222 'options': {
1223 'ack-delay-exponent': {'v_range': [['7.4.1', '']], 'type': 'int'},
1224 'active-connection-id-limit': {'v_range': [['7.4.1', '']], 'type': 'int'},
1225 'active-migration': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1226 'grease-quic-bit': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1227 'max-ack-delay': {'v_range': [['7.4.1', '']], 'type': 'int'},
1228 'max-datagram-frame-size': {'v_range': [['7.4.1', '']], 'type': 'int'},
1229 'max-idle-timeout': {'v_range': [['7.4.1', '']], 'type': 'int'},
1230 'max-udp-payload-size': {'v_range': [['7.4.1', '']], 'type': 'int'}
1231 }
1232 }
1233 },
1234 'elements': 'dict'
1235 },
1236 'auth-portal': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1237 'auth-virtual-host': {'v_range': [['7.2.1', '']], 'type': 'str'},
1238 'client-cert': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1239 'decrypted-traffic-mirror': {'v_range': [['7.2.1', '']], 'type': 'str'},
1240 'empty-cert-action': {'v_range': [['7.2.1', '']], 'choices': ['block', 'accept', 'accept-unmanageable'], 'type': 'str'},
1241 'log-blocked-traffic': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1242 'name': {'v_range': [['7.2.1', '']], 'required': True, 'type': 'str'},
1243 'user-agent-detect': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1244 'vip': {'v_range': [['7.2.1', '']], 'type': 'str'},
1245 'http-supported-max-version': {'v_range': [['7.2.2', '']], 'choices': ['http1', 'http2'], 'type': 'str'},
1246 'svr-pool-multiplex': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1247 'svr-pool-server-max-request': {'v_range': [['7.2.2', '']], 'type': 'int'},
1248 'svr-pool-ttl': {'v_range': [['7.2.2', '']], 'type': 'int'},
1249 'svr-pool-server-max-concurrent-request': {'v_range': [['7.4.1', '']], 'type': 'int'}
1250 }
1251 }
1252 }
1253
1254 module_option_spec = get_module_arg_spec('full crud')
1255 module_arg_spec.update(module_option_spec)
1256 check_galaxy_version(module_arg_spec)
1257 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'firewall_accessproxy6'),
1258 supports_check_mode=True)
1259 if not module._socket_path:
1260 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
1261 connection = Connection(module._socket_path)
1262 fmgr = NAPIManager('full crud', module_arg_spec, urls_list,
1263 'name', 'data', module, connection)
1264 fmgr.process_crud()
1265 module.exit_json(meta=module.params)
1266
1267
1268 if __name__ == '__main__':
1269 main()