Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_accessproxy6_apigateway.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_apigateway
15 short_description: Set IPv4 API Gateway.
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 access-proxy6:
29 description: Deprecated, please use "access_proxy6"
30 type: str
31 access_proxy6:
32 description: The parameter (access-proxy6) in requested url.
33 type: str
34 firewall_accessproxy6_apigateway:
35 description: The top level parameters set.
36 required: false
37 type: dict
38 suboptions:
39 application:
40 type: raw
41 description: (list) SaaS application controlled by this Access Proxy.
42 http_cookie_age:
43 aliases: ['http-cookie-age']
44 type: int
45 description: Time in minutes that client web browsers should keep a cookie.
46 http_cookie_domain:
47 aliases: ['http-cookie-domain']
48 type: str
49 description: Domain that HTTP cookie persistence should apply to.
50 http_cookie_domain_from_host:
51 aliases: ['http-cookie-domain-from-host']
52 type: str
53 description: Enable/disable use of HTTP cookie domain from host field in HTTP.
54 choices: ['disable', 'enable']
55 http_cookie_generation:
56 aliases: ['http-cookie-generation']
57 type: int
58 description: Generation of HTTP cookie to be accepted.
59 http_cookie_path:
60 aliases: ['http-cookie-path']
61 type: str
62 description: Limit HTTP cookie persistence to the specified path.
63 http_cookie_share:
64 aliases: ['http-cookie-share']
65 type: str
66 description: Control sharing of cookies across API Gateway.
67 choices: ['disable', 'same-ip']
68 https_cookie_secure:
69 aliases: ['https-cookie-secure']
70 type: str
71 description: Enable/disable verification that inserted HTTPS cookies are secure.
72 choices: ['disable', 'enable']
73 id:
74 type: int
75 description: API Gateway ID.
76 required: true
77 ldb_method:
78 aliases: ['ldb-method']
79 type: str
80 description: Method used to distribute sessions to real servers.
81 choices: ['static', 'round-robin', 'weighted', 'first-alive', 'http-host']
82 persistence:
83 type: str
84 description: Configure how to make sure that clients connect to the same server every time they make a request that is part of the same...
85 choices: ['none', 'http-cookie']
86 realservers:
87 type: list
88 elements: dict
89 description: Realservers.
90 suboptions:
91 addr_type:
92 aliases: ['addr-type']
93 type: str
94 description: Type of address.
95 choices: ['fqdn', 'ip']
96 address:
97 type: str
98 description: Address or address group of the real server.
99 domain:
100 type: str
101 description: Wildcard domain name of the real server.
102 health_check:
103 aliases: ['health-check']
104 type: str
105 description: Enable to check the responsiveness of the real server before forwarding traffic.
106 choices: ['disable', 'enable']
107 health_check_proto:
108 aliases: ['health-check-proto']
109 type: str
110 description: Protocol of the health check monitor to use when polling to determine servers connectivity status.
111 choices: ['ping', 'http', 'tcp-connect']
112 holddown_interval:
113 aliases: ['holddown-interval']
114 type: str
115 description: Enable/disable holddown timer.
116 choices: ['disable', 'enable']
117 http_host:
118 aliases: ['http-host']
119 type: str
120 description: HTTP server domain name in HTTP header.
121 id:
122 type: int
123 description: Real server ID.
124 ip:
125 type: str
126 description: IP address of the real server.
127 mappedport:
128 type: raw
129 description: (list or str) Port for communicating with the real server.
130 port:
131 type: int
132 description: Port for communicating with the real server.
133 ssh_client_cert:
134 aliases: ['ssh-client-cert']
135 type: str
136 description: Set access-proxy SSH client certificate profile.
137 ssh_host_key:
138 aliases: ['ssh-host-key']
139 type: raw
140 description: (list) One or more server host key.
141 ssh_host_key_validation:
142 aliases: ['ssh-host-key-validation']
143 type: str
144 description: Enable/disable SSH real server host key validation.
145 choices: ['disable', 'enable']
146 status:
147 type: str
148 description: Set the status of the real server to active so that it can accept traffic, or on standby or disabled so no traffic...
149 choices: ['active', 'standby', 'disable']
150 type:
151 type: str
152 description: TCP forwarding server type.
153 choices: ['tcp-forwarding', 'ssh']
154 weight:
155 type: int
156 description: Weight of the real server.
157 translate_host:
158 aliases: ['translate-host']
159 type: str
160 description: Enable/disable translation of hostname/IP from virtual server to real server.
161 choices: ['disable', 'enable']
162 external_auth:
163 aliases: ['external-auth']
164 type: str
165 description: Enable/disable use of external browser as user-agent for SAML user authentication.
166 choices: ['disable', 'enable']
167 tunnel_encryption:
168 aliases: ['tunnel-encryption']
169 type: str
170 description: Tunnel encryption.
171 choices: ['disable', 'enable']
172 verify_cert:
173 aliases: ['verify-cert']
174 type: str
175 description: Enable/disable certificate verification of the real server.
176 choices: ['disable', 'enable']
177 saml_redirect:
178 aliases: ['saml-redirect']
179 type: str
180 description: Enable/disable SAML redirection after successful authentication.
181 choices: ['disable', 'enable']
182 saml_server:
183 aliases: ['saml-server']
184 type: str
185 description: SAML service provider configuration for VIP authentication.
186 service:
187 type: str
188 description: Service.
189 choices: ['http', 'https', 'tcp-forwarding', 'samlsp', 'web-portal', 'saas']
190 ssl_algorithm:
191 aliases: ['ssl-algorithm']
192 type: str
193 description: Permitted encryption algorithms for the server side of SSL full mode sessions according to encryption strength.
194 choices: ['high', 'medium', 'low']
195 ssl_cipher_suites:
196 aliases: ['ssl-cipher-suites']
197 type: list
198 elements: dict
199 description: Ssl cipher suites.
200 suboptions:
201 cipher:
202 type: str
203 description: Cipher suite name.
204 choices: ['TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA',
205 'TLS-RSA-WITH-DES-CBC-SHA', 'TLS-RSA-WITH-3DES-EDE-CBC-SHA',
206 'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA',
207 'TLS-RSA-WITH-AES-128-CBC-SHA256',
208 'TLS-RSA-WITH-AES-256-CBC-SHA256',
209 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA',
210 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA',
211 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256',
212 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256',
213 'TLS-RSA-WITH-SEED-CBC-SHA', 'TLS-RSA-WITH-ARIA-128-CBC-SHA256',
214 'TLS-RSA-WITH-ARIA-256-CBC-SHA384',
215 'TLS-DHE-RSA-WITH-DES-CBC-SHA',
216 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA',
217 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA',
218 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA',
219 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256',
220 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256',
221 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA',
222 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA',
223 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256',
224 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256',
225 'TLS-DHE-RSA-WITH-SEED-CBC-SHA',
226 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256',
227 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384',
228 'TLS-ECDHE-RSA-WITH-RC4-128-SHA',
229 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA',
230 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA',
231 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA',
232 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
233 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256',
234 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
235 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256',
236 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384',
237 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA',
238 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA',
239 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256',
240 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256',
241 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256',
242 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384',
243 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256',
244 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256',
245 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384',
246 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384',
247 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA',
248 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256',
249 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256',
250 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384',
251 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384',
252 'TLS-RSA-WITH-AES-128-GCM-SHA256',
253 'TLS-RSA-WITH-AES-256-GCM-SHA384',
254 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA',
255 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA',
256 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256',
257 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256',
258 'TLS-DHE-DSS-WITH-SEED-CBC-SHA',
259 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256',
260 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384',
261 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256',
262 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384',
263 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256',
264 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384',
265 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA',
266 'TLS-DHE-DSS-WITH-DES-CBC-SHA', 'TLS-AES-128-GCM-SHA256',
267 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256',
268 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA']
269 priority:
270 type: int
271 description: SSL/TLS cipher suites priority.
272 versions:
273 type: list
274 elements: str
275 description: SSL/TLS versions that the cipher suite can be used with.
276 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
277 ssl_dh_bits:
278 aliases: ['ssl-dh-bits']
279 type: str
280 description: Number of bits to use in the Diffie-Hellman exchange for RSA encryption of SSL sessions.
281 choices: ['768', '1024', '1536', '2048', '3072', '4096']
282 ssl_max_version:
283 aliases: ['ssl-max-version']
284 type: str
285 description: Highest SSL/TLS version acceptable from a server.
286 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
287 ssl_min_version:
288 aliases: ['ssl-min-version']
289 type: str
290 description: Lowest SSL/TLS version acceptable from a server.
291 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
292 ssl_vpn_web_portal:
293 aliases: ['ssl-vpn-web-portal']
294 type: str
295 description: SSL-VPN web portal.
296 url_map:
297 aliases: ['url-map']
298 type: str
299 description: URL pattern to match.
300 url_map_type:
301 aliases: ['url-map-type']
302 type: str
303 description: Type of url-map.
304 choices: ['sub-string', 'wildcard', 'regex']
305 virtual_host:
306 aliases: ['virtual-host']
307 type: str
308 description: Virtual host.
309 ssl_renegotiation:
310 aliases: ['ssl-renegotiation']
311 type: str
312 description: Enable/disable secure renegotiation to comply with RFC 5746.
313 choices: ['disable', 'enable']
314 h2_support:
315 aliases: ['h2-support']
316 type: str
317 description: HTTP2 support, default=Enable.
318 choices: ['disable', 'enable']
319 h3_support:
320 aliases: ['h3-support']
321 type: str
322 description: HTTP3/QUIC support, default=Disable.
323 choices: ['disable', 'enable']
324 quic:
325 type: dict
326 description: Quic.
327 suboptions:
328 ack_delay_exponent:
329 aliases: ['ack-delay-exponent']
330 type: int
331 description: ACK delay exponent
332 active_connection_id_limit:
333 aliases: ['active-connection-id-limit']
334 type: int
335 description: Active connection ID limit
336 active_migration:
337 aliases: ['active-migration']
338 type: str
339 description: Enable/disable active migration
340 choices: ['disable', 'enable']
341 grease_quic_bit:
342 aliases: ['grease-quic-bit']
343 type: str
344 description: Enable/disable grease QUIC bit
345 choices: ['disable', 'enable']
346 max_ack_delay:
347 aliases: ['max-ack-delay']
348 type: int
349 description: Maximum ACK delay in milliseconds
350 max_datagram_frame_size:
351 aliases: ['max-datagram-frame-size']
352 type: int
353 description: Maximum datagram frame size in bytes
354 max_idle_timeout:
355 aliases: ['max-idle-timeout']
356 type: int
357 description: Maximum idle timeout milliseconds
358 max_udp_payload_size:
359 aliases: ['max-udp-payload-size']
360 type: int
361 description: Maximum UDP payload size in bytes
362 '''
363
364 EXAMPLES = '''
365 - name: Example playbook (generated based on argument schema)
366 hosts: fortimanagers
367 connection: httpapi
368 gather_facts: false
369 tasks:
370 - name: Set IPv4 API Gateway.
371 fortinet.fortimanager.fmgr_firewall_accessproxy6_apigateway:
372 # workspace_locking_adom: <global or your adom name>
373 adom: <your own value>
374 access_proxy6: <your own value>
375 state: present # <value in [present, absent]>
376 firewall_accessproxy6_apigateway:
377 id: 0 # Required variable, integer
378 # application: <list or string>
379 # http_cookie_age: <integer>
380 # http_cookie_domain: <string>
381 # http_cookie_domain_from_host: <value in [disable, enable]>
382 # http_cookie_generation: <integer>
383 # http_cookie_path: <string>
384 # http_cookie_share: <value in [disable, same-ip]>
385 # https_cookie_secure: <value in [disable, enable]>
386 # ldb_method: <value in [static, round-robin, weighted, ...]>
387 # persistence: <value in [none, http-cookie]>
388 # realservers:
389 # - addr_type: <value in [fqdn, ip]>
390 # address: <string>
391 # domain: <string>
392 # health_check: <value in [disable, enable]>
393 # health_check_proto: <value in [ping, http, tcp-connect]>
394 # holddown_interval: <value in [disable, enable]>
395 # http_host: <string>
396 # id: <integer>
397 # ip: <string>
398 # mappedport: <list or string>
399 # port: <integer>
400 # ssh_client_cert: <string>
401 # ssh_host_key: <list or string>
402 # ssh_host_key_validation: <value in [disable, enable]>
403 # status: <value in [active, standby, disable]>
404 # type: <value in [tcp-forwarding, ssh]>
405 # weight: <integer>
406 # translate_host: <value in [disable, enable]>
407 # external_auth: <value in [disable, enable]>
408 # tunnel_encryption: <value in [disable, enable]>
409 # verify_cert: <value in [disable, enable]>
410 # saml_redirect: <value in [disable, enable]>
411 # saml_server: <string>
412 # service: <value in [http, https, tcp-forwarding, ...]>
413 # ssl_algorithm: <value in [high, medium, low]>
414 # ssl_cipher_suites:
415 # - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]>
416 # priority: <integer>
417 # versions: ["tls-1.0", "tls-1.1", "tls-1.2", "tls-1.3"]
418 # ssl_dh_bits: <value in [768, 1024, 1536, ...]>
419 # ssl_max_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]>
420 # ssl_min_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]>
421 # ssl_vpn_web_portal: <string>
422 # url_map: <string>
423 # url_map_type: <value in [sub-string, wildcard, regex]>
424 # virtual_host: <string>
425 # ssl_renegotiation: <value in [disable, enable]>
426 # h2_support: <value in [disable, enable]>
427 # h3_support: <value in [disable, enable]>
428 # quic:
429 # ack_delay_exponent: <integer>
430 # active_connection_id_limit: <integer>
431 # active_migration: <value in [disable, enable]>
432 # grease_quic_bit: <value in [disable, enable]>
433 # max_ack_delay: <integer>
434 # max_datagram_frame_size: <integer>
435 # max_idle_timeout: <integer>
436 # max_udp_payload_size: <integer>
437 '''
438
439 RETURN = '''
440 meta:
441 description: The result of the request.
442 type: dict
443 returned: always
444 contains:
445 request_url:
446 description: The full url requested.
447 returned: always
448 type: str
449 sample: /sys/login/user
450 response_code:
451 description: The status of api request.
452 returned: always
453 type: int
454 sample: 0
455 response_data:
456 description: The api response.
457 type: list
458 returned: always
459 response_message:
460 description: The descriptive message of the api response.
461 type: str
462 returned: always
463 sample: OK.
464 system_information:
465 description: The information of the target system.
466 type: dict
467 returned: always
468 rc:
469 description: The status the request.
470 type: int
471 returned: always
472 sample: 0
473 version_check_warning:
474 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
475 type: list
476 returned: complex
477 '''
478 from ansible.module_utils.basic import AnsibleModule
479 from ansible.module_utils.connection import Connection
480 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
481 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
482
483
484 def main():
485 urls_list = [
486 '/pm/config/adom/{adom}/obj/firewall/access-proxy6/{access-proxy6}/api-gateway',
487 '/pm/config/global/obj/firewall/access-proxy6/{access-proxy6}/api-gateway'
488 ]
489 module_arg_spec = {
490 'adom': {'required': True, 'type': 'str'},
491 'access-proxy6': {'type': 'str', 'api_name': 'access_proxy6'},
492 'access_proxy6': {'type': 'str'},
493 'revision_note': {'type': 'str'},
494 'firewall_accessproxy6_apigateway': {
495 'type': 'dict', 'v_range': [['7.2.1', '']],
496 'options': {
497 'application': {'v_range': [['7.2.1', '']], 'type': 'raw'},
498 'http-cookie-age': {'v_range': [['7.2.1', '']], 'type': 'int'},
499 'http-cookie-domain': {'v_range': [['7.2.1', '']], 'type': 'str'},
500 'http-cookie-domain-from-host': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
501 'http-cookie-generation': {'v_range': [['7.2.1', '']], 'type': 'int'},
502 'http-cookie-path': {'v_range': [['7.2.1', '']], 'type': 'str'},
503 'http-cookie-share': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'same-ip'], 'type': 'str'},
504 'https-cookie-secure': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
505 'id': {'v_range': [['7.2.1', '']], 'required': True, 'type': 'int'},
506 'ldb-method': {'v_range': [['7.2.1', '']], 'choices': ['static', 'round-robin', 'weighted', 'first-alive', 'http-host'], 'type': 'str'},
507 'persistence': {'v_range': [['7.2.1', '']], 'choices': ['none', 'http-cookie'], 'type': 'str'},
508 'realservers': {
509 'v_range': [['7.2.1', '']],
510 'type': 'list',
511 'options': {
512 'addr-type': {'v_range': [['7.2.1', '']], 'choices': ['fqdn', 'ip'], 'type': 'str'},
513 'address': {'v_range': [['7.2.1', '']], 'type': 'str'},
514 'domain': {'v_range': [['7.2.1', '']], 'type': 'str'},
515 'health-check': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
516 'health-check-proto': {'v_range': [['7.2.1', '']], 'choices': ['ping', 'http', 'tcp-connect'], 'type': 'str'},
517 'holddown-interval': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
518 'http-host': {'v_range': [['7.2.1', '']], 'type': 'str'},
519 'id': {'v_range': [['7.2.1', '']], 'type': 'int'},
520 'ip': {'v_range': [['7.2.1', '']], 'type': 'str'},
521 'mappedport': {'v_range': [['7.2.1', '']], 'type': 'raw'},
522 'port': {'v_range': [['7.2.1', '']], 'type': 'int'},
523 'ssh-client-cert': {'v_range': [['7.2.1', '']], 'type': 'str'},
524 'ssh-host-key': {'v_range': [['7.2.1', '']], 'no_log': True, 'type': 'raw'},
525 'ssh-host-key-validation': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
526 'status': {'v_range': [['7.2.1', '']], 'choices': ['active', 'standby', 'disable'], 'type': 'str'},
527 'type': {'v_range': [['7.2.1', '']], 'choices': ['tcp-forwarding', 'ssh'], 'type': 'str'},
528 'weight': {'v_range': [['7.2.1', '']], 'type': 'int'},
529 'translate-host': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
530 'external-auth': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
531 'tunnel-encryption': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
532 'verify-cert': {'v_range': [['7.4.8', '7.4.10'], ['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
533 },
534 'elements': 'dict'
535 },
536 'saml-redirect': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
537 'saml-server': {'v_range': [['7.2.1', '']], 'type': 'str'},
538 'service': {'v_range': [['7.2.1', '']], 'choices': ['http', 'https', 'tcp-forwarding', 'samlsp', 'web-portal', 'saas'], 'type': 'str'},
539 'ssl-algorithm': {'v_range': [['7.2.1', '']], 'choices': ['high', 'medium', 'low'], 'type': 'str'},
540 'ssl-cipher-suites': {
541 'v_range': [['7.2.1', '']],
542 'type': 'list',
543 'options': {
544 'cipher': {
545 'v_range': [['7.2.1', '']],
546 'choices': [
547 'TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', 'TLS-RSA-WITH-DES-CBC-SHA', 'TLS-RSA-WITH-3DES-EDE-CBC-SHA',
548 'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', 'TLS-RSA-WITH-AES-128-CBC-SHA256',
549 'TLS-RSA-WITH-AES-256-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA',
550 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-RSA-WITH-SEED-CBC-SHA',
551 'TLS-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-RSA-WITH-DES-CBC-SHA',
552 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA',
553 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA',
554 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256',
555 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-SEED-CBC-SHA', 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256',
556 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-RC4-128-SHA', 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA',
557 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA',
558 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256',
559 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256',
560 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA',
561 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256',
562 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256',
563 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA',
564 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256',
565 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', 'TLS-RSA-WITH-AES-128-GCM-SHA256',
566 'TLS-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA',
567 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-DSS-WITH-SEED-CBC-SHA',
568 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256',
569 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256',
570 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-DSS-WITH-DES-CBC-SHA',
571 'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256',
572 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA'
573 ],
574 'type': 'str'
575 },
576 'priority': {'v_range': [['7.2.1', '']], 'type': 'int'},
577 'versions': {
578 'v_range': [['7.2.1', '']],
579 'type': 'list',
580 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'],
581 'elements': 'str'
582 }
583 },
584 'elements': 'dict'
585 },
586 'ssl-dh-bits': {'v_range': [['7.2.1', '']], 'choices': ['768', '1024', '1536', '2048', '3072', '4096'], 'type': 'str'},
587 'ssl-max-version': {'v_range': [['7.2.1', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'},
588 'ssl-min-version': {'v_range': [['7.2.1', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'},
589 'ssl-vpn-web-portal': {'v_range': [['7.2.1', '']], 'type': 'str'},
590 'url-map': {'v_range': [['7.2.1', '']], 'type': 'str'},
591 'url-map-type': {'v_range': [['7.2.1', '']], 'choices': ['sub-string', 'wildcard', 'regex'], 'type': 'str'},
592 'virtual-host': {'v_range': [['7.2.1', '']], 'type': 'str'},
593 'ssl-renegotiation': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
594 'h2-support': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
595 'h3-support': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
596 'quic': {
597 'v_range': [['7.4.1', '']],
598 'type': 'dict',
599 'options': {
600 'ack-delay-exponent': {'v_range': [['7.4.1', '']], 'type': 'int'},
601 'active-connection-id-limit': {'v_range': [['7.4.1', '']], 'type': 'int'},
602 'active-migration': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
603 'grease-quic-bit': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
604 'max-ack-delay': {'v_range': [['7.4.1', '']], 'type': 'int'},
605 'max-datagram-frame-size': {'v_range': [['7.4.1', '']], 'type': 'int'},
606 'max-idle-timeout': {'v_range': [['7.4.1', '']], 'type': 'int'},
607 'max-udp-payload-size': {'v_range': [['7.4.1', '']], 'type': 'int'}
608 }
609 }
610 }
611 }
612 }
613
614 module_option_spec = get_module_arg_spec('full crud')
615 module_arg_spec.update(module_option_spec)
616 check_galaxy_version(module_arg_spec)
617 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'firewall_accessproxy6_apigateway'),
618 supports_check_mode=True)
619 if not module._socket_path:
620 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
621 connection = Connection(module._socket_path)
622 fmgr = NAPIManager('full crud', module_arg_spec, urls_list,
623 'id', 'data', module, connection)
624 fmgr.process_crud()
625 module.exit_json(meta=module.params)
626
627
628 if __name__ == '__main__':
629 main()