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