Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_accessproxy_apigateway6.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_accessproxy_apigateway6
15 short_description: Set IPv6 API Gateway.
16 version_added: "2.1.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-proxy:
29 description: Deprecated, please use "access_proxy"
30 type: str
31 access_proxy:
32 description: The parameter (access-proxy) in requested url.
33 type: str
34 firewall_accessproxy_apigateway6:
35 description: The top level parameters set.
36 required: false
37 type: dict
38 suboptions:
39 http_cookie_age:
40 aliases: ['http-cookie-age']
41 type: int
42 description: Time in minutes that client web browsers should keep a cookie.
43 http_cookie_domain:
44 aliases: ['http-cookie-domain']
45 type: str
46 description: Domain that HTTP cookie persistence should apply to.
47 http_cookie_domain_from_host:
48 aliases: ['http-cookie-domain-from-host']
49 type: str
50 description: Enable/disable use of HTTP cookie domain from host field in HTTP.
51 choices: ['disable', 'enable']
52 http_cookie_generation:
53 aliases: ['http-cookie-generation']
54 type: int
55 description: Generation of HTTP cookie to be accepted.
56 http_cookie_path:
57 aliases: ['http-cookie-path']
58 type: str
59 description: Limit HTTP cookie persistence to the specified path.
60 http_cookie_share:
61 aliases: ['http-cookie-share']
62 type: str
63 description: Control sharing of cookies across API Gateway.
64 choices: ['disable', 'same-ip']
65 https_cookie_secure:
66 aliases: ['https-cookie-secure']
67 type: str
68 description: Enable/disable verification that inserted HTTPS cookies are secure.
69 choices: ['disable', 'enable']
70 id:
71 type: int
72 description: API Gateway ID.
73 required: true
74 ldb_method:
75 aliases: ['ldb-method']
76 type: str
77 description: Method used to distribute sessions to real servers.
78 choices: ['static', 'round-robin', 'weighted', 'first-alive', 'http-host']
79 persistence:
80 type: str
81 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...
82 choices: ['none', 'http-cookie']
83 realservers:
84 type: list
85 elements: dict
86 description: Realservers.
87 suboptions:
88 addr_type:
89 aliases: ['addr-type']
90 type: str
91 description: Type of address.
92 choices: ['fqdn', 'ip']
93 address:
94 type: str
95 description: Address or address group of the real server.
96 domain:
97 type: str
98 description: Wildcard domain name of the real server.
99 health_check:
100 aliases: ['health-check']
101 type: str
102 description: Enable to check the responsiveness of the real server before forwarding traffic.
103 choices: ['disable', 'enable']
104 health_check_proto:
105 aliases: ['health-check-proto']
106 type: str
107 description: Protocol of the health check monitor to use when polling to determine servers connectivity status.
108 choices: ['ping', 'http', 'tcp-connect']
109 holddown_interval:
110 aliases: ['holddown-interval']
111 type: str
112 description: Enable/disable holddown timer.
113 choices: ['disable', 'enable']
114 http_host:
115 aliases: ['http-host']
116 type: str
117 description: HTTP server domain name in HTTP header.
118 id:
119 type: int
120 description: Real server ID.
121 ip:
122 type: str
123 description: IPv6 address of the real server.
124 mappedport:
125 type: raw
126 description: (list or str) Port for communicating with the real server.
127 port:
128 type: int
129 description: Port for communicating with the real server.
130 ssh_client_cert:
131 aliases: ['ssh-client-cert']
132 type: str
133 description: Set access-proxy SSH client certificate profile.
134 ssh_host_key:
135 aliases: ['ssh-host-key']
136 type: raw
137 description: (list or str) One or more server host key.
138 ssh_host_key_validation:
139 aliases: ['ssh-host-key-validation']
140 type: str
141 description: Enable/disable SSH real server host key validation.
142 choices: ['disable', 'enable']
143 status:
144 type: str
145 description: Set the status of the real server to active so that it can accept traffic, or on standby or disabled so no traffic...
146 choices: ['active', 'standby', 'disable']
147 type:
148 type: str
149 description: TCP forwarding server type.
150 choices: ['tcp-forwarding', 'ssh']
151 weight:
152 type: int
153 description: Weight of the real server.
154 translate_host:
155 aliases: ['translate-host']
156 type: str
157 description: Enable/disable translation of hostname/IP from virtual server to real server.
158 choices: ['disable', 'enable']
159 external_auth:
160 aliases: ['external-auth']
161 type: str
162 description: Enable/disable use of external browser as user-agent for SAML user authentication.
163 choices: ['disable', 'enable']
164 tunnel_encryption:
165 aliases: ['tunnel-encryption']
166 type: str
167 description: Tunnel encryption.
168 choices: ['disable', 'enable']
169 verify_cert:
170 aliases: ['verify-cert']
171 type: str
172 description: Enable/disable certificate verification of the real server.
173 choices: ['disable', 'enable']
174 saml_redirect:
175 aliases: ['saml-redirect']
176 type: str
177 description: Enable/disable SAML redirection after successful authentication.
178 choices: ['disable', 'enable']
179 saml_server:
180 aliases: ['saml-server']
181 type: str
182 description: SAML service provider configuration for VIP authentication.
183 service:
184 type: str
185 description: Service.
186 choices: ['http', 'https', 'tcp-forwarding', 'samlsp', 'web-portal', 'saas']
187 ssl_algorithm:
188 aliases: ['ssl-algorithm']
189 type: str
190 description: Permitted encryption algorithms for the server side of SSL full mode sessions according to encryption strength.
191 choices: ['high', 'medium', 'low']
192 ssl_cipher_suites:
193 aliases: ['ssl-cipher-suites']
194 type: list
195 elements: dict
196 description: Ssl cipher suites.
197 suboptions:
198 cipher:
199 type: str
200 description: Cipher suite name.
201 choices: ['TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA',
202 'TLS-RSA-WITH-DES-CBC-SHA', 'TLS-RSA-WITH-3DES-EDE-CBC-SHA',
203 'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA',
204 'TLS-RSA-WITH-AES-128-CBC-SHA256',
205 'TLS-RSA-WITH-AES-256-CBC-SHA256',
206 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA',
207 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA',
208 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256',
209 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256',
210 'TLS-RSA-WITH-SEED-CBC-SHA', 'TLS-RSA-WITH-ARIA-128-CBC-SHA256',
211 'TLS-RSA-WITH-ARIA-256-CBC-SHA384',
212 'TLS-DHE-RSA-WITH-DES-CBC-SHA',
213 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA',
214 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA',
215 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA',
216 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256',
217 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256',
218 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA',
219 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA',
220 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256',
221 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256',
222 'TLS-DHE-RSA-WITH-SEED-CBC-SHA',
223 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256',
224 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384',
225 'TLS-ECDHE-RSA-WITH-RC4-128-SHA',
226 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA',
227 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA',
228 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA',
229 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
230 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256',
231 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256',
232 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256',
233 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384',
234 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA',
235 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA',
236 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256',
237 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256',
238 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256',
239 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384',
240 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256',
241 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256',
242 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384',
243 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384',
244 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA',
245 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256',
246 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256',
247 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384',
248 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384',
249 'TLS-RSA-WITH-AES-128-GCM-SHA256',
250 'TLS-RSA-WITH-AES-256-GCM-SHA384',
251 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA',
252 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA',
253 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256',
254 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256',
255 'TLS-DHE-DSS-WITH-SEED-CBC-SHA',
256 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256',
257 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384',
258 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256',
259 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384',
260 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256',
261 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384',
262 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA',
263 'TLS-DHE-DSS-WITH-DES-CBC-SHA', 'TLS-AES-128-GCM-SHA256',
264 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256',
265 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA']
266 priority:
267 type: int
268 description: SSL/TLS cipher suites priority.
269 versions:
270 type: list
271 elements: str
272 description: SSL/TLS versions that the cipher suite can be used with.
273 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
274 ssl_dh_bits:
275 aliases: ['ssl-dh-bits']
276 type: str
277 description: Number of bits to use in the Diffie-Hellman exchange for RSA encryption of SSL sessions.
278 choices: ['768', '1024', '1536', '2048', '3072', '4096']
279 ssl_max_version:
280 aliases: ['ssl-max-version']
281 type: str
282 description: Highest SSL/TLS version acceptable from a server.
283 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
284 ssl_min_version:
285 aliases: ['ssl-min-version']
286 type: str
287 description: Lowest SSL/TLS version acceptable from a server.
288 choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3']
289 ssl_vpn_web_portal:
290 aliases: ['ssl-vpn-web-portal']
291 type: str
292 description: SSL-VPN web portal.
293 url_map:
294 aliases: ['url-map']
295 type: str
296 description: URL pattern to match.
297 url_map_type:
298 aliases: ['url-map-type']
299 type: str
300 description: Type of url-map.
301 choices: ['sub-string', 'wildcard', 'regex']
302 virtual_host:
303 aliases: ['virtual-host']
304 type: str
305 description: Virtual host.
306 application:
307 type: raw
308 description: (list) SaaS application controlled by this Access Proxy.
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 IPv6 API Gateway.
371 fortinet.fortimanager.fmgr_firewall_accessproxy_apigateway6:
372 # workspace_locking_adom: <global or your adom name>
373 adom: <your own value>
374 access_proxy: <your own value>
375 state: present # <value in [present, absent]>
376 firewall_accessproxy_apigateway6:
377 id: 0 # Required variable, integer
378 # http_cookie_age: <integer>
379 # http_cookie_domain: <string>
380 # http_cookie_domain_from_host: <value in [disable, enable]>
381 # http_cookie_generation: <integer>
382 # http_cookie_path: <string>
383 # http_cookie_share: <value in [disable, same-ip]>
384 # https_cookie_secure: <value in [disable, enable]>
385 # ldb_method: <value in [static, round-robin, weighted, ...]>
386 # persistence: <value in [none, http-cookie]>
387 # realservers:
388 # - addr_type: <value in [fqdn, ip]>
389 # address: <string>
390 # domain: <string>
391 # health_check: <value in [disable, enable]>
392 # health_check_proto: <value in [ping, http, tcp-connect]>
393 # holddown_interval: <value in [disable, enable]>
394 # http_host: <string>
395 # id: <integer>
396 # ip: <string>
397 # mappedport: <list or string>
398 # port: <integer>
399 # ssh_client_cert: <string>
400 # ssh_host_key: <list or string>
401 # ssh_host_key_validation: <value in [disable, enable]>
402 # status: <value in [active, standby, disable]>
403 # type: <value in [tcp-forwarding, ssh]>
404 # weight: <integer>
405 # translate_host: <value in [disable, enable]>
406 # external_auth: <value in [disable, enable]>
407 # tunnel_encryption: <value in [disable, enable]>
408 # verify_cert: <value in [disable, enable]>
409 # saml_redirect: <value in [disable, enable]>
410 # saml_server: <string>
411 # service: <value in [http, https, tcp-forwarding, ...]>
412 # ssl_algorithm: <value in [high, medium, low]>
413 # ssl_cipher_suites:
414 # - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]>
415 # priority: <integer>
416 # versions: ["tls-1.0", "tls-1.1", "tls-1.2", "tls-1.3"]
417 # ssl_dh_bits: <value in [768, 1024, 1536, ...]>
418 # ssl_max_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]>
419 # ssl_min_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]>
420 # ssl_vpn_web_portal: <string>
421 # url_map: <string>
422 # url_map_type: <value in [sub-string, wildcard, regex]>
423 # virtual_host: <string>
424 # application: <list or 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-proxy/{access-proxy}/api-gateway6',
487 '/pm/config/global/obj/firewall/access-proxy/{access-proxy}/api-gateway6'
488 ]
489 module_arg_spec = {
490 'adom': {'required': True, 'type': 'str'},
491 'access-proxy': {'type': 'str', 'api_name': 'access_proxy'},
492 'access_proxy': {'type': 'str'},
493 'revision_note': {'type': 'str'},
494 'firewall_accessproxy_apigateway6': {
495 'type': 'dict', 'v_range': [['7.0.1', '']],
496 'options': {
497 'http-cookie-age': {'v_range': [['7.0.1', '']], 'type': 'int'},
498 'http-cookie-domain': {'v_range': [['7.0.1', '']], 'type': 'str'},
499 'http-cookie-domain-from-host': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
500 'http-cookie-generation': {'v_range': [['7.0.1', '']], 'type': 'int'},
501 'http-cookie-path': {'v_range': [['7.0.1', '']], 'type': 'str'},
502 'http-cookie-share': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'same-ip'], 'type': 'str'},
503 'https-cookie-secure': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
504 'id': {'v_range': [['7.0.1', '']], 'required': True, 'type': 'int'},
505 'ldb-method': {'v_range': [['7.0.1', '']], 'choices': ['static', 'round-robin', 'weighted', 'first-alive', 'http-host'], 'type': 'str'},
506 'persistence': {'v_range': [['7.0.1', '']], 'choices': ['none', 'http-cookie'], 'type': 'str'},
507 'realservers': {
508 'v_range': [['7.0.1', '']],
509 'type': 'list',
510 'options': {
511 'addr-type': {'v_range': [['7.0.2', '']], 'choices': ['fqdn', 'ip'], 'type': 'str'},
512 'address': {'v_range': [['7.0.1', '']], 'type': 'str'},
513 'domain': {'v_range': [['7.0.3', '']], 'type': 'str'},
514 'health-check': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
515 'health-check-proto': {'v_range': [['7.0.1', '']], 'choices': ['ping', 'http', 'tcp-connect'], 'type': 'str'},
516 'holddown-interval': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
517 'http-host': {'v_range': [['7.0.1', '']], 'type': 'str'},
518 'id': {'v_range': [['7.0.1', '']], 'type': 'int'},
519 'ip': {'v_range': [['7.0.1', '']], 'type': 'str'},
520 'mappedport': {'v_range': [['7.0.1', '']], 'type': 'raw'},
521 'port': {'v_range': [['7.0.1', '']], 'type': 'int'},
522 'ssh-client-cert': {'v_range': [['7.0.1', '']], 'type': 'str'},
523 'ssh-host-key': {'v_range': [['7.0.1', '']], 'no_log': True, 'type': 'raw'},
524 'ssh-host-key-validation': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
525 'status': {'v_range': [['7.0.1', '']], 'choices': ['active', 'standby', 'disable'], 'type': 'str'},
526 'type': {'v_range': [['7.0.1', '']], 'choices': ['tcp-forwarding', 'ssh'], 'type': 'str'},
527 'weight': {'v_range': [['7.0.1', '']], 'type': 'int'},
528 'translate-host': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
529 'external-auth': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
530 'tunnel-encryption': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
531 'verify-cert': {'v_range': [['7.4.8', '7.4.10'], ['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
532 },
533 'elements': 'dict'
534 },
535 'saml-redirect': {'v_range': [['7.0.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
536 'saml-server': {'v_range': [['7.0.1', '']], 'type': 'str'},
537 'service': {'v_range': [['7.0.1', '']], 'choices': ['http', 'https', 'tcp-forwarding', 'samlsp', 'web-portal', 'saas'], 'type': 'str'},
538 'ssl-algorithm': {'v_range': [['7.0.1', '']], 'choices': ['high', 'medium', 'low'], 'type': 'str'},
539 'ssl-cipher-suites': {
540 'v_range': [['7.0.1', '']],
541 'type': 'list',
542 'options': {
543 'cipher': {
544 'v_range': [['7.0.1', '']],
545 'choices': [
546 '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',
547 'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', 'TLS-RSA-WITH-AES-128-CBC-SHA256',
548 'TLS-RSA-WITH-AES-256-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA',
549 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-RSA-WITH-SEED-CBC-SHA',
550 'TLS-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-RSA-WITH-DES-CBC-SHA',
551 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA',
552 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA',
553 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256',
554 'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-SEED-CBC-SHA', 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256',
555 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-RC4-128-SHA', 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA',
556 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA',
557 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256',
558 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256',
559 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA',
560 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256',
561 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256',
562 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA',
563 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256',
564 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', 'TLS-RSA-WITH-AES-128-GCM-SHA256',
565 'TLS-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA',
566 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-DSS-WITH-SEED-CBC-SHA',
567 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256',
568 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256',
569 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-DSS-WITH-DES-CBC-SHA',
570 'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256',
571 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA'
572 ],
573 'type': 'str'
574 },
575 'priority': {'v_range': [['7.0.1', '']], 'type': 'int'},
576 'versions': {
577 'v_range': [['7.0.1', '']],
578 'type': 'list',
579 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'],
580 'elements': 'str'
581 }
582 },
583 'elements': 'dict'
584 },
585 'ssl-dh-bits': {'v_range': [['7.0.1', '']], 'choices': ['768', '1024', '1536', '2048', '3072', '4096'], 'type': 'str'},
586 'ssl-max-version': {'v_range': [['7.0.1', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'},
587 'ssl-min-version': {'v_range': [['7.0.1', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'},
588 'ssl-vpn-web-portal': {'v_range': [['7.0.3', '']], 'type': 'str'},
589 'url-map': {'v_range': [['7.0.1', '']], 'type': 'str'},
590 'url-map-type': {'v_range': [['7.0.1', '']], 'choices': ['sub-string', 'wildcard', 'regex'], 'type': 'str'},
591 'virtual-host': {'v_range': [['7.0.1', '']], 'type': 'str'},
592 'application': {'v_range': [['7.2.1', '']], 'type': 'raw'},
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_accessproxy_apigateway6'),
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()