| 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_vip6_dynamicmapping |
| 15 |
short_description: Configure virtual IP for IPv6. |
| 16 |
version_added: "2.0.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 |
vip6: |
| 29 |
description: The parameter (vip6) in requested url. |
| 30 |
type: str |
| 31 |
required: true |
| 32 |
firewall_vip6_dynamicmapping: |
| 33 |
description: The top level parameters set. |
| 34 |
required: false |
| 35 |
type: dict |
| 36 |
suboptions: |
| 37 |
_scope: |
| 38 |
type: list |
| 39 |
elements: dict |
| 40 |
description: Scope. |
| 41 |
suboptions: |
| 42 |
name: |
| 43 |
type: str |
| 44 |
description: Name. |
| 45 |
vdom: |
| 46 |
type: str |
| 47 |
description: Vdom. |
| 48 |
arp_reply: |
| 49 |
aliases: ['arp-reply'] |
| 50 |
type: str |
| 51 |
description: Arp reply. |
| 52 |
choices: ['disable', 'enable'] |
| 53 |
color: |
| 54 |
type: int |
| 55 |
description: Color. |
| 56 |
comment: |
| 57 |
type: str |
| 58 |
description: Comment. |
| 59 |
extip: |
| 60 |
type: str |
| 61 |
description: Extip. |
| 62 |
extport: |
| 63 |
type: str |
| 64 |
description: Extport. |
| 65 |
http_cookie_age: |
| 66 |
aliases: ['http-cookie-age'] |
| 67 |
type: int |
| 68 |
description: Http cookie age. |
| 69 |
http_cookie_domain: |
| 70 |
aliases: ['http-cookie-domain'] |
| 71 |
type: str |
| 72 |
description: Http cookie domain. |
| 73 |
http_cookie_domain_from_host: |
| 74 |
aliases: ['http-cookie-domain-from-host'] |
| 75 |
type: str |
| 76 |
description: Http cookie domain from host. |
| 77 |
choices: ['disable', 'enable'] |
| 78 |
http_cookie_generation: |
| 79 |
aliases: ['http-cookie-generation'] |
| 80 |
type: int |
| 81 |
description: Http cookie generation. |
| 82 |
http_cookie_path: |
| 83 |
aliases: ['http-cookie-path'] |
| 84 |
type: str |
| 85 |
description: Http cookie path. |
| 86 |
http_cookie_share: |
| 87 |
aliases: ['http-cookie-share'] |
| 88 |
type: str |
| 89 |
description: Http cookie share. |
| 90 |
choices: ['disable', 'same-ip'] |
| 91 |
http_ip_header: |
| 92 |
aliases: ['http-ip-header'] |
| 93 |
type: str |
| 94 |
description: Http ip header. |
| 95 |
choices: ['disable', 'enable'] |
| 96 |
http_ip_header_name: |
| 97 |
aliases: ['http-ip-header-name'] |
| 98 |
type: str |
| 99 |
description: Http ip header name. |
| 100 |
http_multiplex: |
| 101 |
aliases: ['http-multiplex'] |
| 102 |
type: str |
| 103 |
description: Http multiplex. |
| 104 |
choices: ['disable', 'enable'] |
| 105 |
https_cookie_secure: |
| 106 |
aliases: ['https-cookie-secure'] |
| 107 |
type: str |
| 108 |
description: Https cookie secure. |
| 109 |
choices: ['disable', 'enable'] |
| 110 |
id: |
| 111 |
type: int |
| 112 |
description: Id. |
| 113 |
ldb_method: |
| 114 |
aliases: ['ldb-method'] |
| 115 |
type: str |
| 116 |
description: Ldb method. |
| 117 |
choices: ['static', 'round-robin', 'weighted', 'least-session', 'least-rtt', |
| 118 |
'first-alive', 'http-host'] |
| 119 |
mappedip: |
| 120 |
type: str |
| 121 |
description: Mappedip. |
| 122 |
mappedport: |
| 123 |
type: str |
| 124 |
description: Mappedport. |
| 125 |
max_embryonic_connections: |
| 126 |
aliases: ['max-embryonic-connections'] |
| 127 |
type: int |
| 128 |
description: Max embryonic connections. |
| 129 |
monitor: |
| 130 |
type: raw |
| 131 |
description: (list or str) Monitor. |
| 132 |
outlook_web_access: |
| 133 |
aliases: ['outlook-web-access'] |
| 134 |
type: str |
| 135 |
description: Outlook web access. |
| 136 |
choices: ['disable', 'enable'] |
| 137 |
persistence: |
| 138 |
type: str |
| 139 |
description: Persistence. |
| 140 |
choices: ['none', 'http-cookie', 'ssl-session-id'] |
| 141 |
portforward: |
| 142 |
type: str |
| 143 |
description: Portforward. |
| 144 |
choices: ['disable', 'enable'] |
| 145 |
protocol: |
| 146 |
type: str |
| 147 |
description: Protocol. |
| 148 |
choices: ['tcp', 'udp', 'sctp'] |
| 149 |
server_type: |
| 150 |
aliases: ['server-type'] |
| 151 |
type: str |
| 152 |
description: Server type. |
| 153 |
choices: ['http', 'https', 'ssl', 'tcp', 'udp', 'ip', 'imaps', 'pop3s', 'smtps'] |
| 154 |
src_filter: |
| 155 |
aliases: ['src-filter'] |
| 156 |
type: raw |
| 157 |
description: (list) Src filter. |
| 158 |
ssl_algorithm: |
| 159 |
aliases: ['ssl-algorithm'] |
| 160 |
type: str |
| 161 |
description: Ssl algorithm. |
| 162 |
choices: ['high', 'low', 'medium', 'custom'] |
| 163 |
ssl_certificate: |
| 164 |
aliases: ['ssl-certificate'] |
| 165 |
type: str |
| 166 |
description: Ssl certificate. |
| 167 |
ssl_client_fallback: |
| 168 |
aliases: ['ssl-client-fallback'] |
| 169 |
type: str |
| 170 |
description: Ssl client fallback. |
| 171 |
choices: ['disable', 'enable'] |
| 172 |
ssl_client_renegotiation: |
| 173 |
aliases: ['ssl-client-renegotiation'] |
| 174 |
type: str |
| 175 |
description: Ssl client renegotiation. |
| 176 |
choices: ['deny', 'allow', 'secure'] |
| 177 |
ssl_client_session_state_max: |
| 178 |
aliases: ['ssl-client-session-state-max'] |
| 179 |
type: int |
| 180 |
description: Ssl client session state max. |
| 181 |
ssl_client_session_state_timeout: |
| 182 |
aliases: ['ssl-client-session-state-timeout'] |
| 183 |
type: int |
| 184 |
description: Ssl client session state timeout. |
| 185 |
ssl_client_session_state_type: |
| 186 |
aliases: ['ssl-client-session-state-type'] |
| 187 |
type: str |
| 188 |
description: Ssl client session state type. |
| 189 |
choices: ['disable', 'time', 'count', 'both'] |
| 190 |
ssl_dh_bits: |
| 191 |
aliases: ['ssl-dh-bits'] |
| 192 |
type: str |
| 193 |
description: Ssl dh bits. |
| 194 |
choices: ['768', '1024', '1536', '2048', '3072', '4096'] |
| 195 |
ssl_hpkp: |
| 196 |
aliases: ['ssl-hpkp'] |
| 197 |
type: str |
| 198 |
description: Ssl hpkp. |
| 199 |
choices: ['disable', 'enable', 'report-only'] |
| 200 |
ssl_hpkp_age: |
| 201 |
aliases: ['ssl-hpkp-age'] |
| 202 |
type: int |
| 203 |
description: Ssl hpkp age. |
| 204 |
ssl_hpkp_backup: |
| 205 |
aliases: ['ssl-hpkp-backup'] |
| 206 |
type: str |
| 207 |
description: Ssl hpkp backup. |
| 208 |
ssl_hpkp_include_subdomains: |
| 209 |
aliases: ['ssl-hpkp-include-subdomains'] |
| 210 |
type: str |
| 211 |
description: Ssl hpkp include subdomains. |
| 212 |
choices: ['disable', 'enable'] |
| 213 |
ssl_hpkp_primary: |
| 214 |
aliases: ['ssl-hpkp-primary'] |
| 215 |
type: str |
| 216 |
description: Ssl hpkp primary. |
| 217 |
ssl_hpkp_report_uri: |
| 218 |
aliases: ['ssl-hpkp-report-uri'] |
| 219 |
type: str |
| 220 |
description: Ssl hpkp report uri. |
| 221 |
ssl_hsts: |
| 222 |
aliases: ['ssl-hsts'] |
| 223 |
type: str |
| 224 |
description: Ssl hsts. |
| 225 |
choices: ['disable', 'enable'] |
| 226 |
ssl_hsts_age: |
| 227 |
aliases: ['ssl-hsts-age'] |
| 228 |
type: int |
| 229 |
description: Ssl hsts age. |
| 230 |
ssl_hsts_include_subdomains: |
| 231 |
aliases: ['ssl-hsts-include-subdomains'] |
| 232 |
type: str |
| 233 |
description: Ssl hsts include subdomains. |
| 234 |
choices: ['disable', 'enable'] |
| 235 |
ssl_http_location_conversion: |
| 236 |
aliases: ['ssl-http-location-conversion'] |
| 237 |
type: str |
| 238 |
description: Ssl http location conversion. |
| 239 |
choices: ['disable', 'enable'] |
| 240 |
ssl_http_match_host: |
| 241 |
aliases: ['ssl-http-match-host'] |
| 242 |
type: str |
| 243 |
description: Ssl http match host. |
| 244 |
choices: ['disable', 'enable'] |
| 245 |
ssl_max_version: |
| 246 |
aliases: ['ssl-max-version'] |
| 247 |
type: str |
| 248 |
description: Ssl max version. |
| 249 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 250 |
ssl_min_version: |
| 251 |
aliases: ['ssl-min-version'] |
| 252 |
type: str |
| 253 |
description: Ssl min version. |
| 254 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 255 |
ssl_mode: |
| 256 |
aliases: ['ssl-mode'] |
| 257 |
type: str |
| 258 |
description: Ssl mode. |
| 259 |
choices: ['half', 'full'] |
| 260 |
ssl_pfs: |
| 261 |
aliases: ['ssl-pfs'] |
| 262 |
type: str |
| 263 |
description: Ssl pfs. |
| 264 |
choices: ['require', 'deny', 'allow'] |
| 265 |
ssl_send_empty_frags: |
| 266 |
aliases: ['ssl-send-empty-frags'] |
| 267 |
type: str |
| 268 |
description: Ssl send empty frags. |
| 269 |
choices: ['disable', 'enable'] |
| 270 |
ssl_server_algorithm: |
| 271 |
aliases: ['ssl-server-algorithm'] |
| 272 |
type: str |
| 273 |
description: Ssl server algorithm. |
| 274 |
choices: ['high', 'low', 'medium', 'custom', 'client'] |
| 275 |
ssl_server_max_version: |
| 276 |
aliases: ['ssl-server-max-version'] |
| 277 |
type: str |
| 278 |
description: Ssl server max version. |
| 279 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'client', 'tls-1.3'] |
| 280 |
ssl_server_min_version: |
| 281 |
aliases: ['ssl-server-min-version'] |
| 282 |
type: str |
| 283 |
description: Ssl server min version. |
| 284 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'client', 'tls-1.3'] |
| 285 |
ssl_server_session_state_max: |
| 286 |
aliases: ['ssl-server-session-state-max'] |
| 287 |
type: int |
| 288 |
description: Ssl server session state max. |
| 289 |
ssl_server_session_state_timeout: |
| 290 |
aliases: ['ssl-server-session-state-timeout'] |
| 291 |
type: int |
| 292 |
description: Ssl server session state timeout. |
| 293 |
ssl_server_session_state_type: |
| 294 |
aliases: ['ssl-server-session-state-type'] |
| 295 |
type: str |
| 296 |
description: Ssl server session state type. |
| 297 |
choices: ['disable', 'time', 'count', 'both'] |
| 298 |
type: |
| 299 |
type: str |
| 300 |
description: Type. |
| 301 |
choices: ['static-nat', 'server-load-balance', 'access-proxy'] |
| 302 |
uuid: |
| 303 |
type: str |
| 304 |
description: Uuid. |
| 305 |
weblogic_server: |
| 306 |
aliases: ['weblogic-server'] |
| 307 |
type: str |
| 308 |
description: Weblogic server. |
| 309 |
choices: ['disable', 'enable'] |
| 310 |
websphere_server: |
| 311 |
aliases: ['websphere-server'] |
| 312 |
type: str |
| 313 |
description: Websphere server. |
| 314 |
choices: ['disable', 'enable'] |
| 315 |
http_redirect: |
| 316 |
aliases: ['http-redirect'] |
| 317 |
type: str |
| 318 |
description: Http redirect. |
| 319 |
choices: ['disable', 'enable'] |
| 320 |
ssl_client_rekey_count: |
| 321 |
aliases: ['ssl-client-rekey-count'] |
| 322 |
type: int |
| 323 |
description: Ssl client rekey count. |
| 324 |
nat_source_vip: |
| 325 |
aliases: ['nat-source-vip'] |
| 326 |
type: str |
| 327 |
description: Nat source vip. |
| 328 |
choices: ['disable', 'enable'] |
| 329 |
add_nat64_route: |
| 330 |
aliases: ['add-nat64-route'] |
| 331 |
type: str |
| 332 |
description: Enable/disable adding NAT64 route. |
| 333 |
choices: ['disable', 'enable'] |
| 334 |
embedded_ipv4_address: |
| 335 |
aliases: ['embedded-ipv4-address'] |
| 336 |
type: str |
| 337 |
description: Enable/disable use of the lower 32 bits of the external IPv6 address as mapped IPv4 address. |
| 338 |
choices: ['disable', 'enable'] |
| 339 |
ipv4_mappedip: |
| 340 |
aliases: ['ipv4-mappedip'] |
| 341 |
type: str |
| 342 |
description: Range of mapped IP addresses. |
| 343 |
ipv4_mappedport: |
| 344 |
aliases: ['ipv4-mappedport'] |
| 345 |
type: str |
| 346 |
description: IPv4 port number range on the destination network to which the external port number range is mapped. |
| 347 |
nat64: |
| 348 |
type: str |
| 349 |
description: Enable/disable DNAT64. |
| 350 |
choices: ['disable', 'enable'] |
| 351 |
nat66: |
| 352 |
type: str |
| 353 |
description: Enable/disable DNAT66. |
| 354 |
choices: ['disable', 'enable'] |
| 355 |
realservers: |
| 356 |
type: list |
| 357 |
elements: dict |
| 358 |
description: Realservers. |
| 359 |
suboptions: |
| 360 |
client_ip: |
| 361 |
aliases: ['client-ip'] |
| 362 |
type: str |
| 363 |
description: Only clients in this IP range can connect to this real server. |
| 364 |
healthcheck: |
| 365 |
type: str |
| 366 |
description: Enable to check the responsiveness of the real server before forwarding traffic. |
| 367 |
choices: ['disable', 'enable', 'vip'] |
| 368 |
holddown_interval: |
| 369 |
aliases: ['holddown-interval'] |
| 370 |
type: int |
| 371 |
description: Time in seconds that the health check monitor continues to monitor an unresponsive server that should be active. |
| 372 |
http_host: |
| 373 |
aliases: ['http-host'] |
| 374 |
type: str |
| 375 |
description: HTTP server domain name in HTTP header. |
| 376 |
id: |
| 377 |
type: int |
| 378 |
description: Real server ID. |
| 379 |
ip: |
| 380 |
type: str |
| 381 |
description: IP address of the real server. |
| 382 |
max_connections: |
| 383 |
aliases: ['max-connections'] |
| 384 |
type: int |
| 385 |
description: Max number of active connections that can directed to the real server. |
| 386 |
monitor: |
| 387 |
type: raw |
| 388 |
description: (list or str) Name of the health check monitor to use when polling to determine a virtual servers connectivity status. |
| 389 |
port: |
| 390 |
type: int |
| 391 |
description: Port for communicating with the real server. |
| 392 |
status: |
| 393 |
type: str |
| 394 |
description: Set the status of the real server to active so that it can accept traffic, or on standby or disabled so no traffic... |
| 395 |
choices: ['active', 'standby', 'disable'] |
| 396 |
weight: |
| 397 |
type: int |
| 398 |
description: Weight of the real server. |
| 399 |
translate_host: |
| 400 |
aliases: ['translate-host'] |
| 401 |
type: str |
| 402 |
description: Enable/disable translation of hostname/IP from virtual server to real server. |
| 403 |
choices: ['disable', 'enable'] |
| 404 |
verify_cert: |
| 405 |
aliases: ['verify-cert'] |
| 406 |
type: str |
| 407 |
description: Enable/disable certificate verification of the real server. |
| 408 |
choices: ['disable', 'enable'] |
| 409 |
ssl_accept_ffdhe_groups: |
| 410 |
aliases: ['ssl-accept-ffdhe-groups'] |
| 411 |
type: str |
| 412 |
description: Enable/disable FFDHE cipher suite for SSL key exchange. |
| 413 |
choices: ['disable', 'enable'] |
| 414 |
ssl_cipher_suites: |
| 415 |
aliases: ['ssl-cipher-suites'] |
| 416 |
type: list |
| 417 |
elements: dict |
| 418 |
description: Ssl cipher suites. |
| 419 |
suboptions: |
| 420 |
cipher: |
| 421 |
type: str |
| 422 |
description: Cipher suite name. |
| 423 |
choices: ['TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', |
| 424 |
'TLS-RSA-WITH-DES-CBC-SHA', 'TLS-RSA-WITH-3DES-EDE-CBC-SHA', |
| 425 |
'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', |
| 426 |
'TLS-RSA-WITH-AES-128-CBC-SHA256', |
| 427 |
'TLS-RSA-WITH-AES-256-CBC-SHA256', |
| 428 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 429 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 430 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 431 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 432 |
'TLS-RSA-WITH-SEED-CBC-SHA', 'TLS-RSA-WITH-ARIA-128-CBC-SHA256', |
| 433 |
'TLS-RSA-WITH-ARIA-256-CBC-SHA384', |
| 434 |
'TLS-DHE-RSA-WITH-DES-CBC-SHA', |
| 435 |
'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 436 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', |
| 437 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', |
| 438 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', |
| 439 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', |
| 440 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 441 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 442 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 443 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 444 |
'TLS-DHE-RSA-WITH-SEED-CBC-SHA', |
| 445 |
'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 446 |
'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 447 |
'TLS-ECDHE-RSA-WITH-RC4-128-SHA', |
| 448 |
'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 449 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', |
| 450 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', |
| 451 |
'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 452 |
'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', |
| 453 |
'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 454 |
'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', |
| 455 |
'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', |
| 456 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', |
| 457 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', |
| 458 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', |
| 459 |
'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', |
| 460 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', |
| 461 |
'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', |
| 462 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', |
| 463 |
'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 464 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', |
| 465 |
'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', |
| 466 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', |
| 467 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', |
| 468 |
'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', |
| 469 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', |
| 470 |
'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', |
| 471 |
'TLS-RSA-WITH-AES-128-GCM-SHA256', |
| 472 |
'TLS-RSA-WITH-AES-256-GCM-SHA384', |
| 473 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', |
| 474 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 475 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', |
| 476 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', |
| 477 |
'TLS-DHE-DSS-WITH-SEED-CBC-SHA', |
| 478 |
'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', |
| 479 |
'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', |
| 480 |
'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 481 |
'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 482 |
'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', |
| 483 |
'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', |
| 484 |
'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', |
| 485 |
'TLS-DHE-DSS-WITH-DES-CBC-SHA', 'TLS-AES-128-GCM-SHA256', |
| 486 |
'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', |
| 487 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA'] |
| 488 |
priority: |
| 489 |
type: int |
| 490 |
description: SSL/TLS cipher suites priority. |
| 491 |
versions: |
| 492 |
type: list |
| 493 |
elements: str |
| 494 |
description: SSL/TLS versions that the cipher suite can be used with. |
| 495 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 496 |
ndp_reply: |
| 497 |
aliases: ['ndp-reply'] |
| 498 |
type: str |
| 499 |
description: Enable/disable this FortiGate units ability to respond to NDP requests for this virtual IP address |
| 500 |
choices: ['disable', 'enable'] |
| 501 |
ssl_server_renegotiation: |
| 502 |
aliases: ['ssl-server-renegotiation'] |
| 503 |
type: str |
| 504 |
description: Enable/disable secure renegotiation to comply with RFC 5746. |
| 505 |
choices: ['disable', 'enable'] |
| 506 |
h2_support: |
| 507 |
aliases: ['h2-support'] |
| 508 |
type: str |
| 509 |
description: Enable/disable HTTP2 support |
| 510 |
choices: ['disable', 'enable'] |
| 511 |
h3_support: |
| 512 |
aliases: ['h3-support'] |
| 513 |
type: str |
| 514 |
description: Enable/disable HTTP3/QUIC support |
| 515 |
choices: ['disable', 'enable'] |
| 516 |
src_vip_filter: |
| 517 |
aliases: ['src-vip-filter'] |
| 518 |
type: str |
| 519 |
description: Enable/disable use of src-filter to match destinations for the reverse SNAT rule. |
| 520 |
choices: ['disable', 'enable'] |
| 521 |
client_cert: |
| 522 |
aliases: ['client-cert'] |
| 523 |
type: str |
| 524 |
description: Enable/disable requesting client certificate. |
| 525 |
choices: ['disable', 'enable'] |
| 526 |
empty_cert_action: |
| 527 |
aliases: ['empty-cert-action'] |
| 528 |
type: str |
| 529 |
description: Action for an empty client certificate. |
| 530 |
choices: ['accept', 'block', 'accept-unmanageable'] |
| 531 |
user_agent_detect: |
| 532 |
aliases: ['user-agent-detect'] |
| 533 |
type: str |
| 534 |
description: Enable/disable detecting device type by HTTP user-agent if no client certificate is provided. |
| 535 |
choices: ['disable', 'enable'] |
| 536 |
vip_id: |
| 537 |
aliases: ['vip-id'] |
| 538 |
type: int |
| 539 |
description: Vip id. |
| 540 |
''' |
| 541 |
|
| 542 |
EXAMPLES = ''' |
| 543 |
- name: Example playbook |
| 544 |
hosts: fortimanagers |
| 545 |
gather_facts: false |
| 546 |
connection: httpapi |
| 547 |
vars: |
| 548 |
ansible_httpapi_use_ssl: true |
| 549 |
ansible_httpapi_validate_certs: false |
| 550 |
ansible_httpapi_port: 443 |
| 551 |
tasks: |
| 552 |
- name: Configure dynamic mappings of virtual IP for IPv6 |
| 553 |
fortinet.fortimanager.fmgr_firewall_vip6_dynamicmapping: |
| 554 |
bypass_validation: false |
| 555 |
adom: ansible |
| 556 |
vip6: "ansible-test-vip6" # name |
| 557 |
state: present |
| 558 |
firewall_vip6_dynamicmapping: |
| 559 |
_scope: |
| 560 |
- name: FGT_AWS # need a valid device name |
| 561 |
vdom: root # need a valid vdom name under the device |
| 562 |
arp_reply: disable |
| 563 |
color: 1 |
| 564 |
comment: "ansible-comment" |
| 565 |
id: 1 |
| 566 |
|
| 567 |
- name: Gathering fortimanager facts |
| 568 |
hosts: fortimanagers |
| 569 |
gather_facts: false |
| 570 |
connection: httpapi |
| 571 |
vars: |
| 572 |
ansible_httpapi_use_ssl: true |
| 573 |
ansible_httpapi_validate_certs: false |
| 574 |
ansible_httpapi_port: 443 |
| 575 |
tasks: |
| 576 |
- name: Retrieve all the dynamic mappings of virtual IP for IPv6 |
| 577 |
fortinet.fortimanager.fmgr_fact: |
| 578 |
facts: |
| 579 |
selector: "firewall_vip6_dynamicmapping" |
| 580 |
params: |
| 581 |
adom: "ansible" |
| 582 |
vip6: "ansible-test-vip6" # name |
| 583 |
dynamic_mapping: "your_value" |
| 584 |
''' |
| 585 |
|
| 586 |
RETURN = ''' |
| 587 |
meta: |
| 588 |
description: The result of the request. |
| 589 |
type: dict |
| 590 |
returned: always |
| 591 |
contains: |
| 592 |
request_url: |
| 593 |
description: The full url requested. |
| 594 |
returned: always |
| 595 |
type: str |
| 596 |
sample: /sys/login/user |
| 597 |
response_code: |
| 598 |
description: The status of api request. |
| 599 |
returned: always |
| 600 |
type: int |
| 601 |
sample: 0 |
| 602 |
response_data: |
| 603 |
description: The api response. |
| 604 |
type: list |
| 605 |
returned: always |
| 606 |
response_message: |
| 607 |
description: The descriptive message of the api response. |
| 608 |
type: str |
| 609 |
returned: always |
| 610 |
sample: OK. |
| 611 |
system_information: |
| 612 |
description: The information of the target system. |
| 613 |
type: dict |
| 614 |
returned: always |
| 615 |
rc: |
| 616 |
description: The status the request. |
| 617 |
type: int |
| 618 |
returned: always |
| 619 |
sample: 0 |
| 620 |
version_check_warning: |
| 621 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 622 |
type: list |
| 623 |
returned: complex |
| 624 |
''' |
| 625 |
from ansible.module_utils.basic import AnsibleModule |
| 626 |
from ansible.module_utils.connection import Connection |
| 627 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 628 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 629 |
|
| 630 |
|
| 631 |
def main(): |
| 632 |
urls_list = [ |
| 633 |
'/pm/config/adom/{adom}/obj/firewall/vip6/{vip6}/dynamic_mapping', |
| 634 |
'/pm/config/global/obj/firewall/vip6/{vip6}/dynamic_mapping' |
| 635 |
] |
| 636 |
module_arg_spec = { |
| 637 |
'adom': {'required': True, 'type': 'str'}, |
| 638 |
'vip6': {'required': True, 'type': 'str'}, |
| 639 |
'revision_note': {'type': 'str'}, |
| 640 |
'firewall_vip6_dynamicmapping': { |
| 641 |
'type': 'dict', 'v_range': [['6.0.0', '']], |
| 642 |
'options': { |
| 643 |
'_scope': {'type': 'list', 'options': {'name': {'type': 'str'}, 'vdom': {'type': 'str'}}, 'elements': 'dict'}, |
| 644 |
'arp-reply': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 645 |
'color': {'type': 'int'}, |
| 646 |
'comment': {'type': 'str'}, |
| 647 |
'extip': {'type': 'str'}, |
| 648 |
'extport': {'type': 'str'}, |
| 649 |
'http-cookie-age': {'type': 'int'}, |
| 650 |
'http-cookie-domain': {'type': 'str'}, |
| 651 |
'http-cookie-domain-from-host': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 652 |
'http-cookie-generation': {'type': 'int'}, |
| 653 |
'http-cookie-path': {'type': 'str'}, |
| 654 |
'http-cookie-share': {'choices': ['disable', 'same-ip'], 'type': 'str'}, |
| 655 |
'http-ip-header': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 656 |
'http-ip-header-name': {'type': 'str'}, |
| 657 |
'http-multiplex': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 658 |
'https-cookie-secure': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 659 |
'id': {'type': 'int'}, |
| 660 |
'ldb-method': {'choices': ['static', 'round-robin', 'weighted', 'least-session', 'least-rtt', 'first-alive', 'http-host'], 'type': 'str'}, |
| 661 |
'mappedip': {'type': 'str'}, |
| 662 |
'mappedport': {'type': 'str'}, |
| 663 |
'max-embryonic-connections': {'type': 'int'}, |
| 664 |
'monitor': {'type': 'raw'}, |
| 665 |
'outlook-web-access': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 666 |
'persistence': {'choices': ['none', 'http-cookie', 'ssl-session-id'], 'type': 'str'}, |
| 667 |
'portforward': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 668 |
'protocol': {'choices': ['tcp', 'udp', 'sctp'], 'type': 'str'}, |
| 669 |
'server-type': {'choices': ['http', 'https', 'ssl', 'tcp', 'udp', 'ip', 'imaps', 'pop3s', 'smtps'], 'type': 'str'}, |
| 670 |
'src-filter': {'type': 'raw'}, |
| 671 |
'ssl-algorithm': {'choices': ['high', 'low', 'medium', 'custom'], 'type': 'str'}, |
| 672 |
'ssl-certificate': {'type': 'str'}, |
| 673 |
'ssl-client-fallback': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 674 |
'ssl-client-renegotiation': {'choices': ['deny', 'allow', 'secure'], 'type': 'str'}, |
| 675 |
'ssl-client-session-state-max': {'type': 'int'}, |
| 676 |
'ssl-client-session-state-timeout': {'type': 'int'}, |
| 677 |
'ssl-client-session-state-type': {'choices': ['disable', 'time', 'count', 'both'], 'type': 'str'}, |
| 678 |
'ssl-dh-bits': {'choices': ['768', '1024', '1536', '2048', '3072', '4096'], 'type': 'str'}, |
| 679 |
'ssl-hpkp': {'choices': ['disable', 'enable', 'report-only'], 'type': 'str'}, |
| 680 |
'ssl-hpkp-age': {'type': 'int'}, |
| 681 |
'ssl-hpkp-backup': {'type': 'str'}, |
| 682 |
'ssl-hpkp-include-subdomains': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 683 |
'ssl-hpkp-primary': {'type': 'str'}, |
| 684 |
'ssl-hpkp-report-uri': {'type': 'str'}, |
| 685 |
'ssl-hsts': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 686 |
'ssl-hsts-age': {'type': 'int'}, |
| 687 |
'ssl-hsts-include-subdomains': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 688 |
'ssl-http-location-conversion': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 689 |
'ssl-http-match-host': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 690 |
'ssl-max-version': {'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'}, |
| 691 |
'ssl-min-version': {'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'}, |
| 692 |
'ssl-mode': {'choices': ['half', 'full'], 'type': 'str'}, |
| 693 |
'ssl-pfs': {'choices': ['require', 'deny', 'allow'], 'type': 'str'}, |
| 694 |
'ssl-send-empty-frags': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 695 |
'ssl-server-algorithm': {'choices': ['high', 'low', 'medium', 'custom', 'client'], 'type': 'str'}, |
| 696 |
'ssl-server-max-version': {'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'client', 'tls-1.3'], 'type': 'str'}, |
| 697 |
'ssl-server-min-version': {'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'client', 'tls-1.3'], 'type': 'str'}, |
| 698 |
'ssl-server-session-state-max': {'type': 'int'}, |
| 699 |
'ssl-server-session-state-timeout': {'type': 'int'}, |
| 700 |
'ssl-server-session-state-type': {'choices': ['disable', 'time', 'count', 'both'], 'type': 'str'}, |
| 701 |
'type': {'choices': ['static-nat', 'server-load-balance', 'access-proxy'], 'type': 'str'}, |
| 702 |
'uuid': {'type': 'str'}, |
| 703 |
'weblogic-server': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 704 |
'websphere-server': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 705 |
'http-redirect': {'v_range': [['6.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 706 |
'ssl-client-rekey-count': {'v_range': [['6.2.1', '']], 'no_log': True, 'type': 'int'}, |
| 707 |
'nat-source-vip': {'v_range': [['6.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 708 |
'add-nat64-route': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 709 |
'embedded-ipv4-address': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 710 |
'ipv4-mappedip': {'v_range': [['7.0.1', '']], 'type': 'str'}, |
| 711 |
'ipv4-mappedport': {'v_range': [['7.0.1', '']], 'type': 'str'}, |
| 712 |
'nat64': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 713 |
'nat66': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 714 |
'realservers': { |
| 715 |
'v_range': [['7.0.2', '']], |
| 716 |
'type': 'list', |
| 717 |
'options': { |
| 718 |
'client-ip': {'v_range': [['7.0.2', '']], 'type': 'str'}, |
| 719 |
'healthcheck': {'v_range': [['7.0.2', '']], 'choices': ['disable', 'enable', 'vip'], 'type': 'str'}, |
| 720 |
'holddown-interval': {'v_range': [['7.0.2', '']], 'type': 'int'}, |
| 721 |
'http-host': {'v_range': [['7.0.2', '']], 'type': 'str'}, |
| 722 |
'id': {'v_range': [['7.0.2', '']], 'type': 'int'}, |
| 723 |
'ip': {'v_range': [['7.0.2', '']], 'type': 'str'}, |
| 724 |
'max-connections': {'v_range': [['7.0.2', '']], 'type': 'int'}, |
| 725 |
'monitor': {'v_range': [['7.0.2', '']], 'type': 'raw'}, |
| 726 |
'port': {'v_range': [['7.0.2', '']], 'type': 'int'}, |
| 727 |
'status': {'v_range': [['7.0.2', '']], 'choices': ['active', 'standby', 'disable'], 'type': 'str'}, |
| 728 |
'weight': {'v_range': [['7.0.2', '']], 'type': 'int'}, |
| 729 |
'translate-host': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 730 |
'verify-cert': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 731 |
}, |
| 732 |
'elements': 'dict' |
| 733 |
}, |
| 734 |
'ssl-accept-ffdhe-groups': {'v_range': [['7.0.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 735 |
'ssl-cipher-suites': { |
| 736 |
'v_range': [['7.0.2', '']], |
| 737 |
'type': 'list', |
| 738 |
'options': { |
| 739 |
'cipher': { |
| 740 |
'v_range': [['7.0.2', '']], |
| 741 |
'choices': [ |
| 742 |
'TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', 'TLS-RSA-WITH-DES-CBC-SHA', 'TLS-RSA-WITH-3DES-EDE-CBC-SHA', |
| 743 |
'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', 'TLS-RSA-WITH-AES-128-CBC-SHA256', |
| 744 |
'TLS-RSA-WITH-AES-256-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 745 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-RSA-WITH-SEED-CBC-SHA', |
| 746 |
'TLS-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-RSA-WITH-DES-CBC-SHA', |
| 747 |
'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', |
| 748 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 749 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 750 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-SEED-CBC-SHA', 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 751 |
'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-RC4-128-SHA', 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 752 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', |
| 753 |
'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', |
| 754 |
'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', |
| 755 |
'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', |
| 756 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', |
| 757 |
'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 758 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', |
| 759 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', |
| 760 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', 'TLS-RSA-WITH-AES-128-GCM-SHA256', |
| 761 |
'TLS-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 762 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-DSS-WITH-SEED-CBC-SHA', |
| 763 |
'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 764 |
'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', |
| 765 |
'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-DSS-WITH-DES-CBC-SHA', |
| 766 |
'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', |
| 767 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA' |
| 768 |
], |
| 769 |
'type': 'str' |
| 770 |
}, |
| 771 |
'priority': {'v_range': [['7.0.2', '']], 'type': 'int'}, |
| 772 |
'versions': { |
| 773 |
'v_range': [['7.0.2', '']], |
| 774 |
'type': 'list', |
| 775 |
'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], |
| 776 |
'elements': 'str' |
| 777 |
} |
| 778 |
}, |
| 779 |
'elements': 'dict' |
| 780 |
}, |
| 781 |
'ndp-reply': {'v_range': [['7.0.5', '7.0.16'], ['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 782 |
'ssl-server-renegotiation': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 783 |
'h2-support': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 784 |
'h3-support': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 785 |
'src-vip-filter': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 786 |
'client-cert': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 787 |
'empty-cert-action': {'v_range': [['7.6.2', '']], 'choices': ['accept', 'block', 'accept-unmanageable'], 'type': 'str'}, |
| 788 |
'user-agent-detect': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 789 |
'vip-id': {'v_range': [['7.6.5', '']], 'type': 'int'} |
| 790 |
} |
| 791 |
} |
| 792 |
} |
| 793 |
|
| 794 |
module_option_spec = get_module_arg_spec('full crud') |
| 795 |
module_arg_spec.update(module_option_spec) |
| 796 |
check_galaxy_version(module_arg_spec) |
| 797 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'firewall_vip6_dynamicmapping'), |
| 798 |
supports_check_mode=True) |
| 799 |
if not module._socket_path: |
| 800 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 801 |
connection = Connection(module._socket_path) |
| 802 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 803 |
'complex:{{module}}["_scope"][0]["name"]+"/"+{{module}}["_scope"][0]["vdom"]', 'data', module, connection) |
| 804 |
fmgr.process_crud() |
| 805 |
module.exit_json(meta=module.params) |
| 806 |
|
| 807 |
|
| 808 |
if __name__ == '__main__': |
| 809 |
main() |