| 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_trafficforwardproxy |
| 15 |
short_description: Configure ZTNA traffic forward 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_trafficforwardproxy: |
| 29 |
description: The top level parameters set. |
| 30 |
required: false |
| 31 |
type: dict |
| 32 |
suboptions: |
| 33 |
auth_portal: |
| 34 |
aliases: ['auth-portal'] |
| 35 |
type: str |
| 36 |
description: Enable/disable authentication portal. |
| 37 |
choices: ['disable', 'enable'] |
| 38 |
auth_virtual_host: |
| 39 |
aliases: ['auth-virtual-host'] |
| 40 |
type: list |
| 41 |
elements: str |
| 42 |
description: Virtual host for authentication portal. |
| 43 |
decrypted_traffic_mirror: |
| 44 |
aliases: ['decrypted-traffic-mirror'] |
| 45 |
type: list |
| 46 |
elements: str |
| 47 |
description: Decrypted traffic mirror. |
| 48 |
host: |
| 49 |
type: list |
| 50 |
elements: str |
| 51 |
description: Virtual or real host name. |
| 52 |
log_blocked_traffic: |
| 53 |
aliases: ['log-blocked-traffic'] |
| 54 |
type: str |
| 55 |
description: Enable/disable logging of blocked traffic. |
| 56 |
choices: ['disable', 'enable'] |
| 57 |
name: |
| 58 |
type: str |
| 59 |
description: ZTNA proxy name. |
| 60 |
required: true |
| 61 |
url_route: |
| 62 |
aliases: ['url-route'] |
| 63 |
type: list |
| 64 |
elements: dict |
| 65 |
description: Url route. |
| 66 |
suboptions: |
| 67 |
name: |
| 68 |
type: str |
| 69 |
description: Name. |
| 70 |
service_connector: |
| 71 |
aliases: ['service-connector'] |
| 72 |
type: list |
| 73 |
elements: str |
| 74 |
description: Service connector. |
| 75 |
url_pattern: |
| 76 |
aliases: ['url-pattern'] |
| 77 |
type: str |
| 78 |
description: Url pattern. |
| 79 |
vip: |
| 80 |
type: list |
| 81 |
elements: str |
| 82 |
description: Virtual IP name. |
| 83 |
ssl_client_session_state_max: |
| 84 |
aliases: ['ssl-client-session-state-max'] |
| 85 |
type: int |
| 86 |
description: Ssl client session state max. |
| 87 |
ssl_send_empty_frags: |
| 88 |
aliases: ['ssl-send-empty-frags'] |
| 89 |
type: str |
| 90 |
description: Ssl send empty frags. |
| 91 |
choices: ['disable', 'enable'] |
| 92 |
ssl_server_max_version: |
| 93 |
aliases: ['ssl-server-max-version'] |
| 94 |
type: str |
| 95 |
description: Ssl server max version. |
| 96 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'client', 'tls-1.3'] |
| 97 |
ssl_accept_ffdhe_groups: |
| 98 |
aliases: ['ssl-accept-ffdhe-groups'] |
| 99 |
type: str |
| 100 |
description: Ssl accept ffdhe groups. |
| 101 |
choices: ['disable', 'enable'] |
| 102 |
empty_cert_action: |
| 103 |
aliases: ['empty-cert-action'] |
| 104 |
type: str |
| 105 |
description: Empty cert action. |
| 106 |
choices: ['accept', 'block', 'accept-unmanageable'] |
| 107 |
quic: |
| 108 |
type: dict |
| 109 |
description: Quic. |
| 110 |
suboptions: |
| 111 |
ack_delay_exponent: |
| 112 |
aliases: ['ack-delay-exponent'] |
| 113 |
type: int |
| 114 |
description: Ack delay exponent. |
| 115 |
active_connection_id_limit: |
| 116 |
aliases: ['active-connection-id-limit'] |
| 117 |
type: int |
| 118 |
description: Active connection id limit. |
| 119 |
active_migration: |
| 120 |
aliases: ['active-migration'] |
| 121 |
type: str |
| 122 |
description: Active migration. |
| 123 |
choices: ['disable', 'enable'] |
| 124 |
grease_quic_bit: |
| 125 |
aliases: ['grease-quic-bit'] |
| 126 |
type: str |
| 127 |
description: Grease quic bit. |
| 128 |
choices: ['disable', 'enable'] |
| 129 |
max_ack_delay: |
| 130 |
aliases: ['max-ack-delay'] |
| 131 |
type: int |
| 132 |
description: Max ack delay. |
| 133 |
max_datagram_frame_size: |
| 134 |
aliases: ['max-datagram-frame-size'] |
| 135 |
type: int |
| 136 |
description: Max datagram frame size. |
| 137 |
max_idle_timeout: |
| 138 |
aliases: ['max-idle-timeout'] |
| 139 |
type: int |
| 140 |
description: Max idle timeout. |
| 141 |
max_udp_payload_size: |
| 142 |
aliases: ['max-udp-payload-size'] |
| 143 |
type: int |
| 144 |
description: Max udp payload size. |
| 145 |
ssl_server_session_state_max: |
| 146 |
aliases: ['ssl-server-session-state-max'] |
| 147 |
type: int |
| 148 |
description: Ssl server session state max. |
| 149 |
ssl_client_session_state_type: |
| 150 |
aliases: ['ssl-client-session-state-type'] |
| 151 |
type: str |
| 152 |
description: Ssl client session state type. |
| 153 |
choices: ['disable', 'time', 'count', 'both'] |
| 154 |
ssl_hpkp_age: |
| 155 |
aliases: ['ssl-hpkp-age'] |
| 156 |
type: int |
| 157 |
description: Ssl hpkp age. |
| 158 |
ssl_hpkp_report_uri: |
| 159 |
aliases: ['ssl-hpkp-report-uri'] |
| 160 |
type: str |
| 161 |
description: Ssl hpkp report uri. |
| 162 |
ssl_min_version: |
| 163 |
aliases: ['ssl-min-version'] |
| 164 |
type: str |
| 165 |
description: Ssl min version. |
| 166 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 167 |
ssl_mode: |
| 168 |
aliases: ['ssl-mode'] |
| 169 |
type: str |
| 170 |
description: Ssl mode. |
| 171 |
choices: ['half', 'full'] |
| 172 |
ssl_client_session_state_timeout: |
| 173 |
aliases: ['ssl-client-session-state-timeout'] |
| 174 |
type: int |
| 175 |
description: Ssl client session state timeout. |
| 176 |
ssl_hsts_age: |
| 177 |
aliases: ['ssl-hsts-age'] |
| 178 |
type: int |
| 179 |
description: Ssl hsts age. |
| 180 |
interface: |
| 181 |
type: list |
| 182 |
elements: str |
| 183 |
description: Interface. |
| 184 |
ssl_client_renegotiation: |
| 185 |
aliases: ['ssl-client-renegotiation'] |
| 186 |
type: str |
| 187 |
description: Ssl client renegotiation. |
| 188 |
choices: ['allow', 'deny', 'secure'] |
| 189 |
ssl_server_session_state_timeout: |
| 190 |
aliases: ['ssl-server-session-state-timeout'] |
| 191 |
type: int |
| 192 |
description: Ssl server session state timeout. |
| 193 |
ssl_server_min_version: |
| 194 |
aliases: ['ssl-server-min-version'] |
| 195 |
type: str |
| 196 |
description: Ssl server min version. |
| 197 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'client', 'tls-1.3'] |
| 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. |
| 207 |
choices: ['TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', |
| 208 |
'TLS-RSA-WITH-DES-CBC-SHA', 'TLS-RSA-WITH-3DES-EDE-CBC-SHA', |
| 209 |
'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', |
| 210 |
'TLS-RSA-WITH-AES-128-CBC-SHA256', |
| 211 |
'TLS-RSA-WITH-AES-256-CBC-SHA256', |
| 212 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 213 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 214 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 215 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 216 |
'TLS-RSA-WITH-SEED-CBC-SHA', 'TLS-RSA-WITH-ARIA-128-CBC-SHA256', |
| 217 |
'TLS-RSA-WITH-ARIA-256-CBC-SHA384', |
| 218 |
'TLS-DHE-RSA-WITH-DES-CBC-SHA', |
| 219 |
'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 220 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', |
| 221 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', |
| 222 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', |
| 223 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', |
| 224 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 225 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 226 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 227 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 228 |
'TLS-DHE-RSA-WITH-SEED-CBC-SHA', |
| 229 |
'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 230 |
'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 231 |
'TLS-ECDHE-RSA-WITH-RC4-128-SHA', |
| 232 |
'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 233 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', |
| 234 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', |
| 235 |
'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 236 |
'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', |
| 237 |
'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 238 |
'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', |
| 239 |
'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', |
| 240 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', |
| 241 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', |
| 242 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', |
| 243 |
'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', |
| 244 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', |
| 245 |
'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', |
| 246 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', |
| 247 |
'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 248 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', |
| 249 |
'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', |
| 250 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', |
| 251 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', |
| 252 |
'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', |
| 253 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', |
| 254 |
'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', |
| 255 |
'TLS-RSA-WITH-AES-128-GCM-SHA256', |
| 256 |
'TLS-RSA-WITH-AES-256-GCM-SHA384', |
| 257 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', |
| 258 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 259 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', |
| 260 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', |
| 261 |
'TLS-DHE-DSS-WITH-SEED-CBC-SHA', |
| 262 |
'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', |
| 263 |
'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', |
| 264 |
'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 265 |
'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 266 |
'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', |
| 267 |
'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', |
| 268 |
'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', |
| 269 |
'TLS-DHE-DSS-WITH-DES-CBC-SHA', 'TLS-AES-128-GCM-SHA256', |
| 270 |
'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', |
| 271 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA'] |
| 272 |
priority: |
| 273 |
type: int |
| 274 |
description: Priority. |
| 275 |
versions: |
| 276 |
type: list |
| 277 |
elements: str |
| 278 |
description: Versions. |
| 279 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 280 |
ssl_client_rekey_count: |
| 281 |
aliases: ['ssl-client-rekey-count'] |
| 282 |
type: int |
| 283 |
description: Ssl client rekey count. |
| 284 |
svr_pool_server_max_request: |
| 285 |
aliases: ['svr-pool-server-max-request'] |
| 286 |
type: int |
| 287 |
description: Svr pool server max request. |
| 288 |
ssl_dh_bits: |
| 289 |
aliases: ['ssl-dh-bits'] |
| 290 |
type: str |
| 291 |
description: Ssl dh bits. |
| 292 |
choices: ['768', '1024', '1536', '2048', '3072', '4096'] |
| 293 |
port: |
| 294 |
type: str |
| 295 |
description: Port. |
| 296 |
ssl_http_match_host: |
| 297 |
aliases: ['ssl-http-match-host'] |
| 298 |
type: str |
| 299 |
description: Ssl http match host. |
| 300 |
choices: ['disable', 'enable'] |
| 301 |
ssl_server_session_state_type: |
| 302 |
aliases: ['ssl-server-session-state-type'] |
| 303 |
type: str |
| 304 |
description: Ssl server session state type. |
| 305 |
choices: ['disable', 'time', 'count', 'both'] |
| 306 |
status: |
| 307 |
type: str |
| 308 |
description: Status. |
| 309 |
choices: ['disable', 'enable'] |
| 310 |
svr_pool_multiplex: |
| 311 |
aliases: ['svr-pool-multiplex'] |
| 312 |
type: str |
| 313 |
description: Svr pool multiplex. |
| 314 |
choices: ['disable', 'enable'] |
| 315 |
ssl_hpkp: |
| 316 |
aliases: ['ssl-hpkp'] |
| 317 |
type: str |
| 318 |
description: Ssl hpkp. |
| 319 |
choices: ['disable', 'enable', 'report-only'] |
| 320 |
ssl_hsts: |
| 321 |
aliases: ['ssl-hsts'] |
| 322 |
type: str |
| 323 |
description: Ssl hsts. |
| 324 |
choices: ['disable', 'enable'] |
| 325 |
svr_pool_server_max_concurrent_request: |
| 326 |
aliases: ['svr-pool-server-max-concurrent-request'] |
| 327 |
type: int |
| 328 |
description: Svr pool server max concurrent request. |
| 329 |
h3_support: |
| 330 |
aliases: ['h3-support'] |
| 331 |
type: str |
| 332 |
description: H3 support. |
| 333 |
choices: ['disable', 'enable'] |
| 334 |
ssl_http_location_conversion: |
| 335 |
aliases: ['ssl-http-location-conversion'] |
| 336 |
type: str |
| 337 |
description: Ssl http location conversion. |
| 338 |
choices: ['disable', 'enable'] |
| 339 |
comment: |
| 340 |
type: str |
| 341 |
description: Comment. |
| 342 |
ssl_pfs: |
| 343 |
aliases: ['ssl-pfs'] |
| 344 |
type: str |
| 345 |
description: Ssl pfs. |
| 346 |
choices: ['require', 'deny', 'allow'] |
| 347 |
ssl_hsts_include_subdomains: |
| 348 |
aliases: ['ssl-hsts-include-subdomains'] |
| 349 |
type: str |
| 350 |
description: Ssl hsts include subdomains. |
| 351 |
choices: ['disable', 'enable'] |
| 352 |
ssl_certificate: |
| 353 |
aliases: ['ssl-certificate'] |
| 354 |
type: list |
| 355 |
elements: str |
| 356 |
description: Ssl certificate. |
| 357 |
ssl_max_version: |
| 358 |
aliases: ['ssl-max-version'] |
| 359 |
type: str |
| 360 |
description: Ssl max version. |
| 361 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 362 |
ssl_hpkp_backup: |
| 363 |
aliases: ['ssl-hpkp-backup'] |
| 364 |
type: list |
| 365 |
elements: str |
| 366 |
description: Ssl hpkp backup. |
| 367 |
client_cert: |
| 368 |
aliases: ['client-cert'] |
| 369 |
type: str |
| 370 |
description: Client cert. |
| 371 |
choices: ['disable', 'enable'] |
| 372 |
ssl_client_fallback: |
| 373 |
aliases: ['ssl-client-fallback'] |
| 374 |
type: str |
| 375 |
description: Ssl client fallback. |
| 376 |
choices: ['disable', 'enable'] |
| 377 |
vip6: |
| 378 |
type: list |
| 379 |
elements: str |
| 380 |
description: Virtual IPv6 name. |
| 381 |
ssl_algorithm: |
| 382 |
aliases: ['ssl-algorithm'] |
| 383 |
type: str |
| 384 |
description: Ssl algorithm. |
| 385 |
choices: ['high', 'low', 'medium', 'custom'] |
| 386 |
ssl_server_algorithm: |
| 387 |
aliases: ['ssl-server-algorithm'] |
| 388 |
type: str |
| 389 |
description: Ssl server algorithm. |
| 390 |
choices: ['high', 'low', 'medium', 'custom', 'client'] |
| 391 |
ssl_hpkp_include_subdomains: |
| 392 |
aliases: ['ssl-hpkp-include-subdomains'] |
| 393 |
type: str |
| 394 |
description: Ssl hpkp include subdomains. |
| 395 |
choices: ['disable', 'enable'] |
| 396 |
user_agent_detect: |
| 397 |
aliases: ['user-agent-detect'] |
| 398 |
type: str |
| 399 |
description: User agent detect. |
| 400 |
choices: ['disable', 'enable'] |
| 401 |
ssl_server_renegotiation: |
| 402 |
aliases: ['ssl-server-renegotiation'] |
| 403 |
type: str |
| 404 |
description: Ssl server renegotiation. |
| 405 |
choices: ['disable', 'enable'] |
| 406 |
svr_pool_ttl: |
| 407 |
aliases: ['svr-pool-ttl'] |
| 408 |
type: int |
| 409 |
description: Svr pool ttl. |
| 410 |
ssl_server_cipher_suites: |
| 411 |
aliases: ['ssl-server-cipher-suites'] |
| 412 |
type: list |
| 413 |
elements: dict |
| 414 |
description: Ssl server cipher suites. |
| 415 |
suboptions: |
| 416 |
cipher: |
| 417 |
type: str |
| 418 |
description: Cipher. |
| 419 |
choices: ['TLS-RSA-WITH-RC4-128-MD5', 'TLS-RSA-WITH-RC4-128-SHA', |
| 420 |
'TLS-RSA-WITH-DES-CBC-SHA', 'TLS-RSA-WITH-3DES-EDE-CBC-SHA', |
| 421 |
'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', |
| 422 |
'TLS-RSA-WITH-AES-128-CBC-SHA256', |
| 423 |
'TLS-RSA-WITH-AES-256-CBC-SHA256', |
| 424 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 425 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 426 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 427 |
'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 428 |
'TLS-RSA-WITH-SEED-CBC-SHA', 'TLS-RSA-WITH-ARIA-128-CBC-SHA256', |
| 429 |
'TLS-RSA-WITH-ARIA-256-CBC-SHA384', |
| 430 |
'TLS-DHE-RSA-WITH-DES-CBC-SHA', |
| 431 |
'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 432 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', |
| 433 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', |
| 434 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', |
| 435 |
'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', |
| 436 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 437 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 438 |
'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 439 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', |
| 440 |
'TLS-DHE-RSA-WITH-SEED-CBC-SHA', |
| 441 |
'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 442 |
'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 443 |
'TLS-ECDHE-RSA-WITH-RC4-128-SHA', |
| 444 |
'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 445 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', |
| 446 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', |
| 447 |
'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 448 |
'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', |
| 449 |
'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', |
| 450 |
'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', |
| 451 |
'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', |
| 452 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', |
| 453 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', |
| 454 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', |
| 455 |
'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', |
| 456 |
'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', |
| 457 |
'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', |
| 458 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', |
| 459 |
'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 460 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', |
| 461 |
'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', |
| 462 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', |
| 463 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', |
| 464 |
'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', |
| 465 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', |
| 466 |
'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', |
| 467 |
'TLS-RSA-WITH-AES-128-GCM-SHA256', |
| 468 |
'TLS-RSA-WITH-AES-256-GCM-SHA384', |
| 469 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', |
| 470 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 471 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', |
| 472 |
'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', |
| 473 |
'TLS-DHE-DSS-WITH-SEED-CBC-SHA', |
| 474 |
'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', |
| 475 |
'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', |
| 476 |
'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 477 |
'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', |
| 478 |
'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', |
| 479 |
'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', |
| 480 |
'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', |
| 481 |
'TLS-DHE-DSS-WITH-DES-CBC-SHA', 'TLS-AES-128-GCM-SHA256', |
| 482 |
'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', |
| 483 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA'] |
| 484 |
priority: |
| 485 |
type: int |
| 486 |
description: Priority. |
| 487 |
versions: |
| 488 |
type: list |
| 489 |
elements: str |
| 490 |
description: Versions. |
| 491 |
choices: ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'] |
| 492 |
ssl_hpkp_primary: |
| 493 |
aliases: ['ssl-hpkp-primary'] |
| 494 |
type: list |
| 495 |
elements: str |
| 496 |
description: Ssl hpkp primary. |
| 497 |
''' |
| 498 |
|
| 499 |
EXAMPLES = ''' |
| 500 |
- name: Example playbook (generated based on argument schema) |
| 501 |
hosts: fortimanagers |
| 502 |
connection: httpapi |
| 503 |
gather_facts: false |
| 504 |
tasks: |
| 505 |
- name: Configure ZTNA traffic forward proxy. |
| 506 |
fortinet.fortimanager.fmgr_ztna_trafficforwardproxy: |
| 507 |
# workspace_locking_adom: <global or your adom name> |
| 508 |
adom: <your own value> |
| 509 |
state: present # <value in [present, absent]> |
| 510 |
ztna_trafficforwardproxy: |
| 511 |
name: "your value" # Required variable, string |
| 512 |
# auth_portal: <value in [disable, enable]> |
| 513 |
# auth_virtual_host: <list or string> |
| 514 |
# decrypted_traffic_mirror: <list or string> |
| 515 |
# host: <list or string> |
| 516 |
# log_blocked_traffic: <value in [disable, enable]> |
| 517 |
# url_route: |
| 518 |
# - name: <string> |
| 519 |
# service_connector: <list or string> |
| 520 |
# url_pattern: <string> |
| 521 |
# vip: <list or string> |
| 522 |
# ssl_client_session_state_max: <integer> |
| 523 |
# ssl_send_empty_frags: <value in [disable, enable]> |
| 524 |
# ssl_server_max_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]> |
| 525 |
# ssl_accept_ffdhe_groups: <value in [disable, enable]> |
| 526 |
# empty_cert_action: <value in [accept, block, accept-unmanageable]> |
| 527 |
# quic: |
| 528 |
# ack_delay_exponent: <integer> |
| 529 |
# active_connection_id_limit: <integer> |
| 530 |
# active_migration: <value in [disable, enable]> |
| 531 |
# grease_quic_bit: <value in [disable, enable]> |
| 532 |
# max_ack_delay: <integer> |
| 533 |
# max_datagram_frame_size: <integer> |
| 534 |
# max_idle_timeout: <integer> |
| 535 |
# max_udp_payload_size: <integer> |
| 536 |
# ssl_server_session_state_max: <integer> |
| 537 |
# ssl_client_session_state_type: <value in [disable, time, count, ...]> |
| 538 |
# ssl_hpkp_age: <integer> |
| 539 |
# ssl_hpkp_report_uri: <string> |
| 540 |
# ssl_min_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]> |
| 541 |
# ssl_mode: <value in [half, full]> |
| 542 |
# ssl_client_session_state_timeout: <integer> |
| 543 |
# ssl_hsts_age: <integer> |
| 544 |
# interface: <list or string> |
| 545 |
# ssl_client_renegotiation: <value in [allow, deny, secure]> |
| 546 |
# ssl_server_session_state_timeout: <integer> |
| 547 |
# ssl_server_min_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]> |
| 548 |
# ssl_cipher_suites: |
| 549 |
# - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]> |
| 550 |
# priority: <integer> |
| 551 |
# versions: ["ssl-3.0", "tls-1.0", "tls-1.1", "tls-1.2", "tls-1.3"] |
| 552 |
# ssl_client_rekey_count: <integer> |
| 553 |
# svr_pool_server_max_request: <integer> |
| 554 |
# ssl_dh_bits: <value in [768, 1024, 1536, ...]> |
| 555 |
# port: <string> |
| 556 |
# ssl_http_match_host: <value in [disable, enable]> |
| 557 |
# ssl_server_session_state_type: <value in [disable, time, count, ...]> |
| 558 |
# status: <value in [disable, enable]> |
| 559 |
# svr_pool_multiplex: <value in [disable, enable]> |
| 560 |
# ssl_hpkp: <value in [disable, enable, report-only]> |
| 561 |
# ssl_hsts: <value in [disable, enable]> |
| 562 |
# svr_pool_server_max_concurrent_request: <integer> |
| 563 |
# h3_support: <value in [disable, enable]> |
| 564 |
# ssl_http_location_conversion: <value in [disable, enable]> |
| 565 |
# comment: <string> |
| 566 |
# ssl_pfs: <value in [require, deny, allow]> |
| 567 |
# ssl_hsts_include_subdomains: <value in [disable, enable]> |
| 568 |
# ssl_certificate: <list or string> |
| 569 |
# ssl_max_version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]> |
| 570 |
# ssl_hpkp_backup: <list or string> |
| 571 |
# client_cert: <value in [disable, enable]> |
| 572 |
# ssl_client_fallback: <value in [disable, enable]> |
| 573 |
# vip6: <list or string> |
| 574 |
# ssl_algorithm: <value in [high, low, medium, ...]> |
| 575 |
# ssl_server_algorithm: <value in [high, low, medium, ...]> |
| 576 |
# ssl_hpkp_include_subdomains: <value in [disable, enable]> |
| 577 |
# user_agent_detect: <value in [disable, enable]> |
| 578 |
# ssl_server_renegotiation: <value in [disable, enable]> |
| 579 |
# svr_pool_ttl: <integer> |
| 580 |
# ssl_server_cipher_suites: |
| 581 |
# - cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]> |
| 582 |
# priority: <integer> |
| 583 |
# versions: ["ssl-3.0", "tls-1.0", "tls-1.1", "tls-1.2", "tls-1.3"] |
| 584 |
# ssl_hpkp_primary: <list or string> |
| 585 |
''' |
| 586 |
|
| 587 |
RETURN = ''' |
| 588 |
meta: |
| 589 |
description: The result of the request. |
| 590 |
type: dict |
| 591 |
returned: always |
| 592 |
contains: |
| 593 |
request_url: |
| 594 |
description: The full url requested. |
| 595 |
returned: always |
| 596 |
type: str |
| 597 |
sample: /sys/login/user |
| 598 |
response_code: |
| 599 |
description: The status of api request. |
| 600 |
returned: always |
| 601 |
type: int |
| 602 |
sample: 0 |
| 603 |
response_data: |
| 604 |
description: The api response. |
| 605 |
type: list |
| 606 |
returned: always |
| 607 |
response_message: |
| 608 |
description: The descriptive message of the api response. |
| 609 |
type: str |
| 610 |
returned: always |
| 611 |
sample: OK. |
| 612 |
system_information: |
| 613 |
description: The information of the target system. |
| 614 |
type: dict |
| 615 |
returned: always |
| 616 |
rc: |
| 617 |
description: The status the request. |
| 618 |
type: int |
| 619 |
returned: always |
| 620 |
sample: 0 |
| 621 |
version_check_warning: |
| 622 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 623 |
type: list |
| 624 |
returned: complex |
| 625 |
''' |
| 626 |
from ansible.module_utils.basic import AnsibleModule |
| 627 |
from ansible.module_utils.connection import Connection |
| 628 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 629 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 630 |
|
| 631 |
|
| 632 |
def main(): |
| 633 |
urls_list = [ |
| 634 |
'/pm/config/adom/{adom}/obj/ztna/traffic-forward-proxy', |
| 635 |
'/pm/config/global/obj/ztna/traffic-forward-proxy' |
| 636 |
] |
| 637 |
module_arg_spec = { |
| 638 |
'adom': {'required': True, 'type': 'str'}, |
| 639 |
'revision_note': {'type': 'str'}, |
| 640 |
'ztna_trafficforwardproxy': { |
| 641 |
'type': 'dict', 'v_range': [['7.6.4', '']], |
| 642 |
'options': { |
| 643 |
'auth-portal': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 644 |
'auth-virtual-host': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 645 |
'decrypted-traffic-mirror': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 646 |
'host': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 647 |
'log-blocked-traffic': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 648 |
'name': {'v_range': [['7.6.4', '']], 'required': True, 'type': 'str'}, |
| 649 |
'url-route': { |
| 650 |
'v_range': [['7.6.4', '']], |
| 651 |
'type': 'list', |
| 652 |
'options': { |
| 653 |
'name': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 654 |
'service-connector': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 655 |
'url-pattern': {'v_range': [['7.6.4', '']], 'type': 'str'} |
| 656 |
}, |
| 657 |
'elements': 'dict' |
| 658 |
}, |
| 659 |
'vip': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 660 |
'ssl-client-session-state-max': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 661 |
'ssl-send-empty-frags': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 662 |
'ssl-server-max-version': { |
| 663 |
'v_range': [['7.6.4', '']], |
| 664 |
'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'client', 'tls-1.3'], |
| 665 |
'type': 'str' |
| 666 |
}, |
| 667 |
'ssl-accept-ffdhe-groups': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 668 |
'empty-cert-action': {'v_range': [['7.6.4', '']], 'choices': ['accept', 'block', 'accept-unmanageable'], 'type': 'str'}, |
| 669 |
'quic': { |
| 670 |
'v_range': [['7.6.4', '']], |
| 671 |
'type': 'dict', |
| 672 |
'options': { |
| 673 |
'ack-delay-exponent': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 674 |
'active-connection-id-limit': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 675 |
'active-migration': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 676 |
'grease-quic-bit': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 677 |
'max-ack-delay': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 678 |
'max-datagram-frame-size': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 679 |
'max-idle-timeout': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 680 |
'max-udp-payload-size': {'v_range': [['7.6.4', '']], 'type': 'int'} |
| 681 |
} |
| 682 |
}, |
| 683 |
'ssl-server-session-state-max': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 684 |
'ssl-client-session-state-type': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'time', 'count', 'both'], 'type': 'str'}, |
| 685 |
'ssl-hpkp-age': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 686 |
'ssl-hpkp-report-uri': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 687 |
'ssl-min-version': {'v_range': [['7.6.4', '']], 'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'}, |
| 688 |
'ssl-mode': {'v_range': [['7.6.4', '']], 'choices': ['half', 'full'], 'type': 'str'}, |
| 689 |
'ssl-client-session-state-timeout': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 690 |
'ssl-hsts-age': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 691 |
'interface': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 692 |
'ssl-client-renegotiation': {'v_range': [['7.6.4', '']], 'choices': ['allow', 'deny', 'secure'], 'type': 'str'}, |
| 693 |
'ssl-server-session-state-timeout': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 694 |
'ssl-server-min-version': { |
| 695 |
'v_range': [['7.6.4', '']], |
| 696 |
'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'client', 'tls-1.3'], |
| 697 |
'type': 'str' |
| 698 |
}, |
| 699 |
'ssl-cipher-suites': { |
| 700 |
'v_range': [['7.6.4', '']], |
| 701 |
'type': 'list', |
| 702 |
'options': { |
| 703 |
'cipher': { |
| 704 |
'v_range': [['7.6.4', '']], |
| 705 |
'choices': [ |
| 706 |
'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', |
| 707 |
'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', 'TLS-RSA-WITH-AES-128-CBC-SHA256', |
| 708 |
'TLS-RSA-WITH-AES-256-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 709 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-RSA-WITH-SEED-CBC-SHA', |
| 710 |
'TLS-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-RSA-WITH-DES-CBC-SHA', |
| 711 |
'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', |
| 712 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 713 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 714 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-SEED-CBC-SHA', 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 715 |
'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-RC4-128-SHA', 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 716 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', |
| 717 |
'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', |
| 718 |
'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', |
| 719 |
'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', |
| 720 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', |
| 721 |
'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 722 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', |
| 723 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', |
| 724 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', 'TLS-RSA-WITH-AES-128-GCM-SHA256', |
| 725 |
'TLS-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 726 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-DSS-WITH-SEED-CBC-SHA', |
| 727 |
'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 728 |
'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', |
| 729 |
'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-DSS-WITH-DES-CBC-SHA', |
| 730 |
'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', |
| 731 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA' |
| 732 |
], |
| 733 |
'type': 'str' |
| 734 |
}, |
| 735 |
'priority': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 736 |
'versions': { |
| 737 |
'v_range': [['7.6.4', '']], |
| 738 |
'type': 'list', |
| 739 |
'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], |
| 740 |
'elements': 'str' |
| 741 |
} |
| 742 |
}, |
| 743 |
'elements': 'dict' |
| 744 |
}, |
| 745 |
'ssl-client-rekey-count': {'v_range': [['7.6.4', '']], 'no_log': True, 'type': 'int'}, |
| 746 |
'svr-pool-server-max-request': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 747 |
'ssl-dh-bits': {'v_range': [['7.6.4', '']], 'choices': ['768', '1024', '1536', '2048', '3072', '4096'], 'type': 'str'}, |
| 748 |
'port': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 749 |
'ssl-http-match-host': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 750 |
'ssl-server-session-state-type': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'time', 'count', 'both'], 'type': 'str'}, |
| 751 |
'status': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 752 |
'svr-pool-multiplex': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 753 |
'ssl-hpkp': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable', 'report-only'], 'type': 'str'}, |
| 754 |
'ssl-hsts': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 755 |
'svr-pool-server-max-concurrent-request': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 756 |
'h3-support': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 757 |
'ssl-http-location-conversion': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 758 |
'comment': {'v_range': [['7.6.4', '']], 'type': 'str'}, |
| 759 |
'ssl-pfs': {'v_range': [['7.6.4', '']], 'choices': ['require', 'deny', 'allow'], 'type': 'str'}, |
| 760 |
'ssl-hsts-include-subdomains': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 761 |
'ssl-certificate': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 762 |
'ssl-max-version': {'v_range': [['7.6.4', '']], 'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], 'type': 'str'}, |
| 763 |
'ssl-hpkp-backup': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 764 |
'client-cert': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 765 |
'ssl-client-fallback': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 766 |
'vip6': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'}, |
| 767 |
'ssl-algorithm': {'v_range': [['7.6.4', '']], 'choices': ['high', 'low', 'medium', 'custom'], 'type': 'str'}, |
| 768 |
'ssl-server-algorithm': {'v_range': [['7.6.4', '']], 'choices': ['high', 'low', 'medium', 'custom', 'client'], 'type': 'str'}, |
| 769 |
'ssl-hpkp-include-subdomains': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 770 |
'user-agent-detect': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 771 |
'ssl-server-renegotiation': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 772 |
'svr-pool-ttl': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 773 |
'ssl-server-cipher-suites': { |
| 774 |
'v_range': [['7.6.4', '']], |
| 775 |
'type': 'list', |
| 776 |
'options': { |
| 777 |
'cipher': { |
| 778 |
'v_range': [['7.6.4', '']], |
| 779 |
'choices': [ |
| 780 |
'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', |
| 781 |
'TLS-RSA-WITH-AES-128-CBC-SHA', 'TLS-RSA-WITH-AES-256-CBC-SHA', 'TLS-RSA-WITH-AES-128-CBC-SHA256', |
| 782 |
'TLS-RSA-WITH-AES-256-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA', |
| 783 |
'TLS-RSA-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-RSA-WITH-SEED-CBC-SHA', |
| 784 |
'TLS-RSA-WITH-ARIA-128-CBC-SHA256', 'TLS-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-RSA-WITH-DES-CBC-SHA', |
| 785 |
'TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA', |
| 786 |
'TLS-DHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-DHE-RSA-WITH-AES-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA', |
| 787 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA', 'TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA256', |
| 788 |
'TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-RSA-WITH-SEED-CBC-SHA', 'TLS-DHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 789 |
'TLS-DHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-RC4-128-SHA', 'TLS-ECDHE-RSA-WITH-3DES-EDE-CBC-SHA', |
| 790 |
'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA', 'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA', |
| 791 |
'TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256', |
| 792 |
'TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256', 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256', |
| 793 |
'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-AES-128-CBC-SHA', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA', |
| 794 |
'TLS-DHE-DSS-WITH-AES-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-AES-128-GCM-SHA256', 'TLS-DHE-DSS-WITH-AES-256-CBC-SHA256', |
| 795 |
'TLS-DHE-DSS-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-RSA-WITH-AES-128-GCM-SHA256', |
| 796 |
'TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA', |
| 797 |
'TLS-ECDHE-ECDSA-WITH-AES-128-CBC-SHA256', 'TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256', |
| 798 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384', 'TLS-RSA-WITH-AES-128-GCM-SHA256', |
| 799 |
'TLS-RSA-WITH-AES-256-GCM-SHA384', 'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA', |
| 800 |
'TLS-DHE-DSS-WITH-CAMELLIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-CAMELLIA-256-CBC-SHA256', 'TLS-DHE-DSS-WITH-SEED-CBC-SHA', |
| 801 |
'TLS-DHE-DSS-WITH-ARIA-128-CBC-SHA256', 'TLS-DHE-DSS-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-RSA-WITH-ARIA-128-CBC-SHA256', |
| 802 |
'TLS-ECDHE-RSA-WITH-ARIA-256-CBC-SHA384', 'TLS-ECDHE-ECDSA-WITH-ARIA-128-CBC-SHA256', |
| 803 |
'TLS-ECDHE-ECDSA-WITH-ARIA-256-CBC-SHA384', 'TLS-DHE-DSS-WITH-3DES-EDE-CBC-SHA', 'TLS-DHE-DSS-WITH-DES-CBC-SHA', |
| 804 |
'TLS-AES-128-GCM-SHA256', 'TLS-AES-256-GCM-SHA384', 'TLS-CHACHA20-POLY1305-SHA256', |
| 805 |
'TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA' |
| 806 |
], |
| 807 |
'type': 'str' |
| 808 |
}, |
| 809 |
'priority': {'v_range': [['7.6.4', '']], 'type': 'int'}, |
| 810 |
'versions': { |
| 811 |
'v_range': [['7.6.4', '']], |
| 812 |
'type': 'list', |
| 813 |
'choices': ['ssl-3.0', 'tls-1.0', 'tls-1.1', 'tls-1.2', 'tls-1.3'], |
| 814 |
'elements': 'str' |
| 815 |
} |
| 816 |
}, |
| 817 |
'elements': 'dict' |
| 818 |
}, |
| 819 |
'ssl-hpkp-primary': {'v_range': [['7.6.4', '']], 'type': 'list', 'elements': 'str'} |
| 820 |
} |
| 821 |
} |
| 822 |
} |
| 823 |
|
| 824 |
module_option_spec = get_module_arg_spec('full crud') |
| 825 |
module_arg_spec.update(module_option_spec) |
| 826 |
check_galaxy_version(module_arg_spec) |
| 827 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'ztna_trafficforwardproxy'), |
| 828 |
supports_check_mode=True) |
| 829 |
if not module._socket_path: |
| 830 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 831 |
connection = Connection(module._socket_path) |
| 832 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 833 |
'name', 'data', module, connection) |
| 834 |
fmgr.process_crud() |
| 835 |
module.exit_json(meta=module.params) |
| 836 |
|
| 837 |
|
| 838 |
if __name__ == '__main__': |
| 839 |
main() |