Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_vpn_ssl_settings.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_vpn_ssl_settings
15 short_description: Configure SSL VPN.
16 version_added: "2.1.0"
17 extends_documentation_fragment:
18 - fortinet.fortimanager.general
19 - fortinet.fortimanager.general.partial_crud
20 options:
21 device:
22 description: The parameter (device) in requested url.
23 type: str
24 required: true
25 vdom:
26 description: The parameter (vdom) in requested url.
27 type: str
28 required: true
29 vpn_ssl_settings:
30 description: The top level parameters set.
31 required: false
32 type: dict
33 suboptions:
34 algorithm:
35 type: str
36 description: Force the SSL VPN security level.
37 choices: ['default', 'high', 'low', 'medium']
38 auth_session_check_source_ip:
39 aliases: ['auth-session-check-source-ip']
40 type: str
41 description: Enable/disable checking of source IP for authentication session.
42 choices: ['disable', 'enable']
43 auth_timeout:
44 aliases: ['auth-timeout']
45 type: int
46 description: SSL VPN authentication timeout
47 authentication_rule:
48 aliases: ['authentication-rule']
49 type: list
50 elements: dict
51 description: Authentication rule.
52 suboptions:
53 auth:
54 type: str
55 description: SSL VPN authentication method restriction.
56 choices: ['any', 'local', 'radius', 'ldap', 'tacacs+', 'peer']
57 cipher:
58 type: str
59 description: SSL VPN cipher strength.
60 choices: ['any', 'high', 'medium']
61 client_cert:
62 aliases: ['client-cert']
63 type: str
64 description: Enable/disable SSL VPN client certificate restrictive.
65 choices: ['disable', 'enable']
66 groups:
67 type: raw
68 description: (list or str) User groups.
69 id:
70 type: int
71 description: ID
72 portal:
73 type: str
74 description: SSL VPN portal.
75 realm:
76 type: str
77 description: SSL VPN realm.
78 source_address:
79 aliases: ['source-address']
80 type: raw
81 description: (list or str) Source address of incoming traffic.
82 source_address_negate:
83 aliases: ['source-address-negate']
84 type: str
85 description: Enable/disable negated source address match.
86 choices: ['disable', 'enable']
87 source_address6:
88 aliases: ['source-address6']
89 type: raw
90 description: (list or str) IPv6 source address of incoming traffic.
91 source_address6_negate:
92 aliases: ['source-address6-negate']
93 type: str
94 description: Enable/disable negated source IPv6 address match.
95 choices: ['disable', 'enable']
96 source_interface:
97 aliases: ['source-interface']
98 type: raw
99 description: (list or str) SSL VPN source interface of incoming traffic.
100 user_peer:
101 aliases: ['user-peer']
102 type: str
103 description: Name of user peer.
104 users:
105 type: raw
106 description: (list or str) User name.
107 auto_tunnel_static_route:
108 aliases: ['auto-tunnel-static-route']
109 type: str
110 description: Enable/disable to auto-create static routes for the SSL VPN tunnel IP addresses.
111 choices: ['disable', 'enable']
112 banned_cipher:
113 aliases: ['banned-cipher']
114 type: list
115 elements: str
116 description: Select one or more cipher technologies that cannot be used in SSL VPN negotiations.
117 choices: ['RSA', 'DH', 'DHE', 'ECDH', 'ECDHE', 'DSS', 'ECDSA', 'AES', 'AESGCM',
118 'CAMELLIA', '3DES', 'SHA1', 'SHA256', 'SHA384', 'STATIC', 'CHACHA20',
119 'ARIA', 'AESCCM']
120 check_referer:
121 aliases: ['check-referer']
122 type: str
123 description: Enable/disable verification of referer field in HTTP request header.
124 choices: ['disable', 'enable']
125 default_portal:
126 aliases: ['default-portal']
127 type: str
128 description: Default SSL VPN portal.
129 deflate_compression_level:
130 aliases: ['deflate-compression-level']
131 type: int
132 description: Compression level
133 deflate_min_data_size:
134 aliases: ['deflate-min-data-size']
135 type: int
136 description: Minimum amount of data that triggers compression
137 dns_server1:
138 aliases: ['dns-server1']
139 type: str
140 description: DNS server 1.
141 dns_server2:
142 aliases: ['dns-server2']
143 type: str
144 description: DNS server 2.
145 dns_suffix:
146 aliases: ['dns-suffix']
147 type: str
148 description: DNS suffix used for SSL VPN clients.
149 dtls_hello_timeout:
150 aliases: ['dtls-hello-timeout']
151 type: int
152 description: SSLVPN maximum DTLS hello timeout
153 dtls_max_proto_ver:
154 aliases: ['dtls-max-proto-ver']
155 type: str
156 description: DTLS maximum protocol version.
157 choices: ['dtls1-0', 'dtls1-2']
158 dtls_min_proto_ver:
159 aliases: ['dtls-min-proto-ver']
160 type: str
161 description: DTLS minimum protocol version.
162 choices: ['dtls1-0', 'dtls1-2']
163 dtls_tunnel:
164 aliases: ['dtls-tunnel']
165 type: str
166 description: Enable/disable DTLS to prevent eavesdropping, tampering, or message forgery.
167 choices: ['disable', 'enable']
168 encode_2f_sequence:
169 aliases: ['encode-2f-sequence']
170 type: str
171 description: Encode 2F sequence to forward slash in URLs.
172 choices: ['disable', 'enable']
173 encrypt_and_store_password:
174 aliases: ['encrypt-and-store-password']
175 type: str
176 description: Encrypt and store user passwords for SSL VPN web sessions.
177 choices: ['disable', 'enable']
178 force_two_factor_auth:
179 aliases: ['force-two-factor-auth']
180 type: str
181 description: Enable/disable only PKI users with two-factor authentication for SSL VPNs.
182 choices: ['disable', 'enable']
183 header_x_forwarded_for:
184 aliases: ['header-x-forwarded-for']
185 type: str
186 description: Forward the same, add, or remove HTTP header.
187 choices: ['pass', 'add', 'remove']
188 hsts_include_subdomains:
189 aliases: ['hsts-include-subdomains']
190 type: str
191 description: Add HSTS includeSubDomains response header.
192 choices: ['disable', 'enable']
193 http_compression:
194 aliases: ['http-compression']
195 type: str
196 description: Enable/disable to allow HTTP compression over SSL VPN tunnels.
197 choices: ['disable', 'enable']
198 http_only_cookie:
199 aliases: ['http-only-cookie']
200 type: str
201 description: Enable/disable SSL VPN support for HttpOnly cookies.
202 choices: ['disable', 'enable']
203 http_request_body_timeout:
204 aliases: ['http-request-body-timeout']
205 type: int
206 description: SSL VPN session is disconnected if an HTTP request body is not received within this time
207 http_request_header_timeout:
208 aliases: ['http-request-header-timeout']
209 type: int
210 description: SSL VPN session is disconnected if an HTTP request header is not received within this time
211 https_redirect:
212 aliases: ['https-redirect']
213 type: str
214 description: Enable/disable redirect of port 80 to SSL VPN port.
215 choices: ['disable', 'enable']
216 idle_timeout:
217 aliases: ['idle-timeout']
218 type: int
219 description: SSL VPN disconnects if idle for specified time in seconds.
220 ipv6_dns_server1:
221 aliases: ['ipv6-dns-server1']
222 type: str
223 description: IPv6 DNS server 1.
224 ipv6_dns_server2:
225 aliases: ['ipv6-dns-server2']
226 type: str
227 description: IPv6 DNS server 2.
228 ipv6_wins_server1:
229 aliases: ['ipv6-wins-server1']
230 type: str
231 description: IPv6 WINS server 1.
232 ipv6_wins_server2:
233 aliases: ['ipv6-wins-server2']
234 type: str
235 description: IPv6 WINS server 2.
236 login_attempt_limit:
237 aliases: ['login-attempt-limit']
238 type: int
239 description: SSL VPN maximum login attempt times before block
240 login_block_time:
241 aliases: ['login-block-time']
242 type: int
243 description: Time for which a user is blocked from logging in after too many failed login attempts
244 login_timeout:
245 aliases: ['login-timeout']
246 type: int
247 description: SSLVPN maximum login timeout
248 port:
249 type: int
250 description: SSL VPN access port
251 port_precedence:
252 aliases: ['port-precedence']
253 type: str
254 description: Enable/disable, Enable means that if SSL VPN connections are allowed on an interface admin GUI connections are blocked on ...
255 choices: ['disable', 'enable']
256 reqclientcert:
257 type: str
258 description: Enable/disable to require client certificates for all SSL VPN users.
259 choices: ['disable', 'enable']
260 route_source_interface:
261 aliases: ['route-source-interface']
262 type: str
263 description: Enable/disable to allow SSL VPN sessions to bypass routing and bind to the incoming interface.
264 choices: ['disable', 'enable']
265 servercert:
266 type: str
267 description: Name of the server certificate to be used for SSL VPNs.
268 source_address:
269 aliases: ['source-address']
270 type: raw
271 description: (list or str) Source address of incoming traffic.
272 source_address_negate:
273 aliases: ['source-address-negate']
274 type: str
275 description: Enable/disable negated source address match.
276 choices: ['disable', 'enable']
277 source_address6:
278 aliases: ['source-address6']
279 type: raw
280 description: (list or str) IPv6 source address of incoming traffic.
281 source_address6_negate:
282 aliases: ['source-address6-negate']
283 type: str
284 description: Enable/disable negated source IPv6 address match.
285 choices: ['disable', 'enable']
286 source_interface:
287 aliases: ['source-interface']
288 type: raw
289 description: (list or str) SSL VPN source interface of incoming traffic.
290 ssl_client_renegotiation:
291 aliases: ['ssl-client-renegotiation']
292 type: str
293 description: Enable/disable to allow client renegotiation by the server if the tunnel goes down.
294 choices: ['disable', 'enable']
295 ssl_insert_empty_fragment:
296 aliases: ['ssl-insert-empty-fragment']
297 type: str
298 description: Enable/disable insertion of empty fragment.
299 choices: ['disable', 'enable']
300 ssl_max_proto_ver:
301 aliases: ['ssl-max-proto-ver']
302 type: str
303 description: SSL maximum protocol version.
304 choices: ['tls1-0', 'tls1-1', 'tls1-2', 'tls1-3']
305 ssl_min_proto_ver:
306 aliases: ['ssl-min-proto-ver']
307 type: str
308 description: SSL minimum protocol version.
309 choices: ['tls1-0', 'tls1-1', 'tls1-2', 'tls1-3']
310 tlsv1_0:
311 aliases: ['tlsv1-0']
312 type: str
313 description: Enable/disable TLSv1.
314 choices: ['disable', 'enable']
315 tlsv1_1:
316 aliases: ['tlsv1-1']
317 type: str
318 description: Enable/disable TLSv1.
319 choices: ['disable', 'enable']
320 tlsv1_2:
321 aliases: ['tlsv1-2']
322 type: str
323 description: Enable/disable TLSv1.
324 choices: ['disable', 'enable']
325 tlsv1_3:
326 aliases: ['tlsv1-3']
327 type: str
328 description: Tlsv1 3.
329 choices: ['disable', 'enable']
330 transform_backward_slashes:
331 aliases: ['transform-backward-slashes']
332 type: str
333 description: Transform backward slashes to forward slashes in URLs.
334 choices: ['disable', 'enable']
335 tunnel_connect_without_reauth:
336 aliases: ['tunnel-connect-without-reauth']
337 type: str
338 description: Enable/disable tunnel connection without re-authorization if previous connection dropped.
339 choices: ['disable', 'enable']
340 tunnel_ip_pools:
341 aliases: ['tunnel-ip-pools']
342 type: raw
343 description: (list or str) Names of the IPv4 IP Pool firewall objects that define the IP addresses reserved for remote clients.
344 tunnel_ipv6_pools:
345 aliases: ['tunnel-ipv6-pools']
346 type: raw
347 description: (list or str) Names of the IPv6 IP Pool firewall objects that define the IP addresses reserved for remote clients.
348 tunnel_user_session_timeout:
349 aliases: ['tunnel-user-session-timeout']
350 type: int
351 description: Time out value to clean up user session after tunnel connection is dropped
352 unsafe_legacy_renegotiation:
353 aliases: ['unsafe-legacy-renegotiation']
354 type: str
355 description: Enable/disable unsafe legacy re-negotiation.
356 choices: ['disable', 'enable']
357 url_obscuration:
358 aliases: ['url-obscuration']
359 type: str
360 description: Enable/disable to obscure the host name of the URL of the web browser display.
361 choices: ['disable', 'enable']
362 user_peer:
363 aliases: ['user-peer']
364 type: str
365 description: Name of user peer.
366 wins_server1:
367 aliases: ['wins-server1']
368 type: str
369 description: WINS server 1.
370 wins_server2:
371 aliases: ['wins-server2']
372 type: str
373 description: WINS server 2.
374 x_content_type_options:
375 aliases: ['x-content-type-options']
376 type: str
377 description: Add HTTP X-Content-Type-Options header.
378 choices: ['disable', 'enable']
379 sslv3:
380 type: str
381 description: Sslv3.
382 choices: ['disable', 'enable']
383 ssl_big_buffer:
384 aliases: ['ssl-big-buffer']
385 type: str
386 description: Disable using the big SSLv3 buffer feature to save memory and force higher security.
387 choices: ['disable', 'enable']
388 client_sigalgs:
389 aliases: ['client-sigalgs']
390 type: str
391 description: Set signature algorithms related to client authentication.
392 choices: ['no-rsa-pss', 'all']
393 ciphersuite:
394 type: list
395 elements: str
396 description: Select one or more TLS 1.
397 choices: ['TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384',
398 'TLS-CHACHA20-POLY1305-SHA256', 'TLS-AES-128-CCM-SHA256',
399 'TLS-AES-128-CCM-8-SHA256']
400 dual_stack_mode:
401 aliases: ['dual-stack-mode']
402 type: str
403 description: Tunnel mode
404 choices: ['disable', 'enable']
405 tunnel_addr_assigned_method:
406 aliases: ['tunnel-addr-assigned-method']
407 type: str
408 description: Method used for assigning address for tunnel.
409 choices: ['first-available', 'round-robin']
410 browser_language_detection:
411 aliases: ['browser-language-detection']
412 type: str
413 description: Enable/disable overriding the configured system language based on the preferred language of the browser.
414 choices: ['disable', 'enable']
415 saml_redirect_port:
416 aliases: ['saml-redirect-port']
417 type: int
418 description: SAML local redirect port in the machine running FortiClient
419 status:
420 type: str
421 description: Enable/disable SSL-VPN.
422 choices: ['disable', 'enable']
423 web_mode_snat:
424 aliases: ['web-mode-snat']
425 type: str
426 description: Enable/disable use of IP pools defined in firewall policy while using web-mode.
427 choices: ['disable', 'enable']
428 ztna_trusted_client:
429 aliases: ['ztna-trusted-client']
430 type: str
431 description: Enable/disable verification of device certificate for SSLVPN ZTNA session.
432 choices: ['disable', 'enable']
433 dtls_heartbeat_fail_count:
434 aliases: ['dtls-heartbeat-fail-count']
435 type: int
436 description: Number of missing heartbeats before the connection is considered dropped.
437 dtls_heartbeat_idle_timeout:
438 aliases: ['dtls-heartbeat-idle-timeout']
439 type: int
440 description: Idle timeout before DTLS heartbeat is sent.
441 dtls_heartbeat_interval:
442 aliases: ['dtls-heartbeat-interval']
443 type: int
444 description: Interval between DTLS heartbeat.
445 server_hostname:
446 aliases: ['server-hostname']
447 type: str
448 description: Server hostname for HTTPS.
449 remote_https_cert_check:
450 aliases: ['remote-https-cert-check']
451 type: str
452 description: Configure how the FortiGate unit checks and responds to the remote HTTPS servers certificate
453 choices: ['no-check', 'warn-on-error', 'reject-on-error']
454 tls_groups:
455 aliases: ['tls-groups']
456 type: list
457 elements: str
458 description: Configure the supported groups for TLS negotiation.
459 choices: ['P-521', 'P-384', 'P-256', 'ML-KEM512', 'ML-KEM768', 'ML-KEM1024',
460 'P-384-MLKEM1024', 'P-256-MLKEM768', 'X25519-MLKEM768', 'X448',
461 'X25519', 'FFDHE2048', 'FFDHE3072', 'FFDHE4096', 'FFDHE6144', 'FFDHE8192']
462 '''
463
464 EXAMPLES = '''
465 - name: Example playbook (generated based on argument schema)
466 hosts: fortimanagers
467 connection: httpapi
468 gather_facts: false
469 tasks:
470 - name: Configure SSL VPN.
471 fortinet.fortimanager.fmgr_vpn_ssl_settings:
472 # workspace_locking_adom: <global or your adom name>
473 device: <your own value>
474 vdom: <your own value>
475 vpn_ssl_settings:
476 # algorithm: <value in [default, high, low, ...]>
477 # auth_session_check_source_ip: <value in [disable, enable]>
478 # auth_timeout: <integer>
479 # authentication_rule:
480 # - auth: <value in [any, local, radius, ...]>
481 # cipher: <value in [any, high, medium]>
482 # client_cert: <value in [disable, enable]>
483 # groups: <list or string>
484 # id: <integer>
485 # portal: <string>
486 # realm: <string>
487 # source_address: <list or string>
488 # source_address_negate: <value in [disable, enable]>
489 # source_address6: <list or string>
490 # source_address6_negate: <value in [disable, enable]>
491 # source_interface: <list or string>
492 # user_peer: <string>
493 # users: <list or string>
494 # auto_tunnel_static_route: <value in [disable, enable]>
495 # banned_cipher: ["RSA", "DH", "DHE", "ECDH", "ECDHE", "DSS", "ECDSA", "AES", "AESGCM",
496 # "CAMELLIA", "3DES", "SHA1", "SHA256", "SHA384", "STATIC", "CHACHA20",
497 # "ARIA", "AESCCM"]
498 # check_referer: <value in [disable, enable]>
499 # default_portal: <string>
500 # deflate_compression_level: <integer>
501 # deflate_min_data_size: <integer>
502 # dns_server1: <string>
503 # dns_server2: <string>
504 # dns_suffix: <string>
505 # dtls_hello_timeout: <integer>
506 # dtls_max_proto_ver: <value in [dtls1-0, dtls1-2]>
507 # dtls_min_proto_ver: <value in [dtls1-0, dtls1-2]>
508 # dtls_tunnel: <value in [disable, enable]>
509 # encode_2f_sequence: <value in [disable, enable]>
510 # encrypt_and_store_password: <value in [disable, enable]>
511 # force_two_factor_auth: <value in [disable, enable]>
512 # header_x_forwarded_for: <value in [pass, add, remove]>
513 # hsts_include_subdomains: <value in [disable, enable]>
514 # http_compression: <value in [disable, enable]>
515 # http_only_cookie: <value in [disable, enable]>
516 # http_request_body_timeout: <integer>
517 # http_request_header_timeout: <integer>
518 # https_redirect: <value in [disable, enable]>
519 # idle_timeout: <integer>
520 # ipv6_dns_server1: <string>
521 # ipv6_dns_server2: <string>
522 # ipv6_wins_server1: <string>
523 # ipv6_wins_server2: <string>
524 # login_attempt_limit: <integer>
525 # login_block_time: <integer>
526 # login_timeout: <integer>
527 # port: <integer>
528 # port_precedence: <value in [disable, enable]>
529 # reqclientcert: <value in [disable, enable]>
530 # route_source_interface: <value in [disable, enable]>
531 # servercert: <string>
532 # source_address: <list or string>
533 # source_address_negate: <value in [disable, enable]>
534 # source_address6: <list or string>
535 # source_address6_negate: <value in [disable, enable]>
536 # source_interface: <list or string>
537 # ssl_client_renegotiation: <value in [disable, enable]>
538 # ssl_insert_empty_fragment: <value in [disable, enable]>
539 # ssl_max_proto_ver: <value in [tls1-0, tls1-1, tls1-2, ...]>
540 # ssl_min_proto_ver: <value in [tls1-0, tls1-1, tls1-2, ...]>
541 # tlsv1_0: <value in [disable, enable]>
542 # tlsv1_1: <value in [disable, enable]>
543 # tlsv1_2: <value in [disable, enable]>
544 # tlsv1_3: <value in [disable, enable]>
545 # transform_backward_slashes: <value in [disable, enable]>
546 # tunnel_connect_without_reauth: <value in [disable, enable]>
547 # tunnel_ip_pools: <list or string>
548 # tunnel_ipv6_pools: <list or string>
549 # tunnel_user_session_timeout: <integer>
550 # unsafe_legacy_renegotiation: <value in [disable, enable]>
551 # url_obscuration: <value in [disable, enable]>
552 # user_peer: <string>
553 # wins_server1: <string>
554 # wins_server2: <string>
555 # x_content_type_options: <value in [disable, enable]>
556 # sslv3: <value in [disable, enable]>
557 # ssl_big_buffer: <value in [disable, enable]>
558 # client_sigalgs: <value in [no-rsa-pss, all]>
559 # ciphersuite: ["TLS-AES-128-GCM-SHA256", "TLS-AES-256-GCM-SHA384",
560 # "TLS-CHACHA20-POLY1305-SHA256", "TLS-AES-128-CCM-SHA256",
561 # "TLS-AES-128-CCM-8-SHA256"]
562 # dual_stack_mode: <value in [disable, enable]>
563 # tunnel_addr_assigned_method: <value in [first-available, round-robin]>
564 # browser_language_detection: <value in [disable, enable]>
565 # saml_redirect_port: <integer>
566 # status: <value in [disable, enable]>
567 # web_mode_snat: <value in [disable, enable]>
568 # ztna_trusted_client: <value in [disable, enable]>
569 # dtls_heartbeat_fail_count: <integer>
570 # dtls_heartbeat_idle_timeout: <integer>
571 # dtls_heartbeat_interval: <integer>
572 # server_hostname: <string>
573 # remote_https_cert_check: <value in [no-check, warn-on-error, reject-on-error]>
574 # tls_groups: ["P-521", "P-384", "P-256", "ML-KEM512", "ML-KEM768", "ML-KEM1024",
575 # "P-384-MLKEM1024", "P-256-MLKEM768", "X25519-MLKEM768", "X448", "X25519",
576 # "FFDHE2048", "FFDHE3072", "FFDHE4096", "FFDHE6144", "FFDHE8192"]
577 '''
578
579 RETURN = '''
580 meta:
581 description: The result of the request.
582 type: dict
583 returned: always
584 contains:
585 request_url:
586 description: The full url requested.
587 returned: always
588 type: str
589 sample: /sys/login/user
590 response_code:
591 description: The status of api request.
592 returned: always
593 type: int
594 sample: 0
595 response_data:
596 description: The api response.
597 type: list
598 returned: always
599 response_message:
600 description: The descriptive message of the api response.
601 type: str
602 returned: always
603 sample: OK.
604 system_information:
605 description: The information of the target system.
606 type: dict
607 returned: always
608 rc:
609 description: The status the request.
610 type: int
611 returned: always
612 sample: 0
613 version_check_warning:
614 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
615 type: list
616 returned: complex
617 '''
618 from ansible.module_utils.basic import AnsibleModule
619 from ansible.module_utils.connection import Connection
620 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
621 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
622
623
624 def main():
625 urls_list = [
626 '/pm/config/device/{device}/vdom/{vdom}/vpn/ssl/settings'
627 ]
628 module_arg_spec = {
629 'device': {'required': True, 'type': 'str'},
630 'vdom': {'required': True, 'type': 'str'},
631 'vpn_ssl_settings': {
632 'type': 'dict', 'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']],
633 'options': {
634 'algorithm': {
635 'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '7.2.1'], ['7.2.6', '7.2.12'], ['7.4.3', '']],
636 'choices': ['default', 'high', 'low', 'medium'],
637 'type': 'str'
638 },
639 'auth-session-check-source-ip': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
640 'auth-timeout': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
641 'authentication-rule': {
642 'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']],
643 'type': 'list',
644 'options': {
645 'auth': {
646 'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']],
647 'choices': ['any', 'local', 'radius', 'ldap', 'tacacs+', 'peer'],
648 'type': 'str'
649 },
650 'cipher': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['any', 'high', 'medium'], 'type': 'str'},
651 'client-cert': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
652 'groups': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'},
653 'id': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
654 'portal': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
655 'realm': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
656 'source-address': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'},
657 'source-address-negate': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
658 'source-address6': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'},
659 'source-address6-negate': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
660 'source-interface': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'},
661 'user-peer': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
662 'users': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'}
663 },
664 'elements': 'dict'
665 },
666 'auto-tunnel-static-route': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
667 'banned-cipher': {
668 'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']],
669 'type': 'list',
670 'choices': [
671 'RSA', 'DH', 'DHE', 'ECDH', 'ECDHE', 'DSS', 'ECDSA', 'AES', 'AESGCM', 'CAMELLIA', '3DES', 'SHA1', 'SHA256', 'SHA384', 'STATIC',
672 'CHACHA20', 'ARIA', 'AESCCM'
673 ],
674 'elements': 'str'
675 },
676 'check-referer': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
677 'default-portal': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
678 'deflate-compression-level': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
679 'deflate-min-data-size': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
680 'dns-server1': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
681 'dns-server2': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
682 'dns-suffix': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
683 'dtls-hello-timeout': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
684 'dtls-max-proto-ver': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['dtls1-0', 'dtls1-2'], 'type': 'str'},
685 'dtls-min-proto-ver': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['dtls1-0', 'dtls1-2'], 'type': 'str'},
686 'dtls-tunnel': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
687 'encode-2f-sequence': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
688 'encrypt-and-store-password': {'v_range': [['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
689 'force-two-factor-auth': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
690 'header-x-forwarded-for': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['pass', 'add', 'remove'], 'type': 'str'},
691 'hsts-include-subdomains': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
692 'http-compression': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
693 'http-only-cookie': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
694 'http-request-body-timeout': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
695 'http-request-header-timeout': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
696 'https-redirect': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
697 'idle-timeout': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
698 'ipv6-dns-server1': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
699 'ipv6-dns-server2': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
700 'ipv6-wins-server1': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
701 'ipv6-wins-server2': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
702 'login-attempt-limit': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
703 'login-block-time': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
704 'login-timeout': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
705 'port': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
706 'port-precedence': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
707 'reqclientcert': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
708 'route-source-interface': {
709 'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '7.2.0'], ['7.4.8', '7.4.10']],
710 'choices': ['disable', 'enable'],
711 'type': 'str'
712 },
713 'servercert': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
714 'source-address': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'},
715 'source-address-negate': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
716 'source-address6': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'},
717 'source-address6-negate': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
718 'source-interface': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'},
719 'ssl-client-renegotiation': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
720 'ssl-insert-empty-fragment': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
721 'ssl-max-proto-ver': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['tls1-0', 'tls1-1', 'tls1-2', 'tls1-3'], 'type': 'str'},
722 'ssl-min-proto-ver': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['tls1-0', 'tls1-1', 'tls1-2', 'tls1-3'], 'type': 'str'},
723 'tlsv1-0': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '7.2.1'], ['7.4.8', '7.4.10']], 'choices': ['disable', 'enable'], 'type': 'str'},
724 'tlsv1-1': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '7.2.1'], ['7.4.8', '7.4.10']], 'choices': ['disable', 'enable'], 'type': 'str'},
725 'tlsv1-2': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '7.2.1'], ['7.4.8', '7.4.10']], 'choices': ['disable', 'enable'], 'type': 'str'},
726 'tlsv1-3': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '7.2.0']], 'choices': ['disable', 'enable'], 'type': 'str'},
727 'transform-backward-slashes': {'v_range': [['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
728 'tunnel-connect-without-reauth': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
729 'tunnel-ip-pools': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'},
730 'tunnel-ipv6-pools': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'raw'},
731 'tunnel-user-session-timeout': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'int'},
732 'unsafe-legacy-renegotiation': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
733 'url-obscuration': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
734 'user-peer': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
735 'wins-server1': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
736 'wins-server2': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'type': 'str'},
737 'x-content-type-options': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
738 'sslv3': {'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '6.4.15']], 'choices': ['disable', 'enable'], 'type': 'str'},
739 'ssl-big-buffer': {
740 'v_range': [['6.2.6', '6.2.13'], ['6.4.2', '6.4.15'], ['7.4.8', '7.4.10']],
741 'choices': ['disable', 'enable'],
742 'type': 'str'
743 },
744 'client-sigalgs': {'v_range': [['6.4.4', '']], 'choices': ['no-rsa-pss', 'all'], 'type': 'str'},
745 'ciphersuite': {
746 'v_range': [['6.4.8', '']],
747 'type': 'list',
748 'choices': [
749 'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', 'TLS-AES-128-CCM-SHA256',
750 'TLS-AES-128-CCM-8-SHA256'
751 ],
752 'elements': 'str'
753 },
754 'dual-stack-mode': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
755 'tunnel-addr-assigned-method': {'v_range': [['7.0.0', '']], 'choices': ['first-available', 'round-robin'], 'type': 'str'},
756 'browser-language-detection': {'v_range': [['7.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
757 'saml-redirect-port': {'v_range': [['7.0.1', '']], 'type': 'int'},
758 'status': {'v_range': [['6.4.8', '6.4.15'], ['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
759 'web-mode-snat': {'v_range': [['7.0.4', '7.2.3'], ['7.2.6', '7.4.1'], ['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
760 'ztna-trusted-client': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
761 'dtls-heartbeat-fail-count': {'v_range': [['7.4.0', '']], 'type': 'int'},
762 'dtls-heartbeat-idle-timeout': {'v_range': [['7.4.0', '']], 'type': 'int'},
763 'dtls-heartbeat-interval': {'v_range': [['7.4.0', '']], 'type': 'int'},
764 'server-hostname': {'v_range': [['7.2.6', '']], 'type': 'str'},
765 'remote-https-cert-check': {'v_range': [['7.6.5', '']], 'choices': ['no-check', 'warn-on-error', 'reject-on-error'], 'type': 'str'},
766 'tls-groups': {
767 'v_range': [['7.6.5', '']],
768 'type': 'list',
769 'choices': [
770 'P-521', 'P-384', 'P-256', 'ML-KEM512', 'ML-KEM768', 'ML-KEM1024', 'P-384-MLKEM1024', 'P-256-MLKEM768', 'X25519-MLKEM768',
771 'X448', 'X25519', 'FFDHE2048', 'FFDHE3072', 'FFDHE4096', 'FFDHE6144', 'FFDHE8192'
772 ],
773 'elements': 'str'
774 }
775 }
776 }
777 }
778
779 module_option_spec = get_module_arg_spec('partial crud')
780 module_arg_spec.update(module_option_spec)
781 check_galaxy_version(module_arg_spec)
782 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'vpn_ssl_settings'),
783 supports_check_mode=True)
784 if not module._socket_path:
785 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
786 connection = Connection(module._socket_path)
787 fmgr = NAPIManager('partial crud', module_arg_spec, urls_list,
788 None, 'data', module, connection)
789 fmgr.process_partial_crud()
790 module.exit_json(meta=module.params)
791
792
793 if __name__ == '__main__':
794 main()