Debian Codegraph @

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