| 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_pkg_firewall_policy |
| 15 |
short_description: Configure IPv4 policies. |
| 16 |
version_added: "1.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 |
pkg: |
| 29 |
description: The parameter (pkg) in requested url. |
| 30 |
type: str |
| 31 |
required: true |
| 32 |
pkg_firewall_policy: |
| 33 |
description: The top level parameters set. |
| 34 |
required: false |
| 35 |
type: dict |
| 36 |
suboptions: |
| 37 |
action: |
| 38 |
type: str |
| 39 |
description: Policy action |
| 40 |
choices: ['deny', 'accept', 'ipsec', 'ssl-vpn', 'redirect', 'isolate'] |
| 41 |
app_category: |
| 42 |
aliases: ['app-category'] |
| 43 |
type: raw |
| 44 |
description: (list or str) Application category ID list. |
| 45 |
application: |
| 46 |
type: raw |
| 47 |
description: (list) Application ID list. |
| 48 |
application_list: |
| 49 |
aliases: ['application-list'] |
| 50 |
type: str |
| 51 |
description: Name of an existing Application list. |
| 52 |
auth_cert: |
| 53 |
aliases: ['auth-cert'] |
| 54 |
type: str |
| 55 |
description: HTTPS server certificate for policy authentication. |
| 56 |
auth_path: |
| 57 |
aliases: ['auth-path'] |
| 58 |
type: str |
| 59 |
description: Enable/disable authentication-based routing. |
| 60 |
choices: ['disable', 'enable'] |
| 61 |
auth_redirect_addr: |
| 62 |
aliases: ['auth-redirect-addr'] |
| 63 |
type: str |
| 64 |
description: HTTP-to-HTTPS redirect address for firewall authentication. |
| 65 |
auto_asic_offload: |
| 66 |
aliases: ['auto-asic-offload'] |
| 67 |
type: str |
| 68 |
description: Enable/disable offloading security profile processing to CP processors. |
| 69 |
choices: ['disable', 'enable'] |
| 70 |
av_profile: |
| 71 |
aliases: ['av-profile'] |
| 72 |
type: str |
| 73 |
description: Name of an existing Antivirus profile. |
| 74 |
block_notification: |
| 75 |
aliases: ['block-notification'] |
| 76 |
type: str |
| 77 |
description: Enable/disable block notification. |
| 78 |
choices: ['disable', 'enable'] |
| 79 |
captive_portal_exempt: |
| 80 |
aliases: ['captive-portal-exempt'] |
| 81 |
type: str |
| 82 |
description: Enable to exempt some users from the captive portal. |
| 83 |
choices: ['disable', 'enable'] |
| 84 |
capture_packet: |
| 85 |
aliases: ['capture-packet'] |
| 86 |
type: str |
| 87 |
description: Enable/disable capture packets. |
| 88 |
choices: ['disable', 'enable'] |
| 89 |
comments: |
| 90 |
type: raw |
| 91 |
description: (dict or str) Comment. |
| 92 |
custom_log_fields: |
| 93 |
aliases: ['custom-log-fields'] |
| 94 |
type: raw |
| 95 |
description: (list or str) Custom fields to append to log messages for this policy. |
| 96 |
delay_tcp_npu_session: |
| 97 |
aliases: ['delay-tcp-npu-session'] |
| 98 |
type: str |
| 99 |
description: Enable TCP NPU session delay to guarantee packet order of 3-way handshake. |
| 100 |
choices: ['disable', 'enable'] |
| 101 |
devices: |
| 102 |
type: raw |
| 103 |
description: (list or str) Names of devices or device groups that can be matched by the policy. |
| 104 |
diffserv_forward: |
| 105 |
aliases: ['diffserv-forward'] |
| 106 |
type: str |
| 107 |
description: Enable to change packets DiffServ values to the specified diffservcode-forward value. |
| 108 |
choices: ['disable', 'enable'] |
| 109 |
diffserv_reverse: |
| 110 |
aliases: ['diffserv-reverse'] |
| 111 |
type: str |
| 112 |
description: Enable to change packets reverse |
| 113 |
choices: ['disable', 'enable'] |
| 114 |
diffservcode_forward: |
| 115 |
aliases: ['diffservcode-forward'] |
| 116 |
type: str |
| 117 |
description: Change packets DiffServ to this value. |
| 118 |
diffservcode_rev: |
| 119 |
aliases: ['diffservcode-rev'] |
| 120 |
type: str |
| 121 |
description: Change packets reverse |
| 122 |
disclaimer: |
| 123 |
type: str |
| 124 |
description: Enable/disable user authentication disclaimer. |
| 125 |
choices: ['disable', 'enable', 'user', 'domain', 'policy'] |
| 126 |
dlp_sensor: |
| 127 |
aliases: ['dlp-sensor'] |
| 128 |
type: str |
| 129 |
description: Name of an existing DLP sensor. |
| 130 |
dnsfilter_profile: |
| 131 |
aliases: ['dnsfilter-profile'] |
| 132 |
type: str |
| 133 |
description: Name of an existing DNS filter profile. |
| 134 |
dscp_match: |
| 135 |
aliases: ['dscp-match'] |
| 136 |
type: str |
| 137 |
description: Enable DSCP check. |
| 138 |
choices: ['disable', 'enable'] |
| 139 |
dscp_negate: |
| 140 |
aliases: ['dscp-negate'] |
| 141 |
type: str |
| 142 |
description: Enable negated DSCP match. |
| 143 |
choices: ['disable', 'enable'] |
| 144 |
dscp_value: |
| 145 |
aliases: ['dscp-value'] |
| 146 |
type: str |
| 147 |
description: DSCP value. |
| 148 |
dsri: |
| 149 |
type: str |
| 150 |
description: Enable DSRI to ignore HTTP server responses. |
| 151 |
choices: ['disable', 'enable'] |
| 152 |
dstaddr: |
| 153 |
type: raw |
| 154 |
description: (list or str) Destination address and address group names. |
| 155 |
dstaddr_negate: |
| 156 |
aliases: ['dstaddr-negate'] |
| 157 |
type: str |
| 158 |
description: When enabled dstaddr specifies what the destination address must NOT be. |
| 159 |
choices: ['disable', 'enable'] |
| 160 |
dstintf: |
| 161 |
type: raw |
| 162 |
description: (list or str) Outgoing |
| 163 |
firewall_session_dirty: |
| 164 |
aliases: ['firewall-session-dirty'] |
| 165 |
type: str |
| 166 |
description: How to handle sessions if the configuration of this firewall policy changes. |
| 167 |
choices: ['check-all', 'check-new'] |
| 168 |
fixedport: |
| 169 |
type: str |
| 170 |
description: Enable to prevent source NAT from changing a sessions source port. |
| 171 |
choices: ['disable', 'enable'] |
| 172 |
fsso: |
| 173 |
type: str |
| 174 |
description: Enable/disable Fortinet Single Sign-On. |
| 175 |
choices: ['disable', 'enable'] |
| 176 |
fsso_agent_for_ntlm: |
| 177 |
aliases: ['fsso-agent-for-ntlm'] |
| 178 |
type: str |
| 179 |
description: FSSO agent to use for NTLM authentication. |
| 180 |
global_label: |
| 181 |
aliases: ['global-label'] |
| 182 |
type: str |
| 183 |
description: Label for the policy that appears when the GUI is in Global View mode. |
| 184 |
groups: |
| 185 |
type: raw |
| 186 |
description: (list or str) Names of user groups that can authenticate with this policy. |
| 187 |
gtp_profile: |
| 188 |
aliases: ['gtp-profile'] |
| 189 |
type: str |
| 190 |
description: GTP profile. |
| 191 |
icap_profile: |
| 192 |
aliases: ['icap-profile'] |
| 193 |
type: str |
| 194 |
description: Name of an existing ICAP profile. |
| 195 |
identity_based_route: |
| 196 |
aliases: ['identity-based-route'] |
| 197 |
type: str |
| 198 |
description: Name of identity-based routing rule. |
| 199 |
inbound: |
| 200 |
type: str |
| 201 |
description: Policy-based IPsec VPN |
| 202 |
choices: ['disable', 'enable'] |
| 203 |
internet_service: |
| 204 |
aliases: ['internet-service'] |
| 205 |
type: str |
| 206 |
description: Enable/disable use of Internet Services for this policy. |
| 207 |
choices: ['disable', 'enable'] |
| 208 |
internet_service_custom: |
| 209 |
aliases: ['internet-service-custom'] |
| 210 |
type: raw |
| 211 |
description: (list or str) Custom Internet Service Name. |
| 212 |
internet_service_id: |
| 213 |
aliases: ['internet-service-id'] |
| 214 |
type: raw |
| 215 |
description: (list or str) Internet Service ID. |
| 216 |
internet_service_negate: |
| 217 |
aliases: ['internet-service-negate'] |
| 218 |
type: str |
| 219 |
description: When enabled internet-service specifies what the service must NOT be. |
| 220 |
choices: ['disable', 'enable'] |
| 221 |
ippool: |
| 222 |
type: str |
| 223 |
description: Enable to use IP Pools for source NAT. |
| 224 |
choices: ['disable', 'enable'] |
| 225 |
ips_sensor: |
| 226 |
aliases: ['ips-sensor'] |
| 227 |
type: str |
| 228 |
description: Name of an existing IPS sensor. |
| 229 |
label: |
| 230 |
type: str |
| 231 |
description: Label for the policy that appears when the GUI is in Section View mode. |
| 232 |
learning_mode: |
| 233 |
aliases: ['learning-mode'] |
| 234 |
type: str |
| 235 |
description: Enable to allow everything, but log all of the meaningful data for security information gathering. |
| 236 |
choices: ['disable', 'enable'] |
| 237 |
logtraffic: |
| 238 |
type: str |
| 239 |
description: Enable or disable logging. |
| 240 |
choices: ['disable', 'enable', 'all', 'utm'] |
| 241 |
logtraffic_start: |
| 242 |
aliases: ['logtraffic-start'] |
| 243 |
type: str |
| 244 |
description: Record logs when a session starts and ends. |
| 245 |
choices: ['disable', 'enable'] |
| 246 |
match_vip: |
| 247 |
aliases: ['match-vip'] |
| 248 |
type: str |
| 249 |
description: Enable to match packets that have had their destination addresses changed by a VIP. |
| 250 |
choices: ['disable', 'enable'] |
| 251 |
mms_profile: |
| 252 |
aliases: ['mms-profile'] |
| 253 |
type: str |
| 254 |
description: Name of an existing MMS profile. |
| 255 |
name: |
| 256 |
type: str |
| 257 |
description: Policy name. |
| 258 |
nat: |
| 259 |
type: str |
| 260 |
description: Enable/disable source NAT. |
| 261 |
choices: ['disable', 'enable'] |
| 262 |
natinbound: |
| 263 |
type: str |
| 264 |
description: Policy-based IPsec VPN |
| 265 |
choices: ['disable', 'enable'] |
| 266 |
natip: |
| 267 |
type: str |
| 268 |
description: Policy-based IPsec VPN |
| 269 |
natoutbound: |
| 270 |
type: str |
| 271 |
description: Policy-based IPsec VPN |
| 272 |
choices: ['disable', 'enable'] |
| 273 |
ntlm: |
| 274 |
type: str |
| 275 |
description: Enable/disable NTLM authentication. |
| 276 |
choices: ['disable', 'enable'] |
| 277 |
ntlm_enabled_browsers: |
| 278 |
aliases: ['ntlm-enabled-browsers'] |
| 279 |
type: raw |
| 280 |
description: (list) HTTP-User-Agent value of supported browsers. |
| 281 |
ntlm_guest: |
| 282 |
aliases: ['ntlm-guest'] |
| 283 |
type: str |
| 284 |
description: Enable/disable NTLM guest user access. |
| 285 |
choices: ['disable', 'enable'] |
| 286 |
outbound: |
| 287 |
type: str |
| 288 |
description: Policy-based IPsec VPN |
| 289 |
choices: ['disable', 'enable'] |
| 290 |
per_ip_shaper: |
| 291 |
aliases: ['per-ip-shaper'] |
| 292 |
type: str |
| 293 |
description: Per-IP traffic shaper. |
| 294 |
permit_any_host: |
| 295 |
aliases: ['permit-any-host'] |
| 296 |
type: str |
| 297 |
description: Accept UDP packets from any host. |
| 298 |
choices: ['disable', 'enable'] |
| 299 |
permit_stun_host: |
| 300 |
aliases: ['permit-stun-host'] |
| 301 |
type: str |
| 302 |
description: Accept UDP packets from any Session Traversal Utilities for NAT |
| 303 |
choices: ['disable', 'enable'] |
| 304 |
policyid: |
| 305 |
type: int |
| 306 |
description: Policy ID. |
| 307 |
required: true |
| 308 |
poolname: |
| 309 |
type: raw |
| 310 |
description: (list or str) IP Pool names. |
| 311 |
profile_group: |
| 312 |
aliases: ['profile-group'] |
| 313 |
type: str |
| 314 |
description: Name of profile group. |
| 315 |
profile_protocol_options: |
| 316 |
aliases: ['profile-protocol-options'] |
| 317 |
type: str |
| 318 |
description: Name of an existing Protocol options profile. |
| 319 |
profile_type: |
| 320 |
aliases: ['profile-type'] |
| 321 |
type: str |
| 322 |
description: Determine whether the firewall policy allows security profile groups or single profiles only. |
| 323 |
choices: ['single', 'group'] |
| 324 |
radius_mac_auth_bypass: |
| 325 |
aliases: ['radius-mac-auth-bypass'] |
| 326 |
type: str |
| 327 |
description: Enable MAC authentication bypass. |
| 328 |
choices: ['disable', 'enable'] |
| 329 |
redirect_url: |
| 330 |
aliases: ['redirect-url'] |
| 331 |
type: str |
| 332 |
description: URL users are directed to after seeing and accepting the disclaimer or authenticating. |
| 333 |
replacemsg_override_group: |
| 334 |
aliases: ['replacemsg-override-group'] |
| 335 |
type: str |
| 336 |
description: Override the default replacement message group for this policy. |
| 337 |
rsso: |
| 338 |
type: str |
| 339 |
description: Enable/disable RADIUS single sign-on |
| 340 |
choices: ['disable', 'enable'] |
| 341 |
rtp_addr: |
| 342 |
aliases: ['rtp-addr'] |
| 343 |
type: raw |
| 344 |
description: (list or str) Address names if this is an RTP NAT policy. |
| 345 |
rtp_nat: |
| 346 |
aliases: ['rtp-nat'] |
| 347 |
type: str |
| 348 |
description: Enable Real Time Protocol |
| 349 |
choices: ['disable', 'enable'] |
| 350 |
scan_botnet_connections: |
| 351 |
aliases: ['scan-botnet-connections'] |
| 352 |
type: str |
| 353 |
description: Block or monitor connections to Botnet servers or disable Botnet scanning. |
| 354 |
choices: ['disable', 'block', 'monitor'] |
| 355 |
schedule: |
| 356 |
type: str |
| 357 |
description: Schedule name. |
| 358 |
schedule_timeout: |
| 359 |
aliases: ['schedule-timeout'] |
| 360 |
type: str |
| 361 |
description: Enable to force current sessions to end when the schedule object times out. |
| 362 |
choices: ['disable', 'enable'] |
| 363 |
send_deny_packet: |
| 364 |
aliases: ['send-deny-packet'] |
| 365 |
type: str |
| 366 |
description: Enable to send a reply when a session is denied or blocked by a firewall policy. |
| 367 |
choices: ['disable', 'enable'] |
| 368 |
service: |
| 369 |
type: raw |
| 370 |
description: (list or str) Service and service group names. |
| 371 |
service_negate: |
| 372 |
aliases: ['service-negate'] |
| 373 |
type: str |
| 374 |
description: When enabled service specifies what the service must NOT be. |
| 375 |
choices: ['disable', 'enable'] |
| 376 |
session_ttl: |
| 377 |
aliases: ['session-ttl'] |
| 378 |
type: raw |
| 379 |
description: (int or str) Session TTL in seconds for sessions accepted by this policy. |
| 380 |
spamfilter_profile: |
| 381 |
aliases: ['spamfilter-profile'] |
| 382 |
type: str |
| 383 |
description: Name of an existing Spam filter profile. |
| 384 |
srcaddr: |
| 385 |
type: raw |
| 386 |
description: (list or str) Source address and address group names. |
| 387 |
srcaddr_negate: |
| 388 |
aliases: ['srcaddr-negate'] |
| 389 |
type: str |
| 390 |
description: When enabled srcaddr specifies what the source address must NOT be. |
| 391 |
choices: ['disable', 'enable'] |
| 392 |
srcintf: |
| 393 |
type: raw |
| 394 |
description: (list or str) Incoming |
| 395 |
ssl_mirror: |
| 396 |
aliases: ['ssl-mirror'] |
| 397 |
type: str |
| 398 |
description: Enable to copy decrypted SSL traffic to a FortiGate interface |
| 399 |
choices: ['disable', 'enable'] |
| 400 |
ssl_mirror_intf: |
| 401 |
aliases: ['ssl-mirror-intf'] |
| 402 |
type: raw |
| 403 |
description: (list or str) SSL mirror interface name. |
| 404 |
ssl_ssh_profile: |
| 405 |
aliases: ['ssl-ssh-profile'] |
| 406 |
type: str |
| 407 |
description: Name of an existing SSL SSH profile. |
| 408 |
status: |
| 409 |
type: str |
| 410 |
description: Enable or disable this policy. |
| 411 |
choices: ['disable', 'enable'] |
| 412 |
tags: |
| 413 |
type: str |
| 414 |
description: Names of object-tags applied to this policy. |
| 415 |
tcp_mss_receiver: |
| 416 |
aliases: ['tcp-mss-receiver'] |
| 417 |
type: int |
| 418 |
description: Receiver TCP maximum segment size |
| 419 |
tcp_mss_sender: |
| 420 |
aliases: ['tcp-mss-sender'] |
| 421 |
type: int |
| 422 |
description: Sender TCP maximum segment size |
| 423 |
tcp_session_without_syn: |
| 424 |
aliases: ['tcp-session-without-syn'] |
| 425 |
type: str |
| 426 |
description: Enable/disable creation of TCP session without SYN flag. |
| 427 |
choices: ['all', 'data-only', 'disable'] |
| 428 |
timeout_send_rst: |
| 429 |
aliases: ['timeout-send-rst'] |
| 430 |
type: str |
| 431 |
description: Enable/disable sending RST packets when TCP sessions expire. |
| 432 |
choices: ['disable', 'enable'] |
| 433 |
traffic_shaper: |
| 434 |
aliases: ['traffic-shaper'] |
| 435 |
type: str |
| 436 |
description: Traffic shaper. |
| 437 |
traffic_shaper_reverse: |
| 438 |
aliases: ['traffic-shaper-reverse'] |
| 439 |
type: str |
| 440 |
description: Reverse traffic shaper. |
| 441 |
url_category: |
| 442 |
aliases: ['url-category'] |
| 443 |
type: raw |
| 444 |
description: (list or str) URL category ID list. |
| 445 |
users: |
| 446 |
type: raw |
| 447 |
description: (list or str) Names of individual users that can authenticate with this policy. |
| 448 |
utm_status: |
| 449 |
aliases: ['utm-status'] |
| 450 |
type: str |
| 451 |
description: Enable to add one or more security profiles |
| 452 |
choices: ['disable', 'enable'] |
| 453 |
uuid: |
| 454 |
type: str |
| 455 |
description: Universally Unique Identifier |
| 456 |
vlan_cos_fwd: |
| 457 |
aliases: ['vlan-cos-fwd'] |
| 458 |
type: int |
| 459 |
description: VLAN forward direction user priority |
| 460 |
vlan_cos_rev: |
| 461 |
aliases: ['vlan-cos-rev'] |
| 462 |
type: int |
| 463 |
description: VLAN reverse direction user priority |
| 464 |
voip_profile: |
| 465 |
aliases: ['voip-profile'] |
| 466 |
type: str |
| 467 |
description: Name of an existing VoIP profile. |
| 468 |
vpn_dst_node: |
| 469 |
type: list |
| 470 |
elements: dict |
| 471 |
description: Vpn dst node. |
| 472 |
suboptions: |
| 473 |
host: |
| 474 |
type: str |
| 475 |
description: Host. |
| 476 |
seq: |
| 477 |
type: int |
| 478 |
description: Seq. |
| 479 |
subnet: |
| 480 |
type: str |
| 481 |
description: Subnet. |
| 482 |
vpn_src_node: |
| 483 |
type: list |
| 484 |
elements: dict |
| 485 |
description: Vpn src node. |
| 486 |
suboptions: |
| 487 |
host: |
| 488 |
type: str |
| 489 |
description: Host. |
| 490 |
seq: |
| 491 |
type: int |
| 492 |
description: Seq. |
| 493 |
subnet: |
| 494 |
type: str |
| 495 |
description: Subnet. |
| 496 |
vpntunnel: |
| 497 |
type: str |
| 498 |
description: Policy-based IPsec VPN |
| 499 |
waf_profile: |
| 500 |
aliases: ['waf-profile'] |
| 501 |
type: str |
| 502 |
description: Name of an existing Web application firewall profile. |
| 503 |
wanopt: |
| 504 |
type: str |
| 505 |
description: Enable/disable WAN optimization. |
| 506 |
choices: ['disable', 'enable'] |
| 507 |
wanopt_detection: |
| 508 |
aliases: ['wanopt-detection'] |
| 509 |
type: str |
| 510 |
description: WAN optimization auto-detection mode. |
| 511 |
choices: ['active', 'passive', 'off'] |
| 512 |
wanopt_passive_opt: |
| 513 |
aliases: ['wanopt-passive-opt'] |
| 514 |
type: str |
| 515 |
description: WAN optimization passive mode options. |
| 516 |
choices: ['default', 'transparent', 'non-transparent'] |
| 517 |
wanopt_peer: |
| 518 |
aliases: ['wanopt-peer'] |
| 519 |
type: str |
| 520 |
description: WAN optimization peer. |
| 521 |
wanopt_profile: |
| 522 |
aliases: ['wanopt-profile'] |
| 523 |
type: str |
| 524 |
description: WAN optimization profile. |
| 525 |
wccp: |
| 526 |
type: str |
| 527 |
description: Enable/disable forwarding traffic matching this policy to a configured WCCP server. |
| 528 |
choices: ['disable', 'enable'] |
| 529 |
webcache: |
| 530 |
type: str |
| 531 |
description: Enable/disable web cache. |
| 532 |
choices: ['disable', 'enable'] |
| 533 |
webcache_https: |
| 534 |
aliases: ['webcache-https'] |
| 535 |
type: str |
| 536 |
description: Enable/disable web cache for HTTPS. |
| 537 |
choices: ['disable', 'ssl-server', 'any', 'enable'] |
| 538 |
webfilter_profile: |
| 539 |
aliases: ['webfilter-profile'] |
| 540 |
type: str |
| 541 |
description: Name of an existing Web filter profile. |
| 542 |
wsso: |
| 543 |
type: str |
| 544 |
description: Enable/disable WiFi Single Sign On |
| 545 |
choices: ['disable', 'enable'] |
| 546 |
anti_replay: |
| 547 |
aliases: ['anti-replay'] |
| 548 |
type: str |
| 549 |
description: Enable/disable anti-replay check. |
| 550 |
choices: ['disable', 'enable'] |
| 551 |
app_group: |
| 552 |
aliases: ['app-group'] |
| 553 |
type: raw |
| 554 |
description: (list or str) Application group names. |
| 555 |
cifs_profile: |
| 556 |
aliases: ['cifs-profile'] |
| 557 |
type: str |
| 558 |
description: Name of an existing CIFS profile. |
| 559 |
email_collect: |
| 560 |
aliases: ['email-collect'] |
| 561 |
type: str |
| 562 |
description: Enable/disable email collection. |
| 563 |
choices: ['disable', 'enable'] |
| 564 |
emailfilter_profile: |
| 565 |
aliases: ['emailfilter-profile'] |
| 566 |
type: str |
| 567 |
description: Name of an existing email filter profile. |
| 568 |
fsso_groups: |
| 569 |
aliases: ['fsso-groups'] |
| 570 |
type: raw |
| 571 |
description: (list or str) Names of FSSO groups. |
| 572 |
geoip_anycast: |
| 573 |
aliases: ['geoip-anycast'] |
| 574 |
type: str |
| 575 |
description: Enable/disable recognition of anycast IP addresses using the geography IP database. |
| 576 |
choices: ['disable', 'enable'] |
| 577 |
http_policy_redirect: |
| 578 |
aliases: ['http-policy-redirect'] |
| 579 |
type: str |
| 580 |
description: Redirect HTTP |
| 581 |
choices: ['disable', 'enable', 'legacy'] |
| 582 |
inspection_mode: |
| 583 |
aliases: ['inspection-mode'] |
| 584 |
type: str |
| 585 |
description: Policy inspection mode |
| 586 |
choices: ['proxy', 'flow'] |
| 587 |
internet_service_custom_group: |
| 588 |
aliases: ['internet-service-custom-group'] |
| 589 |
type: raw |
| 590 |
description: (list or str) Custom Internet Service group name. |
| 591 |
internet_service_group: |
| 592 |
aliases: ['internet-service-group'] |
| 593 |
type: raw |
| 594 |
description: (list or str) Internet Service group name. |
| 595 |
internet_service_src: |
| 596 |
aliases: ['internet-service-src'] |
| 597 |
type: str |
| 598 |
description: Enable/disable use of Internet Services in source for this policy. |
| 599 |
choices: ['disable', 'enable'] |
| 600 |
internet_service_src_custom: |
| 601 |
aliases: ['internet-service-src-custom'] |
| 602 |
type: raw |
| 603 |
description: (list or str) Custom Internet Service source name. |
| 604 |
internet_service_src_custom_group: |
| 605 |
aliases: ['internet-service-src-custom-group'] |
| 606 |
type: raw |
| 607 |
description: (list or str) Custom Internet Service source group name. |
| 608 |
internet_service_src_group: |
| 609 |
aliases: ['internet-service-src-group'] |
| 610 |
type: raw |
| 611 |
description: (list or str) Internet Service source group name. |
| 612 |
internet_service_src_id: |
| 613 |
aliases: ['internet-service-src-id'] |
| 614 |
type: raw |
| 615 |
description: (list or str) Internet Service source ID. |
| 616 |
internet_service_src_negate: |
| 617 |
aliases: ['internet-service-src-negate'] |
| 618 |
type: str |
| 619 |
description: When enabled internet-service-src specifies what the service must NOT be. |
| 620 |
choices: ['disable', 'enable'] |
| 621 |
match_vip_only: |
| 622 |
aliases: ['match-vip-only'] |
| 623 |
type: str |
| 624 |
description: Enable/disable matching of only those packets that have had their destination addresses changed by a VIP. |
| 625 |
choices: ['disable', 'enable'] |
| 626 |
np_acceleration: |
| 627 |
aliases: ['np-acceleration'] |
| 628 |
type: str |
| 629 |
description: Enable/disable UTM Network Processor acceleration. |
| 630 |
choices: ['disable', 'enable'] |
| 631 |
reputation_direction: |
| 632 |
aliases: ['reputation-direction'] |
| 633 |
type: str |
| 634 |
description: Direction of the initial traffic for reputation to take effect. |
| 635 |
choices: ['source', 'destination'] |
| 636 |
reputation_minimum: |
| 637 |
aliases: ['reputation-minimum'] |
| 638 |
type: int |
| 639 |
description: Minimum Reputation to take action. |
| 640 |
ssh_filter_profile: |
| 641 |
aliases: ['ssh-filter-profile'] |
| 642 |
type: str |
| 643 |
description: Name of an existing SSH filter profile. |
| 644 |
ssh_policy_redirect: |
| 645 |
aliases: ['ssh-policy-redirect'] |
| 646 |
type: str |
| 647 |
description: Redirect SSH traffic to matching transparent proxy policy. |
| 648 |
choices: ['disable', 'enable'] |
| 649 |
tos: |
| 650 |
type: str |
| 651 |
description: ToS |
| 652 |
tos_mask: |
| 653 |
aliases: ['tos-mask'] |
| 654 |
type: str |
| 655 |
description: Non-zero bit positions are used for comparison while zero bit positions are ignored. |
| 656 |
tos_negate: |
| 657 |
aliases: ['tos-negate'] |
| 658 |
type: str |
| 659 |
description: Enable negated TOS match. |
| 660 |
choices: ['disable', 'enable'] |
| 661 |
vlan_filter: |
| 662 |
aliases: ['vlan-filter'] |
| 663 |
type: str |
| 664 |
description: Set VLAN filters. |
| 665 |
webproxy_forward_server: |
| 666 |
aliases: ['webproxy-forward-server'] |
| 667 |
type: str |
| 668 |
description: Webproxy forward server name. |
| 669 |
webproxy_profile: |
| 670 |
aliases: ['webproxy-profile'] |
| 671 |
type: str |
| 672 |
description: Webproxy profile name. |
| 673 |
np_accelation: |
| 674 |
aliases: ['np-accelation'] |
| 675 |
type: str |
| 676 |
description: Enable/disable UTM Network Processor acceleration. |
| 677 |
choices: ['disable', 'enable'] |
| 678 |
delay_tcp_npu_sessoin: |
| 679 |
aliases: ['delay-tcp-npu-sessoin'] |
| 680 |
type: str |
| 681 |
description: Enable/disable TCP NPU session delay in order to guarantee packet order of 3-way handshake. |
| 682 |
choices: ['disable', 'enable'] |
| 683 |
casi_profile: |
| 684 |
aliases: ['casi-profile'] |
| 685 |
type: str |
| 686 |
description: CASI profile. |
| 687 |
best_route: |
| 688 |
aliases: ['best-route'] |
| 689 |
type: str |
| 690 |
description: Enable/disable the use of best route. |
| 691 |
choices: ['disable', 'enable'] |
| 692 |
decrypted_traffic_mirror: |
| 693 |
aliases: ['decrypted-traffic-mirror'] |
| 694 |
type: str |
| 695 |
description: Decrypted traffic mirror. |
| 696 |
dstaddr6: |
| 697 |
type: raw |
| 698 |
description: (list or str) Destination IPv6 address name and address group names. |
| 699 |
geoip_match: |
| 700 |
aliases: ['geoip-match'] |
| 701 |
type: str |
| 702 |
description: Match geography address based either on its physical location or registered location. |
| 703 |
choices: ['physical-location', 'registered-location'] |
| 704 |
internet_service_name: |
| 705 |
aliases: ['internet-service-name'] |
| 706 |
type: raw |
| 707 |
description: (list or str) Internet Service name. |
| 708 |
internet_service_src_name: |
| 709 |
aliases: ['internet-service-src-name'] |
| 710 |
type: raw |
| 711 |
description: (list or str) Internet Service source name. |
| 712 |
poolname6: |
| 713 |
type: raw |
| 714 |
description: (list or str) IPv6 pool names. |
| 715 |
src_vendor_mac: |
| 716 |
aliases: ['src-vendor-mac'] |
| 717 |
type: raw |
| 718 |
description: (list or str) Vendor MAC source ID. |
| 719 |
srcaddr6: |
| 720 |
type: raw |
| 721 |
description: (list or str) Source IPv6 address name and address group names. |
| 722 |
file_filter_profile: |
| 723 |
aliases: ['file-filter-profile'] |
| 724 |
type: str |
| 725 |
description: Name of an existing file-filter profile. |
| 726 |
policy_offload: |
| 727 |
aliases: ['policy-offload'] |
| 728 |
type: str |
| 729 |
description: Enable/Disable hardware session setup for CGNAT. |
| 730 |
choices: ['disable', 'enable'] |
| 731 |
cgn_session_quota: |
| 732 |
aliases: ['cgn-session-quota'] |
| 733 |
type: int |
| 734 |
description: Session quota |
| 735 |
cgn_eif: |
| 736 |
aliases: ['cgn-eif'] |
| 737 |
type: str |
| 738 |
description: Enable/Disable CGN endpoint independent filtering. |
| 739 |
choices: ['disable', 'enable'] |
| 740 |
cgn_log_server_grp: |
| 741 |
aliases: ['cgn-log-server-grp'] |
| 742 |
type: str |
| 743 |
description: NP log server group name |
| 744 |
cgn_eim: |
| 745 |
aliases: ['cgn-eim'] |
| 746 |
type: str |
| 747 |
description: Enable/Disable CGN endpoint independent mapping |
| 748 |
choices: ['disable', 'enable'] |
| 749 |
cgn_resource_quota: |
| 750 |
aliases: ['cgn-resource-quota'] |
| 751 |
type: int |
| 752 |
description: Resource quota |
| 753 |
dynamic_shaping: |
| 754 |
aliases: ['dynamic-shaping'] |
| 755 |
type: str |
| 756 |
description: Enable/disable dynamic RADIUS defined traffic shaping. |
| 757 |
choices: ['disable', 'enable'] |
| 758 |
passive_wan_health_measurement: |
| 759 |
aliases: ['passive-wan-health-measurement'] |
| 760 |
type: str |
| 761 |
description: Enable/disable passive WAN health measurement. |
| 762 |
choices: ['disable', 'enable'] |
| 763 |
videofilter_profile: |
| 764 |
aliases: ['videofilter-profile'] |
| 765 |
type: str |
| 766 |
description: Name of an existing VideoFilter profile. |
| 767 |
ztna_ems_tag: |
| 768 |
aliases: ['ztna-ems-tag'] |
| 769 |
type: raw |
| 770 |
description: (list or str) Source ztna-ems-tag names. |
| 771 |
ztna_geo_tag: |
| 772 |
aliases: ['ztna-geo-tag'] |
| 773 |
type: raw |
| 774 |
description: (list or str) Source ztna-geo-tag names. |
| 775 |
ztna_status: |
| 776 |
aliases: ['ztna-status'] |
| 777 |
type: str |
| 778 |
description: Enable/disable zero trust access. |
| 779 |
choices: ['disable', 'enable'] |
| 780 |
_policy_block: |
| 781 |
type: int |
| 782 |
description: Assigned policy block. |
| 783 |
dlp_profile: |
| 784 |
aliases: ['dlp-profile'] |
| 785 |
type: str |
| 786 |
description: Name of an existing DLP profile. |
| 787 |
fec: |
| 788 |
type: str |
| 789 |
description: Enable/disable Forward Error Correction on traffic matching this policy on a FEC device. |
| 790 |
choices: ['disable', 'enable'] |
| 791 |
nat46: |
| 792 |
type: str |
| 793 |
description: Enable/disable NAT46. |
| 794 |
choices: ['disable', 'enable'] |
| 795 |
nat64: |
| 796 |
type: str |
| 797 |
description: Enable/disable NAT64. |
| 798 |
choices: ['disable', 'enable'] |
| 799 |
pfcp_profile: |
| 800 |
aliases: ['pfcp-profile'] |
| 801 |
type: str |
| 802 |
description: PFCP profile. |
| 803 |
policy_expiry: |
| 804 |
aliases: ['policy-expiry'] |
| 805 |
type: str |
| 806 |
description: Enable/disable policy expiry. |
| 807 |
choices: ['disable', 'enable'] |
| 808 |
policy_expiry_date: |
| 809 |
aliases: ['policy-expiry-date'] |
| 810 |
type: str |
| 811 |
description: Policy expiry date |
| 812 |
sctp_filter_profile: |
| 813 |
aliases: ['sctp-filter-profile'] |
| 814 |
type: str |
| 815 |
description: Name of an existing SCTP filter profile. |
| 816 |
sgt: |
| 817 |
type: raw |
| 818 |
description: (list) Security group tags. |
| 819 |
sgt_check: |
| 820 |
aliases: ['sgt-check'] |
| 821 |
type: str |
| 822 |
description: Enable/disable security group tags |
| 823 |
choices: ['disable', 'enable'] |
| 824 |
tcp_timeout_pid: |
| 825 |
aliases: ['tcp-timeout-pid'] |
| 826 |
type: str |
| 827 |
description: TCP timeout profile ID |
| 828 |
udp_timeout_pid: |
| 829 |
aliases: ['udp-timeout-pid'] |
| 830 |
type: str |
| 831 |
description: UDP timeout profile ID |
| 832 |
diffserv_copy: |
| 833 |
aliases: ['diffserv-copy'] |
| 834 |
type: str |
| 835 |
description: Enable to copy packets DiffServ values from sessions original direction to its reply direction. |
| 836 |
choices: ['disable', 'enable'] |
| 837 |
dstaddr6_negate: |
| 838 |
aliases: ['dstaddr6-negate'] |
| 839 |
type: str |
| 840 |
description: When enabled dstaddr6 specifies what the destination address must NOT be. |
| 841 |
choices: ['disable', 'enable'] |
| 842 |
internet_service6: |
| 843 |
aliases: ['internet-service6'] |
| 844 |
type: str |
| 845 |
description: Enable/disable use of IPv6 Internet Services for this policy. |
| 846 |
choices: ['disable', 'enable'] |
| 847 |
internet_service6_custom: |
| 848 |
aliases: ['internet-service6-custom'] |
| 849 |
type: raw |
| 850 |
description: (list) Custom IPv6 Internet Service name. |
| 851 |
internet_service6_custom_group: |
| 852 |
aliases: ['internet-service6-custom-group'] |
| 853 |
type: raw |
| 854 |
description: (list) Custom Internet Service6 group name. |
| 855 |
internet_service6_group: |
| 856 |
aliases: ['internet-service6-group'] |
| 857 |
type: raw |
| 858 |
description: (list) Internet Service group name. |
| 859 |
internet_service6_name: |
| 860 |
aliases: ['internet-service6-name'] |
| 861 |
type: raw |
| 862 |
description: (list) IPv6 Internet Service name. |
| 863 |
internet_service6_negate: |
| 864 |
aliases: ['internet-service6-negate'] |
| 865 |
type: str |
| 866 |
description: When enabled internet-service6 specifies what the service must NOT be. |
| 867 |
choices: ['disable', 'enable'] |
| 868 |
internet_service6_src: |
| 869 |
aliases: ['internet-service6-src'] |
| 870 |
type: str |
| 871 |
description: Enable/disable use of IPv6 Internet Services in source for this policy. |
| 872 |
choices: ['disable', 'enable'] |
| 873 |
internet_service6_src_custom: |
| 874 |
aliases: ['internet-service6-src-custom'] |
| 875 |
type: raw |
| 876 |
description: (list) Custom IPv6 Internet Service source name. |
| 877 |
internet_service6_src_custom_group: |
| 878 |
aliases: ['internet-service6-src-custom-group'] |
| 879 |
type: raw |
| 880 |
description: (list) Custom Internet Service6 source group name. |
| 881 |
internet_service6_src_group: |
| 882 |
aliases: ['internet-service6-src-group'] |
| 883 |
type: raw |
| 884 |
description: (list) Internet Service6 source group name. |
| 885 |
internet_service6_src_name: |
| 886 |
aliases: ['internet-service6-src-name'] |
| 887 |
type: raw |
| 888 |
description: (list) IPv6 Internet Service source name. |
| 889 |
internet_service6_src_negate: |
| 890 |
aliases: ['internet-service6-src-negate'] |
| 891 |
type: str |
| 892 |
description: When enabled internet-service6-src specifies what the service must NOT be. |
| 893 |
choices: ['disable', 'enable'] |
| 894 |
network_service_dynamic: |
| 895 |
aliases: ['network-service-dynamic'] |
| 896 |
type: raw |
| 897 |
description: (list) Dynamic Network Service name. |
| 898 |
network_service_src_dynamic: |
| 899 |
aliases: ['network-service-src-dynamic'] |
| 900 |
type: raw |
| 901 |
description: (list) Dynamic Network Service source name. |
| 902 |
reputation_direction6: |
| 903 |
aliases: ['reputation-direction6'] |
| 904 |
type: str |
| 905 |
description: Direction of the initial traffic for IPv6 reputation to take effect. |
| 906 |
choices: ['source', 'destination'] |
| 907 |
reputation_minimum6: |
| 908 |
aliases: ['reputation-minimum6'] |
| 909 |
type: int |
| 910 |
description: IPv6 Minimum Reputation to take action. |
| 911 |
srcaddr6_negate: |
| 912 |
aliases: ['srcaddr6-negate'] |
| 913 |
type: str |
| 914 |
description: When enabled srcaddr6 specifies what the source address must NOT be. |
| 915 |
choices: ['disable', 'enable'] |
| 916 |
ip_version_type: |
| 917 |
aliases: ['ip-version-type'] |
| 918 |
type: str |
| 919 |
description: IP version of the policy. |
| 920 |
ips_voip_filter: |
| 921 |
aliases: ['ips-voip-filter'] |
| 922 |
type: str |
| 923 |
description: Name of an existing VoIP |
| 924 |
pcp_inbound: |
| 925 |
aliases: ['pcp-inbound'] |
| 926 |
type: str |
| 927 |
description: Enable/disable PCP inbound DNAT. |
| 928 |
choices: ['disable', 'enable'] |
| 929 |
pcp_outbound: |
| 930 |
aliases: ['pcp-outbound'] |
| 931 |
type: str |
| 932 |
description: Enable/disable PCP outbound SNAT. |
| 933 |
choices: ['disable', 'enable'] |
| 934 |
pcp_poolname: |
| 935 |
aliases: ['pcp-poolname'] |
| 936 |
type: raw |
| 937 |
description: (list) PCP pool names. |
| 938 |
policy_behaviour_type: |
| 939 |
aliases: ['policy-behaviour-type'] |
| 940 |
type: str |
| 941 |
description: Behaviour of the policy. |
| 942 |
policy_expiry_date_utc: |
| 943 |
aliases: ['policy-expiry-date-utc'] |
| 944 |
type: str |
| 945 |
description: Policy expiry date and time, in epoch format. |
| 946 |
ztna_device_ownership: |
| 947 |
aliases: ['ztna-device-ownership'] |
| 948 |
type: str |
| 949 |
description: Enable/disable zero trust device ownership. |
| 950 |
choices: ['disable', 'enable'] |
| 951 |
ztna_ems_tag_secondary: |
| 952 |
aliases: ['ztna-ems-tag-secondary'] |
| 953 |
type: raw |
| 954 |
description: (list) Source ztna-ems-tag-secondary names. |
| 955 |
ztna_policy_redirect: |
| 956 |
aliases: ['ztna-policy-redirect'] |
| 957 |
type: str |
| 958 |
description: Redirect ZTNA traffic to matching Access-Proxy proxy-policy. |
| 959 |
choices: ['disable', 'enable'] |
| 960 |
ztna_tags_match_logic: |
| 961 |
aliases: ['ztna-tags-match-logic'] |
| 962 |
type: str |
| 963 |
description: ZTNA tag matching logic. |
| 964 |
choices: ['or', 'and'] |
| 965 |
casb_profile: |
| 966 |
aliases: ['casb-profile'] |
| 967 |
type: str |
| 968 |
description: Name of an existing CASB profile. |
| 969 |
virtual_patch_profile: |
| 970 |
aliases: ['virtual-patch-profile'] |
| 971 |
type: str |
| 972 |
description: Name of an existing virtual-patch profile. |
| 973 |
diameter_filter_profile: |
| 974 |
aliases: ['diameter-filter-profile'] |
| 975 |
type: str |
| 976 |
description: Name of an existing Diameter filter profile. |
| 977 |
port_preserve: |
| 978 |
aliases: ['port-preserve'] |
| 979 |
type: str |
| 980 |
description: Enable/disable preservation of the original source port from source NAT if it has not been used. |
| 981 |
choices: ['disable', 'enable'] |
| 982 |
cgn_sw_eif_ctrl: |
| 983 |
aliases: ['cgn-sw-eif-ctrl'] |
| 984 |
type: str |
| 985 |
description: Enable/disable software endpoint independent filtering control. |
| 986 |
choices: ['disable', 'enable'] |
| 987 |
eif_check: |
| 988 |
aliases: ['eif-check'] |
| 989 |
type: str |
| 990 |
description: Enable/Disable check endpoint-independent-filtering pinhole. |
| 991 |
choices: ['disable', 'enable'] |
| 992 |
eif_learn: |
| 993 |
aliases: ['eif-learn'] |
| 994 |
type: str |
| 995 |
description: Enable/Disable learning of end-point-independent filtering pinhole. |
| 996 |
choices: ['disable', 'enable'] |
| 997 |
log_http_transaction: |
| 998 |
aliases: ['log-http-transaction'] |
| 999 |
type: str |
| 1000 |
description: Enable/disable HTTP transaction log. |
| 1001 |
choices: ['disable', 'enable', 'all', 'utm'] |
| 1002 |
radius_ip_auth_bypass: |
| 1003 |
aliases: ['radius-ip-auth-bypass'] |
| 1004 |
type: str |
| 1005 |
description: Enable IP authentication bypass. |
| 1006 |
choices: ['disable', 'enable'] |
| 1007 |
app_monitor: |
| 1008 |
aliases: ['app-monitor'] |
| 1009 |
type: str |
| 1010 |
description: Enable/disable application TCP metrics in session logs. |
| 1011 |
choices: ['disable', 'enable'] |
| 1012 |
port_random: |
| 1013 |
aliases: ['port-random'] |
| 1014 |
type: str |
| 1015 |
description: Enable/disable random source port selection for source NAT. |
| 1016 |
choices: ['disable', 'enable'] |
| 1017 |
ztna_ems_tag_negate: |
| 1018 |
aliases: ['ztna-ems-tag-negate'] |
| 1019 |
type: str |
| 1020 |
description: When enabled ztna-ems-tag specifies what the tags must NOT be. |
| 1021 |
choices: ['disable', 'enable'] |
| 1022 |
telemetry_profile: |
| 1023 |
aliases: ['telemetry-profile'] |
| 1024 |
type: raw |
| 1025 |
description: (list) Name of an existing telemetry profile. |
| 1026 |
access_proxy: |
| 1027 |
aliases: ['access-proxy'] |
| 1028 |
type: raw |
| 1029 |
description: (list) Access proxy. |
| 1030 |
detect_https_in_http_request: |
| 1031 |
aliases: ['detect-https-in-http-request'] |
| 1032 |
type: str |
| 1033 |
description: Detect https in http request. |
| 1034 |
choices: ['disable', 'enable'] |
| 1035 |
device_ownership: |
| 1036 |
aliases: ['device-ownership'] |
| 1037 |
type: str |
| 1038 |
description: Device ownership. |
| 1039 |
choices: ['disable', 'enable'] |
| 1040 |
dynamic_bypass: |
| 1041 |
aliases: ['dynamic-bypass'] |
| 1042 |
type: str |
| 1043 |
description: Dynamic bypass. |
| 1044 |
choices: ['disable', 'enable'] |
| 1045 |
explicit_web_proxy: |
| 1046 |
aliases: ['explicit-web-proxy'] |
| 1047 |
type: raw |
| 1048 |
description: (list) Explicit web proxy. |
| 1049 |
extended_log: |
| 1050 |
aliases: ['extended-log'] |
| 1051 |
type: str |
| 1052 |
description: Extended log. |
| 1053 |
choices: ['disable', 'enable'] |
| 1054 |
force_proxy: |
| 1055 |
aliases: ['force-proxy'] |
| 1056 |
type: str |
| 1057 |
description: Force proxy. |
| 1058 |
choices: ['disable', 'enable'] |
| 1059 |
http_tunnel_auth: |
| 1060 |
aliases: ['http-tunnel-auth'] |
| 1061 |
type: str |
| 1062 |
description: Enable/disable HTTP tunnel authentication. |
| 1063 |
choices: ['disable', 'enable'] |
| 1064 |
https_sub_category: |
| 1065 |
aliases: ['https-sub-category'] |
| 1066 |
type: str |
| 1067 |
description: Https sub category. |
| 1068 |
choices: ['disable', 'enable'] |
| 1069 |
ia_profile: |
| 1070 |
aliases: ['ia-profile'] |
| 1071 |
type: raw |
| 1072 |
description: (list) Image analyzer profile. |
| 1073 |
implicit_proxy_detection: |
| 1074 |
aliases: ['implicit-proxy-detection'] |
| 1075 |
type: str |
| 1076 |
description: Implicit proxy detection. |
| 1077 |
choices: ['disable', 'enable'] |
| 1078 |
isolator_profile: |
| 1079 |
aliases: ['isolator-profile'] |
| 1080 |
type: raw |
| 1081 |
description: (list) Isolator profile. |
| 1082 |
isolator_server: |
| 1083 |
aliases: ['isolator-server'] |
| 1084 |
type: raw |
| 1085 |
description: (list) Isolator server name. |
| 1086 |
max_session_per_user: |
| 1087 |
aliases: ['max-session-per-user'] |
| 1088 |
type: int |
| 1089 |
description: Max UTM sessions per user. |
| 1090 |
pass_through: |
| 1091 |
aliases: ['pass-through'] |
| 1092 |
type: str |
| 1093 |
description: Pass through. |
| 1094 |
choices: ['disable', 'enable'] |
| 1095 |
redirect_profile: |
| 1096 |
aliases: ['redirect-profile'] |
| 1097 |
type: raw |
| 1098 |
description: (list) Redirect profile. |
| 1099 |
reverse_cache: |
| 1100 |
aliases: ['reverse-cache'] |
| 1101 |
type: str |
| 1102 |
description: Enable/disable reverse cache servers. |
| 1103 |
choices: ['disable', 'enable'] |
| 1104 |
ssh_policy_check: |
| 1105 |
aliases: ['ssh-policy-check'] |
| 1106 |
type: str |
| 1107 |
description: Ssh policy check. |
| 1108 |
choices: ['disable', 'enable'] |
| 1109 |
transparent: |
| 1110 |
type: str |
| 1111 |
description: Set webproxy to use original client address. |
| 1112 |
choices: ['disable', 'enable'] |
| 1113 |
type: |
| 1114 |
type: str |
| 1115 |
description: Type of policy. |
| 1116 |
choices: ['explicit-web', 'transparent', 'explicit-ftp', 'ssh-tunnel', 'ssh', |
| 1117 |
'wanopt', 'access-proxy', 'ztna-proxy', 'explicit-web-connect', |
| 1118 |
'transparent-connect', 'llm-proxy'] |
| 1119 |
url_risk: |
| 1120 |
aliases: ['url-risk'] |
| 1121 |
type: raw |
| 1122 |
description: (list) Url risk. |
| 1123 |
service_connector: |
| 1124 |
aliases: ['service-connector'] |
| 1125 |
type: raw |
| 1126 |
description: (list) Service connector. |
| 1127 |
ztna_proxy: |
| 1128 |
aliases: ['ztna-proxy'] |
| 1129 |
type: raw |
| 1130 |
description: (list) Ztna proxy. |
| 1131 |
internet_service6_fortiguard: |
| 1132 |
aliases: ['internet-service6-fortiguard'] |
| 1133 |
type: raw |
| 1134 |
description: (list) FortiGuard IPv6 Internet Service name. |
| 1135 |
scim_groups: |
| 1136 |
aliases: ['scim-groups'] |
| 1137 |
type: raw |
| 1138 |
description: (list) Names of SCIM groups. |
| 1139 |
internet_service_fortiguard: |
| 1140 |
aliases: ['internet-service-fortiguard'] |
| 1141 |
type: raw |
| 1142 |
description: (list) FortiGuard Internet Service name. |
| 1143 |
internet_service_src_fortiguard: |
| 1144 |
aliases: ['internet-service-src-fortiguard'] |
| 1145 |
type: raw |
| 1146 |
description: (list) FortiGuard Internet Service source name. |
| 1147 |
scim_users: |
| 1148 |
aliases: ['scim-users'] |
| 1149 |
type: raw |
| 1150 |
description: (list) Names of SCIM users. |
| 1151 |
scim: |
| 1152 |
type: str |
| 1153 |
description: Enable/disable SCIM |
| 1154 |
choices: ['disable', 'enable'] |
| 1155 |
internet_service6_src_fortiguard: |
| 1156 |
aliases: ['internet-service6-src-fortiguard'] |
| 1157 |
type: raw |
| 1158 |
description: (list) FortiGuard IPv6 Internet Service source name. |
| 1159 |
saml_server: |
| 1160 |
aliases: ['saml-server'] |
| 1161 |
type: raw |
| 1162 |
description: (list) SAML server name. |
| 1163 |
llm_profile: |
| 1164 |
aliases: ['llm-profile'] |
| 1165 |
type: raw |
| 1166 |
description: (list) Llm profile. |
| 1167 |
object_position: |
| 1168 |
aliases: ['object position'] |
| 1169 |
type: list |
| 1170 |
elements: str |
| 1171 |
description: Object position. |
| 1172 |
''' |
| 1173 |
|
| 1174 |
EXAMPLES = ''' |
| 1175 |
- name: Example playbook |
| 1176 |
hosts: fortimanagers |
| 1177 |
gather_facts: false |
| 1178 |
connection: httpapi |
| 1179 |
vars: |
| 1180 |
ansible_httpapi_use_ssl: true |
| 1181 |
ansible_httpapi_validate_certs: false |
| 1182 |
ansible_httpapi_port: 443 |
| 1183 |
tasks: |
| 1184 |
- name: Configure IPv4 policies. |
| 1185 |
fortinet.fortimanager.fmgr_pkg_firewall_policy: |
| 1186 |
bypass_validation: false |
| 1187 |
adom: ansible |
| 1188 |
pkg: ansible # package name |
| 1189 |
state: present |
| 1190 |
pkg_firewall_policy: |
| 1191 |
action: accept # <value in [deny, accept, ipsec, ...]> |
| 1192 |
comments: ansible-comment |
| 1193 |
dstaddr: all |
| 1194 |
dstintf: any |
| 1195 |
# name: ansible-test-policy |
| 1196 |
nat: disable |
| 1197 |
policyid: 1 |
| 1198 |
schedule: always |
| 1199 |
service: ALL |
| 1200 |
srcaddr: all |
| 1201 |
srcintf: any |
| 1202 |
status: disable |
| 1203 |
|
| 1204 |
- name: Gathering fortimanager facts |
| 1205 |
hosts: fortimanagers |
| 1206 |
gather_facts: false |
| 1207 |
connection: httpapi |
| 1208 |
vars: |
| 1209 |
ansible_httpapi_use_ssl: true |
| 1210 |
ansible_httpapi_validate_certs: false |
| 1211 |
ansible_httpapi_port: 443 |
| 1212 |
tasks: |
| 1213 |
- name: Retrieve all the IPv4 policies |
| 1214 |
fortinet.fortimanager.fmgr_fact: |
| 1215 |
facts: |
| 1216 |
selector: "pkg_firewall_policy" |
| 1217 |
params: |
| 1218 |
adom: "ansible" |
| 1219 |
pkg: "ansible" # package name |
| 1220 |
policy: "your_value" |
| 1221 |
''' |
| 1222 |
|
| 1223 |
RETURN = ''' |
| 1224 |
meta: |
| 1225 |
description: The result of the request. |
| 1226 |
type: dict |
| 1227 |
returned: always |
| 1228 |
contains: |
| 1229 |
request_url: |
| 1230 |
description: The full url requested. |
| 1231 |
returned: always |
| 1232 |
type: str |
| 1233 |
sample: /sys/login/user |
| 1234 |
response_code: |
| 1235 |
description: The status of api request. |
| 1236 |
returned: always |
| 1237 |
type: int |
| 1238 |
sample: 0 |
| 1239 |
response_data: |
| 1240 |
description: The api response. |
| 1241 |
type: list |
| 1242 |
returned: always |
| 1243 |
response_message: |
| 1244 |
description: The descriptive message of the api response. |
| 1245 |
type: str |
| 1246 |
returned: always |
| 1247 |
sample: OK. |
| 1248 |
system_information: |
| 1249 |
description: The information of the target system. |
| 1250 |
type: dict |
| 1251 |
returned: always |
| 1252 |
rc: |
| 1253 |
description: The status the request. |
| 1254 |
type: int |
| 1255 |
returned: always |
| 1256 |
sample: 0 |
| 1257 |
version_check_warning: |
| 1258 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 1259 |
type: list |
| 1260 |
returned: complex |
| 1261 |
''' |
| 1262 |
from ansible.module_utils.basic import AnsibleModule |
| 1263 |
from ansible.module_utils.connection import Connection |
| 1264 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 1265 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 1266 |
|
| 1267 |
|
| 1268 |
def main(): |
| 1269 |
urls_list = [ |
| 1270 |
'/pm/config/adom/{adom}/pkg/{pkg}/firewall/policy' |
| 1271 |
] |
| 1272 |
module_arg_spec = { |
| 1273 |
'adom': {'required': True, 'type': 'str'}, |
| 1274 |
'pkg': {'required': True, 'type': 'str'}, |
| 1275 |
'revision_note': {'type': 'str'}, |
| 1276 |
'pkg_firewall_policy': { |
| 1277 |
'type': 'dict', 'v_range': [['6.0.0', '']], |
| 1278 |
'options': { |
| 1279 |
'action': {'choices': ['deny', 'accept', 'ipsec', 'ssl-vpn', 'redirect', 'isolate'], 'type': 'str'}, |
| 1280 |
'app-category': {'v_range': [['6.0.0', '7.6.2'], ['7.6.4', '']], 'type': 'raw'}, |
| 1281 |
'application': {'v_range': [['6.0.0', '7.6.2'], ['7.6.4', '']], 'type': 'raw'}, |
| 1282 |
'application-list': {'type': 'str'}, |
| 1283 |
'auth-cert': {'type': 'str'}, |
| 1284 |
'auth-path': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1285 |
'auth-redirect-addr': {'type': 'str'}, |
| 1286 |
'auto-asic-offload': { |
| 1287 |
'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], |
| 1288 |
'choices': ['disable', 'enable'], |
| 1289 |
'type': 'str' |
| 1290 |
}, |
| 1291 |
'av-profile': {'type': 'str'}, |
| 1292 |
'block-notification': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1293 |
'captive-portal-exempt': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1294 |
'capture-packet': {'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1295 |
'comments': {'type': 'raw'}, |
| 1296 |
'custom-log-fields': {'type': 'raw'}, |
| 1297 |
'delay-tcp-npu-session': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1298 |
'devices': {'v_range': [['6.0.0', '7.2.1']], 'type': 'raw'}, |
| 1299 |
'diffserv-forward': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1300 |
'diffserv-reverse': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1301 |
'diffservcode-forward': {'type': 'str'}, |
| 1302 |
'diffservcode-rev': {'type': 'str'}, |
| 1303 |
'disclaimer': {'choices': ['disable', 'enable', 'user', 'domain', 'policy'], 'type': 'str'}, |
| 1304 |
'dlp-sensor': {'type': 'str'}, |
| 1305 |
'dnsfilter-profile': {'type': 'str'}, |
| 1306 |
'dscp-match': {'v_range': [['6.0.0', '7.2.1']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1307 |
'dscp-negate': {'v_range': [['6.0.0', '7.2.1']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1308 |
'dscp-value': {'v_range': [['6.0.0', '7.2.1']], 'type': 'str'}, |
| 1309 |
'dsri': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1310 |
'dstaddr': {'type': 'raw'}, |
| 1311 |
'dstaddr-negate': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1312 |
'dstintf': {'type': 'raw'}, |
| 1313 |
'firewall-session-dirty': {'choices': ['check-all', 'check-new'], 'type': 'str'}, |
| 1314 |
'fixedport': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1315 |
'fsso': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1316 |
'fsso-agent-for-ntlm': {'type': 'str'}, |
| 1317 |
'global-label': {'type': 'str'}, |
| 1318 |
'groups': {'type': 'raw'}, |
| 1319 |
'gtp-profile': {'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'type': 'str'}, |
| 1320 |
'icap-profile': {'type': 'str'}, |
| 1321 |
'identity-based-route': {'type': 'str'}, |
| 1322 |
'inbound': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1323 |
'internet-service': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1324 |
'internet-service-custom': {'type': 'raw'}, |
| 1325 |
'internet-service-id': {'v_range': [['6.0.0', '7.6.2']], 'type': 'raw'}, |
| 1326 |
'internet-service-negate': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1327 |
'ippool': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1328 |
'ips-sensor': {'type': 'str'}, |
| 1329 |
'label': {'type': 'str'}, |
| 1330 |
'learning-mode': {'v_range': [['6.0.0', '7.2.1']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1331 |
'logtraffic': {'choices': ['disable', 'enable', 'all', 'utm'], 'type': 'str'}, |
| 1332 |
'logtraffic-start': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1333 |
'match-vip': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1334 |
'mms-profile': {'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '7.6.2']], 'type': 'str'}, |
| 1335 |
'name': {'type': 'str'}, |
| 1336 |
'nat': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1337 |
'natinbound': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1338 |
'natip': {'type': 'str'}, |
| 1339 |
'natoutbound': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1340 |
'ntlm': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1341 |
'ntlm-enabled-browsers': {'type': 'raw'}, |
| 1342 |
'ntlm-guest': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1343 |
'outbound': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1344 |
'per-ip-shaper': {'type': 'str'}, |
| 1345 |
'permit-any-host': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1346 |
'permit-stun-host': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1347 |
'policyid': {'required': True, 'type': 'int'}, |
| 1348 |
'poolname': {'type': 'raw'}, |
| 1349 |
'profile-group': {'type': 'str'}, |
| 1350 |
'profile-protocol-options': {'type': 'str'}, |
| 1351 |
'profile-type': {'choices': ['single', 'group'], 'type': 'str'}, |
| 1352 |
'radius-mac-auth-bypass': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1353 |
'redirect-url': {'type': 'str'}, |
| 1354 |
'replacemsg-override-group': {'type': 'str'}, |
| 1355 |
'rsso': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1356 |
'rtp-addr': {'type': 'raw'}, |
| 1357 |
'rtp-nat': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1358 |
'scan-botnet-connections': { |
| 1359 |
'v_range': [['6.0.0', '7.2.1'], ['7.4.8', '7.4.10']], |
| 1360 |
'choices': ['disable', 'block', 'monitor'], |
| 1361 |
'type': 'str' |
| 1362 |
}, |
| 1363 |
'schedule': {'type': 'str'}, |
| 1364 |
'schedule-timeout': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1365 |
'send-deny-packet': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1366 |
'service': {'type': 'raw'}, |
| 1367 |
'service-negate': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1368 |
'session-ttl': {'type': 'raw'}, |
| 1369 |
'spamfilter-profile': {'v_range': [['6.0.0', '7.2.1'], ['7.4.8', '7.4.10']], 'type': 'str'}, |
| 1370 |
'srcaddr': {'type': 'raw'}, |
| 1371 |
'srcaddr-negate': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1372 |
'srcintf': {'type': 'raw'}, |
| 1373 |
'ssl-mirror': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1374 |
'ssl-mirror-intf': {'v_range': [['6.0.0', '7.6.2']], 'type': 'raw'}, |
| 1375 |
'ssl-ssh-profile': {'type': 'str'}, |
| 1376 |
'status': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1377 |
'tags': {'v_range': [['6.0.0', '6.4.15'], ['7.4.8', '7.4.10']], 'type': 'str'}, |
| 1378 |
'tcp-mss-receiver': {'type': 'int'}, |
| 1379 |
'tcp-mss-sender': {'type': 'int'}, |
| 1380 |
'tcp-session-without-syn': {'choices': ['all', 'data-only', 'disable'], 'type': 'str'}, |
| 1381 |
'timeout-send-rst': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1382 |
'traffic-shaper': {'type': 'str'}, |
| 1383 |
'traffic-shaper-reverse': {'type': 'str'}, |
| 1384 |
'url-category': {'v_range': [['6.0.0', '7.6.2'], ['7.6.4', '']], 'type': 'raw'}, |
| 1385 |
'users': {'type': 'raw'}, |
| 1386 |
'utm-status': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1387 |
'uuid': {'type': 'str'}, |
| 1388 |
'vlan-cos-fwd': {'type': 'int'}, |
| 1389 |
'vlan-cos-rev': {'type': 'int'}, |
| 1390 |
'voip-profile': {'type': 'str'}, |
| 1391 |
'vpn_dst_node': { |
| 1392 |
'v_range': [['6.0.0', '7.0.2']], |
| 1393 |
'type': 'list', |
| 1394 |
'options': { |
| 1395 |
'host': {'v_range': [['6.0.0', '7.0.2']], 'type': 'str'}, |
| 1396 |
'seq': {'v_range': [['6.0.0', '7.0.2']], 'type': 'int'}, |
| 1397 |
'subnet': {'v_range': [['6.0.0', '7.0.2']], 'type': 'str'} |
| 1398 |
}, |
| 1399 |
'elements': 'dict' |
| 1400 |
}, |
| 1401 |
'vpn_src_node': { |
| 1402 |
'v_range': [['6.0.0', '7.0.2']], |
| 1403 |
'type': 'list', |
| 1404 |
'options': { |
| 1405 |
'host': {'v_range': [['6.0.0', '7.0.2']], 'type': 'str'}, |
| 1406 |
'seq': {'v_range': [['6.0.0', '7.0.2']], 'type': 'int'}, |
| 1407 |
'subnet': {'v_range': [['6.0.0', '7.0.2']], 'type': 'str'} |
| 1408 |
}, |
| 1409 |
'elements': 'dict' |
| 1410 |
}, |
| 1411 |
'vpntunnel': {'type': 'str'}, |
| 1412 |
'waf-profile': {'type': 'str'}, |
| 1413 |
'wanopt': {'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1414 |
'wanopt-detection': { |
| 1415 |
'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], |
| 1416 |
'choices': ['active', 'passive', 'off'], |
| 1417 |
'type': 'str' |
| 1418 |
}, |
| 1419 |
'wanopt-passive-opt': { |
| 1420 |
'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], |
| 1421 |
'choices': ['default', 'transparent', 'non-transparent'], |
| 1422 |
'type': 'str' |
| 1423 |
}, |
| 1424 |
'wanopt-peer': {'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'type': 'str'}, |
| 1425 |
'wanopt-profile': {'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'type': 'str'}, |
| 1426 |
'wccp': {'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1427 |
'webcache': {'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1428 |
'webcache-https': { |
| 1429 |
'v_range': [['6.0.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], |
| 1430 |
'choices': ['disable', 'ssl-server', 'any', 'enable'], |
| 1431 |
'type': 'str' |
| 1432 |
}, |
| 1433 |
'webfilter-profile': {'type': 'str'}, |
| 1434 |
'wsso': {'v_range': [['6.0.0', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1435 |
'anti-replay': {'v_range': [['6.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1436 |
'app-group': {'v_range': [['6.2.0', '7.6.2'], ['7.6.4', '']], 'type': 'raw'}, |
| 1437 |
'cifs-profile': {'v_range': [['6.2.0', '']], 'type': 'str'}, |
| 1438 |
'email-collect': {'v_range': [['6.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1439 |
'emailfilter-profile': {'v_range': [['6.2.0', '']], 'type': 'str'}, |
| 1440 |
'fsso-groups': {'v_range': [['6.2.1', '']], 'type': 'raw'}, |
| 1441 |
'geoip-anycast': {'v_range': [['6.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1442 |
'http-policy-redirect': {'v_range': [['6.2.0', '']], 'choices': ['disable', 'enable', 'legacy'], 'type': 'str'}, |
| 1443 |
'inspection-mode': {'v_range': [['6.2.0', '']], 'choices': ['proxy', 'flow'], 'type': 'str'}, |
| 1444 |
'internet-service-custom-group': {'v_range': [['6.2.0', '']], 'type': 'raw'}, |
| 1445 |
'internet-service-group': {'v_range': [['6.2.0', '']], 'type': 'raw'}, |
| 1446 |
'internet-service-src': {'v_range': [['6.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1447 |
'internet-service-src-custom': {'v_range': [['6.2.0', '']], 'type': 'raw'}, |
| 1448 |
'internet-service-src-custom-group': {'v_range': [['6.2.0', '']], 'type': 'raw'}, |
| 1449 |
'internet-service-src-group': {'v_range': [['6.2.0', '']], 'type': 'raw'}, |
| 1450 |
'internet-service-src-id': {'v_range': [['6.2.0', '7.6.2']], 'type': 'raw'}, |
| 1451 |
'internet-service-src-negate': {'v_range': [['6.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1452 |
'match-vip-only': {'v_range': [['6.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1453 |
'np-acceleration': {'v_range': [['6.2.0', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1454 |
'reputation-direction': {'v_range': [['6.2.0', '']], 'choices': ['source', 'destination'], 'type': 'str'}, |
| 1455 |
'reputation-minimum': {'v_range': [['6.2.0', '']], 'type': 'int'}, |
| 1456 |
'ssh-filter-profile': {'v_range': [['6.2.0', '7.2.4'], ['7.2.6', '']], 'type': 'str'}, |
| 1457 |
'ssh-policy-redirect': {'v_range': [['6.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1458 |
'tos': {'v_range': [['6.2.0', '']], 'type': 'str'}, |
| 1459 |
'tos-mask': {'v_range': [['6.2.0', '']], 'type': 'str'}, |
| 1460 |
'tos-negate': {'v_range': [['6.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1461 |
'vlan-filter': {'v_range': [['6.2.0', '']], 'type': 'str'}, |
| 1462 |
'webproxy-forward-server': {'v_range': [['6.2.0', '']], 'type': 'str'}, |
| 1463 |
'webproxy-profile': {'v_range': [['6.2.0', '']], 'type': 'str'}, |
| 1464 |
'np-accelation': {'v_range': [['6.2.1', '6.4.15']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1465 |
'delay-tcp-npu-sessoin': {'v_range': [['6.2.0', '6.2.13']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1466 |
'casi-profile': {'v_range': [['6.2.0', '6.2.13']], 'type': 'str'}, |
| 1467 |
'best-route': {'v_range': [['6.2.3', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1468 |
'decrypted-traffic-mirror': {'v_range': [['6.4.0', '']], 'type': 'str'}, |
| 1469 |
'dstaddr6': {'v_range': [['6.4.0', '']], 'type': 'raw'}, |
| 1470 |
'geoip-match': {'v_range': [['6.4.0', '']], 'choices': ['physical-location', 'registered-location'], 'type': 'str'}, |
| 1471 |
'internet-service-name': {'v_range': [['6.4.0', '']], 'type': 'raw'}, |
| 1472 |
'internet-service-src-name': {'v_range': [['6.4.0', '']], 'type': 'raw'}, |
| 1473 |
'poolname6': {'v_range': [['6.4.0', '']], 'type': 'raw'}, |
| 1474 |
'src-vendor-mac': {'v_range': [['6.4.0', '']], 'type': 'raw'}, |
| 1475 |
'srcaddr6': {'v_range': [['6.4.0', '']], 'type': 'raw'}, |
| 1476 |
'file-filter-profile': {'v_range': [['6.4.1', '7.2.4'], ['7.2.6', '']], 'type': 'str'}, |
| 1477 |
'policy-offload': {'v_range': [['6.2.7', '6.2.13'], ['6.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1478 |
'cgn-session-quota': {'v_range': [['6.2.7', '6.2.13'], ['6.4.3', '']], 'type': 'int'}, |
| 1479 |
'cgn-eif': {'v_range': [['6.2.7', '6.2.13'], ['6.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1480 |
'cgn-log-server-grp': {'v_range': [['6.2.7', '6.2.13'], ['6.4.3', '']], 'type': 'str'}, |
| 1481 |
'cgn-eim': {'v_range': [['6.2.7', '6.2.13'], ['6.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1482 |
'cgn-resource-quota': {'v_range': [['6.2.7', '6.2.13'], ['6.4.3', '']], 'type': 'int'}, |
| 1483 |
'dynamic-shaping': {'v_range': [['6.4.6', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1484 |
'passive-wan-health-measurement': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1485 |
'videofilter-profile': {'v_range': [['7.0.0', '7.2.4'], ['7.2.6', '']], 'type': 'str'}, |
| 1486 |
'ztna-ems-tag': {'v_range': [['7.0.0', '']], 'type': 'raw'}, |
| 1487 |
'ztna-geo-tag': {'v_range': [['7.0.0', '']], 'type': 'raw'}, |
| 1488 |
'ztna-status': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1489 |
'_policy_block': {'v_range': [['7.0.3', '']], 'type': 'int'}, |
| 1490 |
'dlp-profile': {'v_range': [['7.2.0', '']], 'type': 'str'}, |
| 1491 |
'fec': {'v_range': [['7.0.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1492 |
'nat46': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1493 |
'nat64': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1494 |
'pfcp-profile': {'v_range': [['7.0.1', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'type': 'str'}, |
| 1495 |
'policy-expiry': {'v_range': [['7.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1496 |
'policy-expiry-date': {'v_range': [['7.2.0', '']], 'type': 'str'}, |
| 1497 |
'sctp-filter-profile': {'v_range': [['7.0.1', '7.2.4'], ['7.2.6', '']], 'type': 'str'}, |
| 1498 |
'sgt': {'v_range': [['7.0.1', '']], 'type': 'raw'}, |
| 1499 |
'sgt-check': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1500 |
'tcp-timeout-pid': {'v_range': [['7.0.3', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'type': 'str'}, |
| 1501 |
'udp-timeout-pid': {'v_range': [['7.0.3', '7.2.0'], ['7.2.6', '7.2.12'], ['7.4.3', '']], 'type': 'str'}, |
| 1502 |
'diffserv-copy': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1503 |
'dstaddr6-negate': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1504 |
'internet-service6': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1505 |
'internet-service6-custom': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1506 |
'internet-service6-custom-group': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1507 |
'internet-service6-group': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1508 |
'internet-service6-name': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1509 |
'internet-service6-negate': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1510 |
'internet-service6-src': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1511 |
'internet-service6-src-custom': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1512 |
'internet-service6-src-custom-group': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1513 |
'internet-service6-src-group': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1514 |
'internet-service6-src-name': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1515 |
'internet-service6-src-negate': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1516 |
'network-service-dynamic': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1517 |
'network-service-src-dynamic': {'v_range': [['7.2.1', '']], 'type': 'raw'}, |
| 1518 |
'reputation-direction6': {'v_range': [['7.2.1', '']], 'choices': ['source', 'destination'], 'type': 'str'}, |
| 1519 |
'reputation-minimum6': {'v_range': [['7.2.1', '']], 'type': 'int'}, |
| 1520 |
'srcaddr6-negate': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1521 |
'ip-version-type': {'v_range': [['7.2.6', '']], 'type': 'str'}, |
| 1522 |
'ips-voip-filter': {'v_range': [['7.2.6', '']], 'type': 'str'}, |
| 1523 |
'pcp-inbound': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1524 |
'pcp-outbound': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1525 |
'pcp-poolname': {'v_range': [['7.4.0', '']], 'type': 'raw'}, |
| 1526 |
'policy-behaviour-type': {'v_range': [['7.2.6', '']], 'type': 'str'}, |
| 1527 |
'policy-expiry-date-utc': {'v_range': [['7.2.6', '']], 'type': 'str'}, |
| 1528 |
'ztna-device-ownership': {'v_range': [['7.2.6', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1529 |
'ztna-ems-tag-secondary': {'v_range': [['7.4.0', '']], 'type': 'raw'}, |
| 1530 |
'ztna-policy-redirect': {'v_range': [['7.2.6', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1531 |
'ztna-tags-match-logic': {'v_range': [['7.2.6', '']], 'choices': ['or', 'and'], 'type': 'str'}, |
| 1532 |
'casb-profile': {'v_range': [['7.4.1', '']], 'type': 'str'}, |
| 1533 |
'virtual-patch-profile': {'v_range': [['7.4.1', '']], 'type': 'str'}, |
| 1534 |
'diameter-filter-profile': {'v_range': [['7.4.2', '']], 'type': 'str'}, |
| 1535 |
'port-preserve': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1536 |
'cgn-sw-eif-ctrl': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1537 |
'eif-check': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1538 |
'eif-learn': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1539 |
'log-http-transaction': {'v_range': [['7.4.8', '']], 'choices': ['disable', 'enable', 'all', 'utm'], 'type': 'str'}, |
| 1540 |
'radius-ip-auth-bypass': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1541 |
'app-monitor': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1542 |
'port-random': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1543 |
'ztna-ems-tag-negate': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1544 |
'telemetry-profile': {'v_range': [['7.6.3', '']], 'type': 'raw'}, |
| 1545 |
'access-proxy': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'raw'}, |
| 1546 |
'detect-https-in-http-request': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1547 |
'device-ownership': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1548 |
'dynamic-bypass': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1549 |
'explicit-web-proxy': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'raw'}, |
| 1550 |
'extended-log': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1551 |
'force-proxy': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1552 |
'http-tunnel-auth': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1553 |
'https-sub-category': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1554 |
'ia-profile': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'raw'}, |
| 1555 |
'implicit-proxy-detection': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1556 |
'isolator-profile': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'raw'}, |
| 1557 |
'isolator-server': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'raw'}, |
| 1558 |
'max-session-per-user': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'int'}, |
| 1559 |
'pass-through': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1560 |
'redirect-profile': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'raw'}, |
| 1561 |
'reverse-cache': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1562 |
'ssh-policy-check': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1563 |
'transparent': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1564 |
'type': { |
| 1565 |
'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], |
| 1566 |
'choices': [ |
| 1567 |
'explicit-web', 'transparent', 'explicit-ftp', 'ssh-tunnel', 'ssh', 'wanopt', 'access-proxy', 'ztna-proxy', |
| 1568 |
'explicit-web-connect', 'transparent-connect', 'llm-proxy' |
| 1569 |
], |
| 1570 |
'type': 'str' |
| 1571 |
}, |
| 1572 |
'url-risk': {'v_range': [['7.4.8', '7.4.10'], ['7.6.4', '']], 'type': 'raw'}, |
| 1573 |
'service-connector': {'v_range': [['7.6.4', '']], 'type': 'raw'}, |
| 1574 |
'ztna-proxy': {'v_range': [['7.6.4', '']], 'type': 'raw'}, |
| 1575 |
'internet-service6-fortiguard': {'v_range': [['7.6.4', '']], 'type': 'raw'}, |
| 1576 |
'scim-groups': {'v_range': [['7.6.4', '']], 'type': 'raw'}, |
| 1577 |
'internet-service-fortiguard': {'v_range': [['7.6.4', '']], 'type': 'raw'}, |
| 1578 |
'internet-service-src-fortiguard': {'v_range': [['7.6.4', '']], 'type': 'raw'}, |
| 1579 |
'scim-users': {'v_range': [['7.6.4', '']], 'type': 'raw'}, |
| 1580 |
'scim': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 1581 |
'internet-service6-src-fortiguard': {'v_range': [['7.6.4', '']], 'type': 'raw'}, |
| 1582 |
'saml-server': {'v_range': [['7.6.4', '']], 'type': 'raw'}, |
| 1583 |
'llm-profile': {'v_range': [['7.6.5', '']], 'type': 'raw'}, |
| 1584 |
'object position': {'type': 'list', 'elements': 'str'} |
| 1585 |
} |
| 1586 |
} |
| 1587 |
} |
| 1588 |
|
| 1589 |
module_option_spec = get_module_arg_spec('full crud') |
| 1590 |
module_arg_spec.update(module_option_spec) |
| 1591 |
check_galaxy_version(module_arg_spec) |
| 1592 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'pkg_firewall_policy'), |
| 1593 |
supports_check_mode=True) |
| 1594 |
if not module._socket_path: |
| 1595 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 1596 |
connection = Connection(module._socket_path) |
| 1597 |
fmgr = NAPIManager('full crud', module_arg_spec, urls_list, |
| 1598 |
'policyid', 'data', module, connection) |
| 1599 |
fmgr.process_crud() |
| 1600 |
module.exit_json(meta=module.params) |
| 1601 |
|
| 1602 |
|
| 1603 |
if __name__ == '__main__': |
| 1604 |
main() |