| 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_ztna_webproxy |
| 15 |
short_description: Configure ZTNA web-proxy. |
| 16 |
version_added: "2.12.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 |
ztna_webproxy: |
| 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 |
h2_support: |
| 40 |
aliases: ['h2-support'] |
| 41 |
type: str |
| 42 |
description: HTTP2 support, default=Enable. |
| 43 |
choices: ['disable', 'enable'] |
| 44 |
h3_support: |
| 45 |
aliases: ['h3-support'] |
| 46 |
type: str |
| 47 |
description: HTTP3/QUIC support, default=Disable. |
| 48 |
choices: ['disable', 'enable'] |
| 49 |
http_cookie_age: |
| 50 |
aliases: ['http-cookie-age'] |
| 51 |
type: int |
| 52 |
description: Time in minutes that client web browsers should keep a cookie. |
| 53 |
http_cookie_domain: |
| 54 |
aliases: ['http-cookie-domain'] |
| 55 |
type: str |
| 56 |
description: Domain that HTTP cookie persistence should apply to. |
| 57 |
http_cookie_domain_from_host: |
| 58 |
aliases: ['http-cookie-domain-from-host'] |
| 59 |
type: str |
| 60 |
description: Enable/disable use of HTTP cookie domain from host field in HTTP. |
| 61 |
choices: ['disable', 'enable'] |
| 62 |
http_cookie_generation: |
| 63 |
aliases: ['http-cookie-generation'] |
| 64 |
type: int |
| 65 |
description: Generation of HTTP cookie to be accepted. |
| 66 |
http_cookie_path: |
| 67 |
aliases: ['http-cookie-path'] |
| 68 |
type: str |
| 69 |
description: Limit HTTP cookie persistence to the specified path. |
| 70 |
http_cookie_share: |
| 71 |
aliases: ['http-cookie-share'] |
| 72 |
type: str |
| 73 |
description: Control sharing of cookies across API Gateway. |
| 74 |
choices: ['disable', 'same-ip'] |
| 75 |
https_cookie_secure: |
| 76 |
aliases: ['https-cookie-secure'] |
| 77 |
type: str |
| 78 |
description: Enable/disable verification that inserted HTTPS cookies are secure. |
| 79 |
choices: ['disable', 'enable'] |
| 80 |
id: |
| 81 |
type: int |
| 82 |
description: API Gateway ID. |
| 83 |
ldb_method: |
| 84 |
aliases: ['ldb-method'] |
| 85 |
type: str |
| 86 |
description: Method used to distribute sessions to real servers. |
| 87 |
choices: ['static', 'round-robin', 'weighted', 'first-alive', 'http-host'] |
| 88 |
persistence: |
| 89 |
type: str |
| 90 |
description: Configure how to make sure that clients connect to the same server every time they make a request that is part of ... |
| 91 |
choices: ['none', 'http-cookie'] |
| 92 |
quic: |
| 93 |
type: dict |
| 94 |
description: Quic. |
| 95 |
suboptions: |
| 96 |
ack_delay_exponent: |
| 97 |
aliases: ['ack-delay-exponent'] |
| 98 |
type: int |
| 99 |
description: ACK delay exponent |
| 100 |
active_connection_id_limit: |
| 101 |
aliases: ['active-connection-id-limit'] |
| 102 |
type: int |
| 103 |
description: Active connection ID limit |
| 104 |
active_migration: |
| 105 |
aliases: ['active-migration'] |
| 106 |
type: str |
| 107 |
description: Enable/disable active migration |
| 108 |
choices: ['disable', 'enable'] |
| 109 |
grease_quic_bit: |
| 110 |
aliases: ['grease-quic-bit'] |
| 111 |
type: str |
| 112 |
description: Enable/disable grease QUIC bit |
| 113 |
choices: ['disable', 'enable'] |
| 114 |
max_ack_delay: |
| 115 |
aliases: ['max-ack-delay'] |
| 116 |
type: int |
| 117 |
description: Maximum ACK delay in milliseconds |
| 118 |
max_datagram_frame_size: |
| 119 |
aliases: ['max-datagram-frame-size'] |
| 120 |
type: int |
| 121 |
description: Maximum datagram frame size in bytes |
| 122 |
max_idle_timeout: |
| 123 |
aliases: ['max-idle-timeout'] |
| 124 |
type: int |
| 125 |
description: Maximum idle timeout milliseconds |
| 126 |
max_udp_payload_size: |
| 127 |
aliases: ['max-udp-payload-size'] |
| 128 |
type: int |
| 129 |
description: Maximum UDP payload size in bytes |
| 130 |
realservers: |
| 131 |
type: list |
| 132 |
elements: dict |
| 133 |
description: Realservers. |
| 134 |
suboptions: |
| 135 |
addr_type: |
| 136 |
aliases: ['addr-type'] |
| 137 |
type: str |
| 138 |
description: Type of address. |
| 139 |
choices: ['fqdn', 'ip'] |
| 140 |
address: |
| 141 |
type: list |
| 142 |
elements: str |
| 143 |
description: Address or address group of the real server. |
| 144 |
health_check: |
| 145 |
aliases: ['health-check'] |
| 146 |
type: str |
| 147 |
description: Enable to check the responsiveness of the real server before forwarding traffic. |
| 148 |
choices: ['disable', 'enable'] |
| 149 |
health_check_proto: |
| 150 |
aliases: ['health-check-proto'] |
| 151 |
type: str |
| 152 |
description: Protocol of the health check monitor to use when polling to determine servers connectivity status. |
| 153 |
choices: ['ping', 'http', 'tcp-connect'] |
| 154 |
holddown_interval: |
| 155 |
aliases: ['holddown-interval'] |
| 156 |
type: str |
| 157 |
description: Enable/disable holddown timer. |
| 158 |
choices: ['disable', 'enable'] |
| 159 |
http_host: |
| 160 |
aliases: ['http-host'] |
| 161 |
type: str |
| 162 |
description: HTTP server domain name in HTTP header. |
| 163 |
id: |
| 164 |
type: int |
| 165 |
description: Real server ID. |
| 166 |
ip: |
| 167 |
type: str |
| 168 |
description: IP address of the real server. |
| 169 |
port: |
| 170 |
type: int |
| 171 |
description: Port for communicating with the real server. |
| 172 |
status: |
| 173 |
type: str |
| 174 |
description: Set the status of the real server to active so that it can accept traffic, or on standby or disabled so no... |
| 175 |
choices: ['active', 'standby', 'disable'] |
| 176 |
translate_host: |
| 177 |
aliases: ['translate-host'] |
| 178 |
type: str |
| 179 |
description: Enable/disable translation of hostname/IP from virtual server to real server. |
| 180 |
choices: ['disable', 'enable'] |
| 181 |
verify_cert: |
| 182 |
aliases: ['verify-cert'] |
| 183 |
type: str |
| 184 |
description: Enable/disable certificate verification of the real server. |
| 185 |
choices: ['disable', 'enable'] |
| 186 |
weight: |
| 187 |
type: int |
| 188 |
description: Weight of the real server. |
| 189 |
service: |
| 190 |
type: str |
| 191 |
description: Service. |
| 192 |
choices: ['http', 'https'] |
| 193 |
ssl_algorithm: |
| 194 |
aliases: ['ssl-algorithm'] |
| 195 |
type: str |
| 196 |
description: Permitted encryption algorithms for the server side of SSL full mode sessions according to encryption strength. |
| 197 |
choices: ['high', 'medium', 'low'] |
| 198 |
ssl_cipher_suites: |
| 199 |
aliases: ['ssl-cipher-suites'] |
| 200 |
type: list |
| 201 |
elements: dict |
| 202 |
description: Ssl cipher suites. |
| 203 |
suboptions: |
| 204 |
cipher: |
| 205 |
type: str |
| 206 |
description: Cipher suite name. |
| 207 |
choices: ['TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', |
| 208 |
'TLS-RSA-WITH-DES-CBC-SHA', |
| 209 |
'TLS-RSA-WITH-3DES-EDE-CBC-SHA', |
| 210 |
'TLS-RSA-WITH-AES-128-CBC-SHA', |
| 211 |
'TLS-RSA-WITH-AES-256-CBC-SHA', |
| 212 |
'TLS-RSA-WITH-AES-128-CBC-SHA256', |
| 213 |
'TLS-RSA-WITH-AES-256-CBC-SHA256', |
| 214 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 215 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 216 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 217 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 218 |
'TLS-RSA-WITH-SEED-CBC-SHA', |
| 219 |
'TLS-RSA-WITH-ARIA-128-CBC-SHA256', |
| 220 |
'TLS-RSA-WITH-ARIA-256-CBC-SHA384', |
| 221 |
'TLS-DHE-RSA-WITH-DES-CBC-SHA', |
| 222 |
'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 223 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', |
| 224 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', |
| 225 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', |
| 226 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', |
| 227 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 228 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 229 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 230 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 231 |
'TLS-DHE-RSA-WITH-SEED-CBC-SHA', |
| 232 |
'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 233 |
'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 234 |
'TLS-ECDHE-RSA-WITH-RC4-128-SHA', |
| 235 |
'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 236 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', |
| 237 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', |
| 238 |
'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 239 |
'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', |
| 240 |
'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 241 |
'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', |
| 242 |
'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', |
| 243 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', |
| 244 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', |
| 245 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', |
| 246 |
'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', |
| 247 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', |
| 248 |
'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', |
| 249 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', |
| 250 |
'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 251 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', |
| 252 |
'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', |
| 253 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', |
| 254 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', |
| 255 |
'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', |
| 256 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', |
| 257 |
'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', |
| 258 |
'TLS-RSA-WITH-AES-128-GCM-SHA256', |
| 259 |
'TLS-RSA-WITH-AES-256-GCM-SHA384', |
| 260 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', |
| 261 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 262 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', |
| 263 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', |
| 264 |
'TLS-DHE-DSS-WITH-SEED-CBC-SHA', |
| 265 |
'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', |
| 266 |
'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', |
| 267 |
'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 268 |
'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 269 |
'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', |
| 270 |
'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', |
| 271 |
'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', |
| 272 |
'TLS-DHE-DSS-WITH-DES-CBC-SHA', |
| 273 |
'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384', |
| 274 |
'TLS-CHACHA20-POLY1305-SHA256', |
| 275 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA'] |
| 276 |
priority: |
| 277 |
type: int |
| 278 |
description: SSL/TLS cipher suites priority. |
| 279 |
versions: |
| 280 |
type: list |
| 281 |
elements: str |
| 282 |
description: SSL/TLS versions that the cipher suite can be used with. |
| 283 |
choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 284 |
ssl_dh_bits: |
| 285 |
aliases: ['ssl-dh-bits'] |
| 286 |
type: str |
| 287 |
description: Number of bits to use in the Diffie-Hellman exchange for RSA encryption of SSL sessions. |
| 288 |
choices: ['768', '1024', '1536', '2048', '3072', '4096'] |
| 289 |
ssl_max_version: |
| 290 |
aliases: ['ssl-max-version'] |
| 291 |
type: str |
| 292 |
description: Highest SSL/TLS version acceptable from a server. |
| 293 |
choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 294 |
ssl_min_version: |
| 295 |
aliases: ['ssl-min-version'] |
| 296 |
type: str |
| 297 |
description: Lowest SSL/TLS version acceptable from a server. |
| 298 |
choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 299 |
ssl_renegotiation: |
| 300 |
aliases: ['ssl-renegotiation'] |
| 301 |
type: str |
| 302 |
description: Enable/disable secure renegotiation to comply with RFC 5746. |
| 303 |
choices: ['disable', 'enable'] |
| 304 |
url_map: |
| 305 |
aliases: ['url-map'] |
| 306 |
type: str |
| 307 |
description: URL pattern to match. |
| 308 |
url_map_type: |
| 309 |
aliases: ['url-map-type'] |
| 310 |
type: str |
| 311 |
description: Type of url-map. |
| 312 |
choices: ['sub-string', 'wildcard', 'regex'] |
| 313 |
api_gateway6: |
| 314 |
aliases: ['api-gateway6'] |
| 315 |
type: list |
| 316 |
elements: dict |
| 317 |
description: Api gateway6. |
| 318 |
suboptions: |
| 319 |
h2_support: |
| 320 |
aliases: ['h2-support'] |
| 321 |
type: str |
| 322 |
description: HTTP2 support, default=Enable. |
| 323 |
choices: ['disable', 'enable'] |
| 324 |
h3_support: |
| 325 |
aliases: ['h3-support'] |
| 326 |
type: str |
| 327 |
description: HTTP3/QUIC support, default=Disable. |
| 328 |
choices: ['disable', 'enable'] |
| 329 |
http_cookie_age: |
| 330 |
aliases: ['http-cookie-age'] |
| 331 |
type: int |
| 332 |
description: Time in minutes that client web browsers should keep a cookie. |
| 333 |
http_cookie_domain: |
| 334 |
aliases: ['http-cookie-domain'] |
| 335 |
type: str |
| 336 |
description: Domain that HTTP cookie persistence should apply to. |
| 337 |
http_cookie_domain_from_host: |
| 338 |
aliases: ['http-cookie-domain-from-host'] |
| 339 |
type: str |
| 340 |
description: Enable/disable use of HTTP cookie domain from host field in HTTP. |
| 341 |
choices: ['disable', 'enable'] |
| 342 |
http_cookie_generation: |
| 343 |
aliases: ['http-cookie-generation'] |
| 344 |
type: int |
| 345 |
description: Generation of HTTP cookie to be accepted. |
| 346 |
http_cookie_path: |
| 347 |
aliases: ['http-cookie-path'] |
| 348 |
type: str |
| 349 |
description: Limit HTTP cookie persistence to the specified path. |
| 350 |
http_cookie_share: |
| 351 |
aliases: ['http-cookie-share'] |
| 352 |
type: str |
| 353 |
description: Control sharing of cookies across API Gateway. |
| 354 |
choices: ['disable', 'same-ip'] |
| 355 |
https_cookie_secure: |
| 356 |
aliases: ['https-cookie-secure'] |
| 357 |
type: str |
| 358 |
description: Enable/disable verification that inserted HTTPS cookies are secure. |
| 359 |
choices: ['disable', 'enable'] |
| 360 |
id: |
| 361 |
type: int |
| 362 |
description: API Gateway ID. |
| 363 |
ldb_method: |
| 364 |
aliases: ['ldb-method'] |
| 365 |
type: str |
| 366 |
description: Method used to distribute sessions to real servers. |
| 367 |
choices: ['static', 'round-robin', 'weighted', 'first-alive', 'http-host'] |
| 368 |
persistence: |
| 369 |
type: str |
| 370 |
description: Configure how to make sure that clients connect to the same server every time they make a request that is part of ... |
| 371 |
choices: ['none', 'http-cookie'] |
| 372 |
quic: |
| 373 |
type: dict |
| 374 |
description: Quic. |
| 375 |
suboptions: |
| 376 |
ack_delay_exponent: |
| 377 |
aliases: ['ack-delay-exponent'] |
| 378 |
type: int |
| 379 |
description: ACK delay exponent |
| 380 |
active_connection_id_limit: |
| 381 |
aliases: ['active-connection-id-limit'] |
| 382 |
type: int |
| 383 |
description: Active connection ID limit |
| 384 |
active_migration: |
| 385 |
aliases: ['active-migration'] |
| 386 |
type: str |
| 387 |
description: Enable/disable active migration |
| 388 |
choices: ['disable', 'enable'] |
| 389 |
grease_quic_bit: |
| 390 |
aliases: ['grease-quic-bit'] |
| 391 |
type: str |
| 392 |
description: Enable/disable grease QUIC bit |
| 393 |
choices: ['disable', 'enable'] |
| 394 |
max_ack_delay: |
| 395 |
aliases: ['max-ack-delay'] |
| 396 |
type: int |
| 397 |
description: Maximum ACK delay in milliseconds |
| 398 |
max_datagram_frame_size: |
| 399 |
aliases: ['max-datagram-frame-size'] |
| 400 |
type: int |
| 401 |
description: Maximum datagram frame size in bytes |
| 402 |
max_idle_timeout: |
| 403 |
aliases: ['max-idle-timeout'] |
| 404 |
type: int |
| 405 |
description: Maximum idle timeout milliseconds |
| 406 |
max_udp_payload_size: |
| 407 |
aliases: ['max-udp-payload-size'] |
| 408 |
type: int |
| 409 |
description: Maximum UDP payload size in bytes |
| 410 |
realservers: |
| 411 |
type: list |
| 412 |
elements: dict |
| 413 |
description: Realservers. |
| 414 |
suboptions: |
| 415 |
addr_type: |
| 416 |
aliases: ['addr-type'] |
| 417 |
type: str |
| 418 |
description: Type of address. |
| 419 |
choices: ['fqdn', 'ip'] |
| 420 |
address: |
| 421 |
type: list |
| 422 |
elements: str |
| 423 |
description: Address or address group of the real server. |
| 424 |
health_check: |
| 425 |
aliases: ['health-check'] |
| 426 |
type: str |
| 427 |
description: Enable to check the responsiveness of the real server before forwarding traffic. |
| 428 |
choices: ['disable', 'enable'] |
| 429 |
health_check_proto: |
| 430 |
aliases: ['health-check-proto'] |
| 431 |
type: str |
| 432 |
description: Protocol of the health check monitor to use when polling to determine servers connectivity status. |
| 433 |
choices: ['ping', 'http', 'tcp-connect'] |
| 434 |
holddown_interval: |
| 435 |
aliases: ['holddown-interval'] |
| 436 |
type: str |
| 437 |
description: Enable/disable holddown timer. |
| 438 |
choices: ['disable', 'enable'] |
| 439 |
http_host: |
| 440 |
aliases: ['http-host'] |
| 441 |
type: str |
| 442 |
description: HTTP server domain name in HTTP header. |
| 443 |
id: |
| 444 |
type: int |
| 445 |
description: Real server ID. |
| 446 |
ip: |
| 447 |
type: str |
| 448 |
description: IPv6 address of the real server. |
| 449 |
port: |
| 450 |
type: int |
| 451 |
description: Port for communicating with the real server. |
| 452 |
status: |
| 453 |
type: str |
| 454 |
description: Set the status of the real server to active so that it can accept traffic, or on standby or disabled so no... |
| 455 |
choices: ['active', 'standby', 'disable'] |
| 456 |
translate_host: |
| 457 |
aliases: ['translate-host'] |
| 458 |
type: str |
| 459 |
description: Enable/disable translation of hostname/IP from virtual server to real server. |
| 460 |
choices: ['disable', 'enable'] |
| 461 |
verify_cert: |
| 462 |
aliases: ['verify-cert'] |
| 463 |
type: str |
| 464 |
description: Enable/disable certificate verification of the real server. |
| 465 |
choices: ['disable', 'enable'] |
| 466 |
weight: |
| 467 |
type: int |
| 468 |
description: Weight of the real server. |
| 469 |
service: |
| 470 |
type: str |
| 471 |
description: Service. |
| 472 |
choices: ['http', 'https'] |
| 473 |
ssl_algorithm: |
| 474 |
aliases: ['ssl-algorithm'] |
| 475 |
type: str |
| 476 |
description: Permitted encryption algorithms for the server side of SSL full mode sessions according to encryption strength. |
| 477 |
choices: ['high', 'medium', 'low'] |
| 478 |
ssl_cipher_suites: |
| 479 |
aliases: ['ssl-cipher-suites'] |
| 480 |
type: list |
| 481 |
elements: dict |
| 482 |
description: Ssl cipher suites. |
| 483 |
suboptions: |
| 484 |
cipher: |
| 485 |
type: str |
| 486 |
description: Cipher suite name. |
| 487 |
choices: ['TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', |
| 488 |
'TLS-RSA-WITH-DES-CBC-SHA', |
| 489 |
'TLS-RSA-WITH-3DES-EDE-CBC-SHA', |
| 490 |
'TLS-RSA-WITH-AES-128-CBC-SHA', |
| 491 |
'TLS-RSA-WITH-AES-256-CBC-SHA', |
| 492 |
'TLS-RSA-WITH-AES-128-CBC-SHA256', |
| 493 |
'TLS-RSA-WITH-AES-256-CBC-SHA256', |
| 494 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 495 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 496 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 497 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 498 |
'TLS-RSA-WITH-SEED-CBC-SHA', |
| 499 |
'TLS-RSA-WITH-ARIA-128-CBC-SHA256', |
| 500 |
'TLS-RSA-WITH-ARIA-256-CBC-SHA384', |
| 501 |
'TLS-DHE-RSA-WITH-DES-CBC-SHA', |
| 502 |
'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 503 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', |
| 504 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', |
| 505 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', |
| 506 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', |
| 507 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 508 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 509 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 510 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 511 |
'TLS-DHE-RSA-WITH-SEED-CBC-SHA', |
| 512 |
'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 513 |
'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 514 |
'TLS-ECDHE-RSA-WITH-RC4-128-SHA', |
| 515 |
'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 516 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', |
| 517 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', |
| 518 |
'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 519 |
'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', |
| 520 |
'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 521 |
'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', |
| 522 |
'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', |
| 523 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', |
| 524 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', |
| 525 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', |
| 526 |
'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', |
| 527 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', |
| 528 |
'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', |
| 529 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', |
| 530 |
'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 531 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', |
| 532 |
'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', |
| 533 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', |
| 534 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', |
| 535 |
'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', |
| 536 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', |
| 537 |
'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', |
| 538 |
'TLS-RSA-WITH-AES-128-GCM-SHA256', |
| 539 |
'TLS-RSA-WITH-AES-256-GCM-SHA384', |
| 540 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', |
| 541 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 542 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', |
| 543 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', |
| 544 |
'TLS-DHE-DSS-WITH-SEED-CBC-SHA', |
| 545 |
'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', |
| 546 |
'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', |
| 547 |
'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 548 |
'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 549 |
'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', |
| 550 |
'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', |
| 551 |
'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', |
| 552 |
'TLS-DHE-DSS-WITH-DES-CBC-SHA', |
| 553 |
'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384', |
| 554 |
'TLS-CHACHA20-POLY1305-SHA256', |
| 555 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA'] |
| 556 |
priority: |
| 557 |
type: int |
| 558 |
description: SSL/TLS cipher suites priority. |
| 559 |
versions: |
| 560 |
type: list |
| 561 |
elements: str |
| 562 |
description: SSL/TLS versions that the cipher suite can be used with. |
| 563 |
choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 564 |
ssl_dh_bits: |
| 565 |
aliases: ['ssl-dh-bits'] |
| 566 |
type: str |
| 567 |
description: Number of bits to use in the Diffie-Hellman exchange for RSA encryption of SSL sessions. |
| 568 |
choices: ['768', '1024', '1536', '2048', '3072', '4096'] |
| 569 |
ssl_max_version: |
| 570 |
aliases: ['ssl-max-version'] |
| 571 |
type: str |
| 572 |
description: Highest SSL/TLS version acceptable from a server. |
| 573 |
choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 574 |
ssl_min_version: |
| 575 |
aliases: ['ssl-min-version'] |
| 576 |
type: str |
| 577 |
description: Lowest SSL/TLS version acceptable from a server. |
| 578 |
choices: ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 579 |
ssl_renegotiation: |
| 580 |
aliases: ['ssl-renegotiation'] |
| 581 |
type: str |
| 582 |
description: Enable/disable secure renegotiation to comply with RFC 5746. |
| 583 |
choices: ['disable', 'enable'] |
| 584 |
url_map: |
| 585 |
aliases: ['url-map'] |
| 586 |
type: str |
| 587 |
description: URL pattern to match. |
| 588 |
url_map_type: |
| 589 |
aliases: ['url-map-type'] |
| 590 |
type: str |
| 591 |
description: Type of url-map. |
| 592 |
choices: ['sub-string', 'wildcard', 'regex'] |
| 593 |
auth_portal: |
| 594 |
aliases: ['auth-portal'] |
| 595 |
type: str |
| 596 |
description: Enable/disable authentication portal. |
| 597 |
choices: ['disable', 'enable'] |
| 598 |
auth_virtual_host: |
| 599 |
aliases: ['auth-virtual-host'] |
| 600 |
type: list |
| 601 |
elements: str |
| 602 |
description: Virtual host for authentication portal. |
| 603 |
decrypted_traffic_mirror: |
| 604 |
aliases: ['decrypted-traffic-mirror'] |
| 605 |
type: list |
| 606 |
elements: str |
| 607 |
description: Decrypted traffic mirror. |
| 608 |
host: |
| 609 |
type: list |
| 610 |
elements: str |
| 611 |
description: Virtual or real host name. |
| 612 |
log_blocked_traffic: |
| 613 |
aliases: ['log-blocked-traffic'] |
| 614 |
type: str |
| 615 |
description: Enable/disable logging of blocked traffic. |
| 616 |
choices: ['disable', 'enable'] |
| 617 |
name: |
| 618 |
type: str |
| 619 |
description: ZTNA proxy name. |
| 620 |
required: true |
| 621 |
svr_pool_multiplex: |
| 622 |
aliases: ['svr-pool-multiplex'] |
| 623 |
type: str |
| 624 |
description: Enable/disable server pool multiplexing |
| 625 |
choices: ['disable', 'enable'] |
| 626 |
svr_pool_server_max_concurrent_request: |
| 627 |
aliases: ['svr-pool-server-max-concurrent-request'] |
| 628 |
type: int |
| 629 |
description: Maximum number of concurrent requests that servers in the server pool could handle |
| 630 |
svr_pool_server_max_request: |
| 631 |
aliases: ['svr-pool-server-max-request'] |
| 632 |
type: int |
| 633 |
description: Maximum number of requests that servers in the server pool handle before disconnecting |
| 634 |
svr_pool_ttl: |
| 635 |
aliases: ['svr-pool-ttl'] |
| 636 |
type: int |
| 637 |
description: Time-to-live in the server pool for idle connections to servers. |
| 638 |
vip: |
| 639 |
type: list |
| 640 |
elements: str |
| 641 |
description: Virtual IP name. |
| 642 |
vip6: |
| 643 |
type: list |
| 644 |
elements: str |
| 645 |
description: Virtual IPv6 name. |
| 646 |
''' |
| 647 |
|
| 648 |
EXAMPLES = ''' |
| 649 |
- name: Example playbook (generated based on argument schema) |
| 650 |
hosts: fortimanagers |
| 651 |
connection: httpapi |
| 652 |
gather_facts: false |
| 653 |
tasks: |
| 654 |
- name: Configure ZTNA web-proxy. |
| 655 |
fortinet.fortimanager.fmgr_ztna_webproxy: |
| 656 |
# workspace_locking_adom: <global or your adom name> |
| 657 |
adom: <your own value> |
| 658 |
state: present # <value in [present, absent]> |
| 659 |
ztna_webproxy: |
| 660 |
name: "your value" # Required variable, string |
| 661 |
# api_gateway: |
| 662 |
# - h2_support: <value in [disable, enable]> |
| 663 |
# h3_support: <value in [disable, enable]> |
| 664 |
# http_cookie_age: <integer> |
| 665 |
# http_cookie_domain: <string> |
| 666 |
# http_cookie_domain_from_host: <value in [disable, enable]> |
| 667 |
# http_cookie_generation: <integer> |
| 668 |
# http_cookie_path: <string> |
| 669 |
# http_cookie_share: <value in [disable, same-ip]> |
| 670 |
# https_cookie_secure: <value in [disable, enable]> |
| 671 |
# id: <integer> |
| 672 |
# ldb_method: <value in [static, round-robin, weighted, ...]> |
| 673 |
# persistence: <value in [none, http-cookie]> |
| 674 |
# quic: |
| 675 |
# ack_delay_exponent: <integer> |
| 676 |
# active_connection_id_limit: <integer> |
| 677 |
# active_migration: <value in [disable, enable]> |
| 678 |
# grease_quic_bit: <value in [disable, enable]> |
| 679 |
# max_ack_delay: <integer> |
| 680 |
# max_datagram_frame_size: <integer> |
| 681 |
# max_idle_timeout: <integer> |
| 682 |
# max_udp_payload_size: <integer> |
| 683 |
# realservers: |
| 684 |
# - addr_type: <value in [fqdn, ip]> |
| 685 |
# address: <list or string> |
| 686 |
# health_check: <value in [disable, enable]> |
| 687 |
# health_check_proto: <value in [ping, http, tcp-connect]> |
| 688 |
# holddown_interval: <value in [disable, enable]> |
| 689 |
# http_host: <string> |
| 690 |
# id: <integer> |
| 691 |
# ip: <string> |
| 692 |
# port: <integer> |
| 693 |
# status: <value in [active, standby, disable]> |
| 694 |
# translate_host: <value in [disable, enable]> |
| 695 |
# verify_cert: <value in [disable, enable]> |
| 696 |
# weight: <integer> |
| 697 |
# service: <value in [http, https]> |
| 698 |
# ssl_algorithm: <value in [high, medium, low]> |
| 699 |
# ssl_cipher_suites: |
| 700 |
# - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]> |
| 701 |
# priority: <integer> |
| 702 |
# versions: ["tls-1.0", "tls-1.1", "tls-1.2", "tls-1.3"] |
| 703 |
# ssl_dh_bits: <value in [768, 1024, 1536, ...]> |
| 704 |
# ssl_max_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]> |
| 705 |
# ssl_min_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]> |
| 706 |
# ssl_renegotiation: <value in [disable, enable]> |
| 707 |
# url_map: <string> |
| 708 |
# url_map_type: <value in [sub-string, wildcard, regex]> |
| 709 |
# api_gateway6: |
| 710 |
# - h2_support: <value in [disable, enable]> |
| 711 |
# h3_support: <value in [disable, enable]> |
| 712 |
# http_cookie_age: <integer> |
| 713 |
# http_cookie_domain: <string> |
| 714 |
# http_cookie_domain_from_host: <value in [disable, enable]> |
| 715 |
# http_cookie_generation: <integer> |
| 716 |
# http_cookie_path: <string> |
| 717 |
# http_cookie_share: <value in [disable, same-ip]> |
| 718 |
# https_cookie_secure: <value in [disable, enable]> |
| 719 |
# id: <integer> |
| 720 |
# ldb_method: <value in [static, round-robin, weighted, ...]> |
| 721 |
# persistence: <value in [none, http-cookie]> |
| 722 |
# quic: |
| 723 |
# ack_delay_exponent: <integer> |
| 724 |
# active_connection_id_limit: <integer> |
| 725 |
# active_migration: <value in [disable, enable]> |
| 726 |
# grease_quic_bit: <value in [disable, enable]> |
| 727 |
# max_ack_delay: <integer> |
| 728 |
# max_datagram_frame_size: <integer> |
| 729 |
# max_idle_timeout: <integer> |
| 730 |
# max_udp_payload_size: <integer> |
| 731 |
# realservers: |
| 732 |
# - addr_type: <value in [fqdn, ip]> |
| 733 |
# address: <list or string> |
| 734 |
# health_check: <value in [disable, enable]> |
| 735 |
# health_check_proto: <value in [ping, http, tcp-connect]> |
| 736 |
# holddown_interval: <value in [disable, enable]> |
| 737 |
# http_host: <string> |
| 738 |
# id: <integer> |
| 739 |
# ip: <string> |
| 740 |
# port: <integer> |
| 741 |
# status: <value in [active, standby, disable]> |
| 742 |
# translate_host: <value in [disable, enable]> |
| 743 |
# verify_cert: <value in [disable, enable]> |
| 744 |
# weight: <integer> |
| 745 |
# service: <value in [http, https]> |
| 746 |
# ssl_algorithm: <value in [high, medium, low]> |
| 747 |
# ssl_cipher_suites: |
| 748 |
# - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]> |
| 749 |
# priority: <integer> |
| 750 |
# versions: ["tls-1.0", "tls-1.1", "tls-1.2", "tls-1.3"] |
| 751 |
# ssl_dh_bits: <value in [768, 1024, 1536, ...]> |
| 752 |
# ssl_max_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]> |
| 753 |
# ssl_min_version: <value in [tls-1.0, tls-1.1, tls-1.2, ...]> |
| 754 |
# ssl_renegotiation: <value in [disable, enable]> |
| 755 |
# url_map: <string> |
| 756 |
# url_map_type: <value in [sub-string, wildcard, regex]> |
| 757 |
# auth_portal: <value in [disable, enable]> |
| 758 |
# auth_virtual_host: <list or string> |
| 759 |
# decrypted_traffic_mirror: <list or string> |
| 760 |
# host: <list or string> |
| 761 |
# log_blocked_traffic: <value in [disable, enable]> |
| 762 |
# svr_pool_multiplex: <value in [disable, enable]> |
| 763 |
# svr_pool_server_max_concurrent_request: <integer> |
| 764 |
# svr_pool_server_max_request: <integer> |
| 765 |
# svr_pool_ttl: <integer> |
| 766 |
# vip: <list or string> |
| 767 |
# vip6: <list or string> |
| 768 |
''' |
| 769 |
|
| 770 |
RETURN = ''' |
| 771 |
meta: |
| 772 |
description: The result of the request. |
| 773 |
type: dict |
| 774 |
returned: always |
| 775 |
contains: |
| 776 |
request_url: |
| 777 |
description: The full url requested. |
| 778 |
returned: always |
| 779 |
type: str |
| 780 |
sample: /sys/login/user |
| 781 |
response_code: |
| 782 |
description: The status of api request. |
| 783 |
returned: always |
| 784 |
type: int |
| 785 |
sample: 0 |
| 786 |
response_data: |
| 787 |
description: The api response. |
| 788 |
type: list |
| 789 |
returned: always |
| 790 |
response_message: |
| 791 |
description: The descriptive message of the api response. |
| 792 |
type: str |
| 793 |
returned: always |
| 794 |
sample: OK. |
| 795 |
system_information: |
| 796 |
description: The information of the target system. |
| 797 |
type: dict |
| 798 |
returned: always |
| 799 |
rc: |
| 800 |
description: The status the request. |
| 801 |
type: int |
| 802 |
returned: always |
| 803 |
sample: 0 |
| 804 |
version_check_warning: |
| 805 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 806 |
type: list |
| 807 |
returned: complex |
| 808 |
''' |
| 809 |
from ansible.module_utils.basic import AnsibleModule |
| 810 |
from ansible.module_utils.connection import Connection |
| 811 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 812 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 813 |
|
| 814 |
|
| 815 |
def main(): |
| 816 |
urls_list = [ |
| 817 |
'/pm/config/adom/{adom}/obj/ztna/web-proxy', |
| 818 |
'/pm/config/global/obj/ztna/web-proxy' |
| 819 |
] |
| 820 |
module_arg_spec = { |
| 821 |
'adom': {'required': True, 'type': 'str'}, |
| 822 |
'revision_note': {'type': 'str'}, |
| 823 |
'ztna_webproxy': { |
| 824 |
'type': 'dict', 'v_range': [['7.6.4', '']], |
| 825 |
'options': { |
| 826 |
'api-gateway': { |
| 827 |
'v_range': [['7.6.4', '']], |
| 828 |
'type': 'list', |
| 829 |
'options': { |
| 830 |
'h2-support': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 831 |
'h3-support': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 832 |
'http-cookie-age': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 833 |
'http-cookie-domain': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 834 |
'http-cookie-domain-from-host': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 835 |
'http-cookie-generation': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 836 |
'http-cookie-path': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 837 |
'http-cookie-share': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'same-ip'], 'type': 'str'}, |
| 838 |
'https-cookie-secure': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 839 |
'id': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 840 |
'ldb-method': { |
| 841 |
'v_range': [['7.6.4', '']], |
| 842 |
'choices': ['static', 'round-robin', 'weighted', 'first-alive', 'http-host'], |
| 843 |
'type': 'str' |
| 844 |
}, |
| 845 |
'persistence': {'v_range': [['7.6.4', '']], 'choices': ['none', 'http-cookie'], 'type': 'str'}, |
| 846 |
'quic': { |
| 847 |
'v_range': [['7.6.4', '']], |
| 848 |
'type': 'dict', |
| 849 |
'options': { |
| 850 |
'ack-delay-exponent': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 851 |
'active-connection-id-limit': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 852 |
'active-migration': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 853 |
'grease-quic-bit': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 854 |
'max-ack-delay': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 855 |
'max-datagram-frame-size': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 856 |
'max-idle-timeout': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 857 |
'max-udp-payload-size': {'v_range': [['7.6.4', '']], 'type': 'int'} |
| 858 |
} |
| 859 |
}, |
| 860 |
'realservers': { |
| 861 |
'v_range': [['7.6.4', '']], |
| 862 |
'type': 'list', |
| 863 |
'options': { |
| 864 |
'addr-type': {'v_range': [['7.6.4', '']], 'choices': ['fqdn', 'ip'], 'type': 'str'}, |
| 865 |
'address': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 866 |
'health-check': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 867 |
'health-check-proto': {'v_range': [['7.6.4', '']], 'choices': ['ping', 'http', 'tcp-connect'], 'type': 'str'}, |
| 868 |
'holddown-interval': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 869 |
'http-host': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 870 |
'id': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 871 |
'ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 872 |
'port': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 873 |
'status': {'v_range': [['7.6.4', '']], 'choices': ['active', 'standby', 'disable'], 'type': 'str'}, |
| 874 |
'translate-host': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 875 |
'verify-cert': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 876 |
'weight': {'v_range': [['7.6.4', '']], 'type': 'int'} |
| 877 |
}, |
| 878 |
'elements': 'dict' |
| 879 |
}, |
| 880 |
'service': {'v_range': [['7.6.4', '']], 'choices': ['http', 'https'], 'type': 'str'}, |
| 881 |
'ssl-algorithm': {'v_range': [['7.6.4', '']], 'choices': ['high', 'medium', 'low'], 'type': 'str'}, |
| 882 |
'ssl-cipher-suites': { |
| 883 |
'v_range': [['7.6.4', '']], |
| 884 |
'type': 'list', |
| 885 |
'options': { |
| 886 |
'cipher': { |
| 887 |
'v_range': [['7.6.4', '']], |
| 888 |
'choices': [ |
| 889 |
'TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', 'TLS-RSA-WITH-DES-CBC-SHA', |
| 890 |
'TLS-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', |
| 891 |
'TLS-RSA-WITH-AES-128-CBC-SHA256', 'TLS-RSA-WITH-AES-256-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 892 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 893 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-RSA-WITH-SEED-CBC-SHA', 'TLS-RSA-WITH-ARIA-128-CBC-SHA256', |
| 894 |
'TLS-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-RSA-WITH-DES-CBC-SHA', 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 895 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', |
| 896 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 897 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 898 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-SEED-CBC-SHA', |
| 899 |
'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-RC4-128-SHA', |
| 900 |
'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', |
| 901 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 902 |
'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 903 |
'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', |
| 904 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', |
| 905 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', |
| 906 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 907 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', |
| 908 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', |
| 909 |
'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', |
| 910 |
'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', 'TLS-RSA-WITH-AES-128-GCM-SHA256', 'TLS-RSA-WITH-AES-256-GCM-SHA384', |
| 911 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 912 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', |
| 913 |
'TLS-DHE-DSS-WITH-SEED-CBC-SHA', 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', |
| 914 |
'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 915 |
'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', |
| 916 |
'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-DSS-WITH-DES-CBC-SHA', 'TLS-AES-128-GCM-SHA256', |
| 917 |
'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA' |
| 918 |
], |
| 919 |
'type': 'str' |
| 920 |
}, |
| 921 |
'priority': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 922 |
'versions': { |
| 923 |
'v_range': [['7.6.4', '']], |
| 924 |
'type': 'list', |
| 925 |
'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], |
| 926 |
'elements': 'str' |
| 927 |
} |
| 928 |
}, |
| 929 |
'elements': 'dict' |
| 930 |
}, |
| 931 |
'ssl-dh-bits': {'v_range': [['7.6.4', '']], 'choices': ['768', '1024', '1536', '2048', '3072', '4096'], 'type': 'str'}, |
| 932 |
'ssl-max-version': {'v_range': [['7.6.4', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'}, |
| 933 |
'ssl-min-version': {'v_range': [['7.6.4', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'}, |
| 934 |
'ssl-renegotiation': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 935 |
'url-map': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 936 |
'url-map-type': {'v_range': [['7.6.4', '']], 'choices': ['sub-string', 'wildcard', 'regex'], 'type': 'str'} |
| 937 |
}, |
| 938 |
'elements': 'dict' |
| 939 |
}, |
| 940 |
'api-gateway6': { |
| 941 |
'v_range': [['7.6.4', '']], |
| 942 |
'type': 'list', |
| 943 |
'options': { |
| 944 |
'h2-support': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 945 |
'h3-support': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 946 |
'http-cookie-age': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 947 |
'http-cookie-domain': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 948 |
'http-cookie-domain-from-host': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 949 |
'http-cookie-generation': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 950 |
'http-cookie-path': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 951 |
'http-cookie-share': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'same-ip'], 'type': 'str'}, |
| 952 |
'https-cookie-secure': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 953 |
'id': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 954 |
'ldb-method': { |
| 955 |
'v_range': [['7.6.4', '']], |
| 956 |
'choices': ['static', 'round-robin', 'weighted', 'first-alive', 'http-host'], |
| 957 |
'type': 'str' |
| 958 |
}, |
| 959 |
'persistence': {'v_range': [['7.6.4', '']], 'choices': ['none', 'http-cookie'], 'type': 'str'}, |
| 960 |
'quic': { |
| 961 |
'v_range': [['7.6.4', '']], |
| 962 |
'type': 'dict', |
| 963 |
'options': { |
| 964 |
'ack-delay-exponent': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 965 |
'active-connection-id-limit': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 966 |
'active-migration': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 967 |
'grease-quic-bit': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 968 |
'max-ack-delay': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 969 |
'max-datagram-frame-size': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 970 |
'max-idle-timeout': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 971 |
'max-udp-payload-size': {'v_range': [['7.6.4', '']], 'type': 'int'} |
| 972 |
} |
| 973 |
}, |
| 974 |
'realservers': { |
| 975 |
'v_range': [['7.6.4', '']], |
| 976 |
'type': 'list', |
| 977 |
'options': { |
| 978 |
'addr-type': {'v_range': [['7.6.4', '']], 'choices': ['fqdn', 'ip'], 'type': 'str'}, |
| 979 |
'address': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 980 |
'health-check': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 981 |
'health-check-proto': {'v_range': [['7.6.4', '']], 'choices': ['ping', 'http', 'tcp-connect'], 'type': 'str'}, |
| 982 |
'holddown-interval': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 983 |
'http-host': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 984 |
'id': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 985 |
'ip': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 986 |
'port': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 987 |
'status': {'v_range': [['7.6.4', '']], 'choices': ['active', 'standby', 'disable'], 'type': 'str'}, |
| 988 |
'translate-host': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 989 |
'verify-cert': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 990 |
'weight': {'v_range': [['7.6.4', '']], 'type': 'int'} |
| 991 |
}, |
| 992 |
'elements': 'dict' |
| 993 |
}, |
| 994 |
'service': {'v_range': [['7.6.4', '']], 'choices': ['http', 'https'], 'type': 'str'}, |
| 995 |
'ssl-algorithm': {'v_range': [['7.6.4', '']], 'choices': ['high', 'medium', 'low'], 'type': 'str'}, |
| 996 |
'ssl-cipher-suites': { |
| 997 |
'v_range': [['7.6.4', '']], |
| 998 |
'type': 'list', |
| 999 |
'options': { |
| 1000 |
'cipher': { |
| 1001 |
'v_range': [['7.6.4', '']], |
| 1002 |
'choices': [ |
| 1003 |
'TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', 'TLS-RSA-WITH-DES-CBC-SHA', |
| 1004 |
'TLS-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', |
| 1005 |
'TLS-RSA-WITH-AES-128-CBC-SHA256', 'TLS-RSA-WITH-AES-256-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 1006 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 1007 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-RSA-WITH-SEED-CBC-SHA', 'TLS-RSA-WITH-ARIA-128-CBC-SHA256', |
| 1008 |
'TLS-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-RSA-WITH-DES-CBC-SHA', 'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 1009 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', |
| 1010 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 1011 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 1012 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-SEED-CBC-SHA', |
| 1013 |
'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-RC4-128-SHA', |
| 1014 |
'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', |
| 1015 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', 'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 1016 |
'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 1017 |
'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', |
| 1018 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', |
| 1019 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', |
| 1020 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 1021 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', |
| 1022 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', |
| 1023 |
'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', |
| 1024 |
'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', 'TLS-RSA-WITH-AES-128-GCM-SHA256', 'TLS-RSA-WITH-AES-256-GCM-SHA384', |
| 1025 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 1026 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', |
| 1027 |
'TLS-DHE-DSS-WITH-SEED-CBC-SHA', 'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', |
| 1028 |
'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 1029 |
'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', 'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', |
| 1030 |
'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-DSS-WITH-DES-CBC-SHA', 'TLS-AES-128-GCM-SHA256', |
| 1031 |
'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA' |
| 1032 |
], |
| 1033 |
'type': 'str' |
| 1034 |
}, |
| 1035 |
'priority': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1036 |
'versions': { |
| 1037 |
'v_range': [['7.6.4', '']], |
| 1038 |
'type': 'list', |
| 1039 |
'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], |
| 1040 |
'elements': 'str' |
| 1041 |
} |
| 1042 |
}, |
| 1043 |
'elements': 'dict' |
| 1044 |
}, |
| 1045 |
'ssl-dh-bits': {'v_range': [['7.6.4', '']], 'choices': ['768', '1024', '1536', '2048', '3072', '4096'], 'type': 'str'}, |
| 1046 |
'ssl-max-version': {'v_range': [['7.6.4', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'}, |
| 1047 |
'ssl-min-version': {'v_range': [['7.6.4', '']], 'choices': ['tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'}, |
| 1048 |
'ssl-renegotiation': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1049 |
'url-map': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 1050 |
'url-map-type': {'v_range': [['7.6.4', '']], 'choices': ['sub-string', 'wildcard', 'regex'], 'type': 'str'} |
| 1051 |
}, |
| 1052 |
'elements': 'dict' |
| 1053 |
}, |
| 1054 |
'auth-portal': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1055 |
'auth-virtual-host': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1056 |
'decrypted-traffic-mirror': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1057 |
'host': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1058 |
'log-blocked-traffic': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1059 |
'name': {'v_range': [['7.6.4', '']], 'required': True, 'type': 'str'}, |
| 1060 |
'svr-pool-multiplex': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1061 |
'svr-pool-server-max-concurrent-request': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1062 |
'svr-pool-server-max-request': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1063 |
'svr-pool-ttl': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 1064 |
'vip': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 1065 |
'vip6': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'} |
| 1066 |
} |
| 1067 |
} |
| 1068 |
} |
| 1069 |
|
| 1070 |
module_option_spec = get_module_arg_spec('full crud') |
| 1071 |
module_arg_spec.update(module_option_spec) |
| 1072 |
check_galaxy_version(module_arg_spec) |
| 1073 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'ztna_webproxy'), |
| 1074 |
supports_check_mode=True) |
| 1075 |
if not module._socket_path: |
| 1076 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 1077 |
connection = Connection(module._socket_path) |
| 1078 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 1079 |
'name', 'data', module, connection) |
| 1080 |
fmgr.process_crud() |
| 1081 |
module.exit_json(meta=module.params) |
| 1082 |
|
| 1083 |
|
| 1084 |
if __name__ == '__main__': |
| 1085 |
main() |