fortinet.fortimanager.fmgr_pkg_firewall_policy (2.4.0) — module

Configure IPv4 policies.

| "added in version" 1.0.0 of fortinet.fortimanager"

Authors: Xinwei Du (@dux-fortinet), Xing Li (@lix-fortinet), Jie Xue (@JieX19), Link Zheng (@chillancezen), Frank Shen (@fshen01), Hongbin Lu (@fgtdev-hblu)

preview | supported by community

Install collection

Install with ansible-galaxy collection install fortinet.fortimanager:==2.4.0


Add to requirements.yml

  collections:
    - name: fortinet.fortimanager
      version: 2.4.0

Description

This module is able to configure a FortiManager device.

Examples include all parameters and values which need to be adjusted to data sources before usage.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Example playbook
  hosts: fortimanagers
  connection: httpapi
  vars:
    ansible_httpapi_use_ssl: true
    ansible_httpapi_validate_certs: false
    ansible_httpapi_port: 443
  tasks:
    - name: Configure IPv4 policies.
      fortinet.fortimanager.fmgr_pkg_firewall_policy:
        bypass_validation: false
        adom: ansible
        pkg: ansible # package name
        state: present
        pkg_firewall_policy:
          action: accept # <value in [deny, accept, ipsec, ...]>
          comments: ansible-comment
          dstaddr: all
          dstintf: any
          # name: ansible-test-policy
          nat: disable
          policyid: 1
          schedule: always
          service: ALL
          srcaddr: all
          srcintf: any
          status: disable
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gathering fortimanager facts
  hosts: fortimanagers
  gather_facts: false
  connection: httpapi
  vars:
    ansible_httpapi_use_ssl: true
    ansible_httpapi_validate_certs: false
    ansible_httpapi_port: 443
  tasks:
    - name: Retrieve all the IPv4 policies
      fortinet.fortimanager.fmgr_fact:
        facts:
          selector: "pkg_firewall_policy"
          params:
            adom: "ansible"
            pkg: "ansible" # package name
            policy: "your_value"

Inputs

    
pkg:
    description: The parameter (pkg) in requested url.
    required: true
    type: str

adom:
    description: The parameter (adom) in requested url.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    description: The directive to create, update or delete an object.
    required: true
    type: str

rc_failed:
    description: The rc codes list with which the conditions to fail will be overriden.
    elements: int
    type: list

enable_log:
    default: false
    description: Enable/Disable logging for task.
    type: bool

access_token:
    description: The token to access FortiManager without using username and password.
    type: str

rc_succeeded:
    description: The rc codes list with which the conditions to succeed will be overriden.
    elements: int
    type: list

proposed_method:
    choices:
    - update
    - set
    - add
    description: The overridden method for the underlying Json RPC request.
    type: str

bypass_validation:
    default: false
    description: Only set to True when module schema diffs with FortiManager API structure,
      module continues to execute without validating parameters.
    type: bool

pkg_firewall_policy:
    description: The top level parameters set.
    required: false
    suboptions:
      _policy_block:
        description: Assigned policy block.
        type: int
      action:
        choices:
        - deny
        - accept
        - ipsec
        - ssl-vpn
        - redirect
        - isolate
        description: Policy action
        type: str
      anti-replay:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to anti_replay. Enable/disable anti-replay
          check.
        type: str
      app-category:
        description: (list or str) Deprecated, please rename it to app_category. Application
          category ID list.
        type: raw
      app-group:
        description: (list or str) Deprecated, please rename it to app_group. Application
          group names.
        type: raw
      application:
        description: (list) Application ID list.
        type: raw
      application-list:
        description: Deprecated, please rename it to application_list. Name of an existing
          Application list.
        type: str
      auth-cert:
        description: Deprecated, please rename it to auth_cert. HTTPS server certificate
          for policy authentication.
        type: str
      auth-path:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to auth_path. Enable/disable authentication-based
          routing.
        type: str
      auth-redirect-addr:
        description: Deprecated, please rename it to auth_redirect_addr. HTTP-to-HTTPS
          redirect address for firewall authentication.
        type: str
      auto-asic-offload:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to auto_asic_offload. Enable/disable
          offloading security profile processing to CP processors.
        type: str
      av-profile:
        description: Deprecated, please rename it to av_profile. Name of an existing Antivirus
          profile.
        type: str
      best-route:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to best_route. Enable/disable the use
          of best route.
        type: str
      block-notification:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to block_notification. Enable/disable
          block notification.
        type: str
      captive-portal-exempt:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to captive_portal_exempt. Enable to
          exempt some users from the captive portal.
        type: str
      capture-packet:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to capture_packet. Enable/disable capture
          packets.
        type: str
      casb-profile:
        description: Deprecated, please rename it to casb_profile. Name of an existing
          CASB profile.
        type: str
      casi-profile:
        description: Deprecated, please rename it to casi_profile. CASI profile.
        type: str
      cgn-eif:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to cgn_eif. Enable/Disable CGN endpoint
          independent filtering.
        type: str
      cgn-eim:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to cgn_eim. Enable/Disable CGN endpoint
          independent mapping
        type: str
      cgn-log-server-grp:
        description: Deprecated, please rename it to cgn_log_server_grp. NP log server
          group name
        type: str
      cgn-resource-quota:
        description: Deprecated, please rename it to cgn_resource_quota. Resource quota
        type: int
      cgn-session-quota:
        description: Deprecated, please rename it to cgn_session_quota. Session quota
        type: int
      cifs-profile:
        description: Deprecated, please rename it to cifs_profile. Name of an existing
          CIFS profile.
        type: str
      comments:
        description: (dict or str) No description.
        type: raw
      custom-log-fields:
        description: (list or str) Deprecated, please rename it to custom_log_fields.
          Custom fields to append to log messages for this policy.
        type: raw
      decrypted-traffic-mirror:
        description: Deprecated, please rename it to decrypted_traffic_mirror. Decrypted
          traffic mirror.
        type: str
      delay-tcp-npu-session:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to delay_tcp_npu_session. Enable TCP
          NPU session delay to guarantee packet order of 3-way han...
        type: str
      delay-tcp-npu-sessoin:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to delay_tcp_npu_sessoin. Enable/disable
          TCP NPU session delay in order to guarantee packet o...
        type: str
      devices:
        description: (list or str) Names of devices or device groups that can be matched
          by the policy.
        type: raw
      diameter-filter-profile:
        description: Deprecated, please rename it to diameter_filter_profile. Name of
          an existing Diameter filter profile.
        type: str
      diffserv-copy:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to diffserv_copy. Enable to copy packets
          DiffServ values from sessions original direction to ...
        type: str
      diffserv-forward:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to diffserv_forward. Enable to change
          packets DiffServ values to the specified diffservcode-f...
        type: str
      diffserv-reverse:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to diffserv_reverse. Enable to change
          packets reverse
        type: str
      diffservcode-forward:
        description: Deprecated, please rename it to diffservcode_forward. Change packets
          DiffServ to this value.
        type: str
      diffservcode-rev:
        description: Deprecated, please rename it to diffservcode_rev. Change packets
          reverse
        type: str
      disclaimer:
        choices:
        - disable
        - enable
        - user
        - domain
        - policy
        description: Enable/disable user authentication disclaimer.
        type: str
      dlp-profile:
        description: Deprecated, please rename it to dlp_profile. Name of an existing
          DLP profile.
        type: str
      dlp-sensor:
        description: Deprecated, please rename it to dlp_sensor. Name of an existing DLP
          sensor.
        type: str
      dnsfilter-profile:
        description: Deprecated, please rename it to dnsfilter_profile. Name of an existing
          DNS filter profile.
        type: str
      dscp-match:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to dscp_match. Enable DSCP check.
        type: str
      dscp-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to dscp_negate. Enable negated DSCP
          match.
        type: str
      dscp-value:
        description: Deprecated, please rename it to dscp_value. DSCP value.
        type: str
      dsri:
        choices:
        - disable
        - enable
        description: Enable DSRI to ignore HTTP server responses.
        type: str
      dstaddr:
        description: (list or str) Destination address and address group names.
        type: raw
      dstaddr-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to dstaddr_negate. When enabled dstaddr
          specifies what the destination address must NOT be.
        type: str
      dstaddr6:
        description: (list or str) Destination IPv6 address name and address group names.
        type: raw
      dstaddr6-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to dstaddr6_negate. When enabled dstaddr6
          specifies what the destination address must NOT be.
        type: str
      dstintf:
        description: (list or str) Outgoing
        type: raw
      dynamic-shaping:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to dynamic_shaping. Enable/disable dynamic
          RADIUS defined traffic shaping.
        type: str
      email-collect:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to email_collect. Enable/disable email
          collection.
        type: str
      emailfilter-profile:
        description: Deprecated, please rename it to emailfilter_profile. Name of an existing
          email filter profile.
        type: str
      fec:
        choices:
        - disable
        - enable
        description: Enable/disable Forward Error Correction on traffic matching this
          policy on a FEC device.
        type: str
      file-filter-profile:
        description: Deprecated, please rename it to file_filter_profile. Name of an existing
          file-filter profile.
        type: str
      firewall-session-dirty:
        choices:
        - check-all
        - check-new
        description: Deprecated, please rename it to firewall_session_dirty. How to handle
          sessions if the configuration of this firewall polic...
        type: str
      fixedport:
        choices:
        - disable
        - enable
        description: Enable to prevent source NAT from changing a sessions source port.
        type: str
      fsso:
        choices:
        - disable
        - enable
        description: Enable/disable Fortinet Single Sign-On.
        type: str
      fsso-agent-for-ntlm:
        description: Deprecated, please rename it to fsso_agent_for_ntlm. FSSO agent to
          use for NTLM authentication.
        type: str
      fsso-groups:
        description: (list or str) Deprecated, please rename it to fsso_groups. Names
          of FSSO groups.
        type: raw
      geoip-anycast:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to geoip_anycast. Enable/disable recognition
          of anycast IP addresses using the geography IP d...
        type: str
      geoip-match:
        choices:
        - physical-location
        - registered-location
        description: Deprecated, please rename it to geoip_match. Match geography address
          based either on its physical location or registered l...
        type: str
      global-label:
        description: Deprecated, please rename it to global_label. Label for the policy
          that appears when the GUI is in Global View mode.
        type: str
      groups:
        description: (list or str) Names of user groups that can authenticate with this
          policy.
        type: raw
      gtp-profile:
        description: Deprecated, please rename it to gtp_profile. GTP profile.
        type: str
      http-policy-redirect:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to http_policy_redirect. Redirect HTTP
        type: str
      icap-profile:
        description: Deprecated, please rename it to icap_profile. Name of an existing
          ICAP profile.
        type: str
      identity-based-route:
        description: Deprecated, please rename it to identity_based_route. Name of identity-based
          routing rule.
        type: str
      inbound:
        choices:
        - disable
        - enable
        description: Policy-based IPsec VPN
        type: str
      inspection-mode:
        choices:
        - proxy
        - flow
        description: Deprecated, please rename it to inspection_mode. Policy inspection
          mode
        type: str
      internet-service:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to internet_service. Enable/disable
          use of Internet Services for this policy.
        type: str
      internet-service-custom:
        description: (list or str) Deprecated, please rename it to internet_service_custom.
          Custom Internet Service Name.
        type: raw
      internet-service-custom-group:
        description: (list or str) Deprecated, please rename it to internet_service_custom_group.
          Custom Internet Service group name.
        type: raw
      internet-service-group:
        description: (list or str) Deprecated, please rename it to internet_service_group.
          Internet Service group name.
        type: raw
      internet-service-id:
        description: (list or str) Deprecated, please rename it to internet_service_id.
          Internet Service ID.
        type: raw
      internet-service-name:
        description: (list or str) Deprecated, please rename it to internet_service_name.
          Internet Service name.
        type: raw
      internet-service-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to internet_service_negate. When enabled
          internet-service specifies what the service must NOT be.
        type: str
      internet-service-src:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to internet_service_src. Enable/disable
          use of Internet Services in source for this policy.
        type: str
      internet-service-src-custom:
        description: (list or str) Deprecated, please rename it to internet_service_src_custom.
          Custom Internet Service source name.
        type: raw
      internet-service-src-custom-group:
        description: (list or str) Deprecated, please rename it to internet_service_src_custom_group.
          Custom Internet Service source group name.
        type: raw
      internet-service-src-group:
        description: (list or str) Deprecated, please rename it to internet_service_src_group.
          Internet Service source group name.
        type: raw
      internet-service-src-id:
        description: (list or str) Deprecated, please rename it to internet_service_src_id.
          Internet Service source ID.
        type: raw
      internet-service-src-name:
        description: (list or str) Deprecated, please rename it to internet_service_src_name.
          Internet Service source name.
        type: raw
      internet-service-src-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to internet_service_src_negate. When
          enabled internet-service-src specifies what the service ...
        type: str
      internet-service6:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to internet_service6. Enable/disable
          use of IPv6 Internet Services for this policy.
        type: str
      internet-service6-custom:
        description: (list) Deprecated, please rename it to internet_service6_custom.
        type: raw
      internet-service6-custom-group:
        description: (list) Deprecated, please rename it to internet_service6_custom_group.
        type: raw
      internet-service6-group:
        description: (list) Deprecated, please rename it to internet_service6_group.
        type: raw
      internet-service6-name:
        description: (list) Deprecated, please rename it to internet_service6_name.
        type: raw
      internet-service6-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to internet_service6_negate. When enabled
          internet-service6 specifies what the service must N...
        type: str
      internet-service6-src:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to internet_service6_src. Enable/disable
          use of IPv6 Internet Services in source for this policy.
        type: str
      internet-service6-src-custom:
        description: (list) Deprecated, please rename it to internet_service6_src_custom.
        type: raw
      internet-service6-src-custom-group:
        description: (list) Deprecated, please rename it to internet_service6_src_custom_group.
        type: raw
      internet-service6-src-group:
        description: (list) Deprecated, please rename it to internet_service6_src_group.
        type: raw
      internet-service6-src-name:
        description: (list) Deprecated, please rename it to internet_service6_src_name.
        type: raw
      internet-service6-src-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to internet_service6_src_negate. When
          enabled internet-service6-src specifies what the servic...
        type: str
      ip-version-type:
        description: Deprecated, please rename it to ip_version_type. IP version of the
          policy.
        type: str
      ippool:
        choices:
        - disable
        - enable
        description: Enable to use IP Pools for source NAT.
        type: str
      ips-sensor:
        description: Deprecated, please rename it to ips_sensor. Name of an existing IPS
          sensor.
        type: str
      ips-voip-filter:
        description: Deprecated, please rename it to ips_voip_filter. Name of an existing
          VoIP
        type: str
      label:
        description: Label for the policy that appears when the GUI is in Section View
          mode.
        type: str
      learning-mode:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to learning_mode. Enable to allow everything,
          but log all of the meaningful data for security...
        type: str
      logtraffic:
        choices:
        - disable
        - enable
        - all
        - utm
        description: Enable or disable logging.
        type: str
      logtraffic-start:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to logtraffic_start. Record logs when
          a session starts and ends.
        type: str
      match-vip:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to match_vip. Enable to match packets
          that have had their destination addresses changed by a VIP.
        type: str
      match-vip-only:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to match_vip_only. Enable/disable matching
          of only those packets that have had their destinat...
        type: str
      mms-profile:
        description: Deprecated, please rename it to mms_profile. Name of an existing
          MMS profile.
        type: str
      name:
        description: Policy name.
        type: str
      nat:
        choices:
        - disable
        - enable
        description: Enable/disable source NAT.
        type: str
      nat46:
        choices:
        - disable
        - enable
        description: Enable/disable NAT46.
        type: str
      nat64:
        choices:
        - disable
        - enable
        description: Enable/disable NAT64.
        type: str
      natinbound:
        choices:
        - disable
        - enable
        description: Policy-based IPsec VPN
        type: str
      natip:
        description: Policy-based IPsec VPN
        type: str
      natoutbound:
        choices:
        - disable
        - enable
        description: Policy-based IPsec VPN
        type: str
      network-service-dynamic:
        description: (list) Deprecated, please rename it to network_service_dynamic.
        type: raw
      network-service-src-dynamic:
        description: (list) Deprecated, please rename it to network_service_src_dynamic.
        type: raw
      np-accelation:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to np_accelation. Enable/disable UTM
          Network Processor acceleration.
        type: str
      np-acceleration:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to np_acceleration. Enable/disable UTM
          Network Processor acceleration.
        type: str
      ntlm:
        choices:
        - disable
        - enable
        description: Enable/disable NTLM authentication.
        type: str
      ntlm-enabled-browsers:
        description: (list) Deprecated, please rename it to ntlm_enabled_browsers. HTTP-User-Agent
          value of supported browsers.
        type: raw
      ntlm-guest:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to ntlm_guest. Enable/disable NTLM guest
          user access.
        type: str
      object position:
        description: Deprecated, please rename it to object_position.
        elements: str
        type: list
      outbound:
        choices:
        - disable
        - enable
        description: Policy-based IPsec VPN
        type: str
      passive-wan-health-measurement:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to passive_wan_health_measurement. Enable/disable
          passive WAN health measurement.
        type: str
      pcp-inbound:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to pcp_inbound. Enable/disable PCP inbound
          DNAT.
        type: str
      pcp-outbound:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to pcp_outbound. Enable/disable PCP
          outbound SNAT.
        type: str
      pcp-poolname:
        description: (list) Deprecated, please rename it to pcp_poolname.
        type: raw
      per-ip-shaper:
        description: Deprecated, please rename it to per_ip_shaper. Per-IP traffic shaper.
        type: str
      permit-any-host:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to permit_any_host. Accept UDP packets
          from any host.
        type: str
      permit-stun-host:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to permit_stun_host. Accept UDP packets
          from any Session Traversal Utilities for NAT
        type: str
      pfcp-profile:
        description: Deprecated, please rename it to pfcp_profile. PFCP profile.
        type: str
      policy-behaviour-type:
        description: Deprecated, please rename it to policy_behaviour_type. Behaviour
          of the policy.
        type: str
      policy-expiry:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to policy_expiry. Enable/disable policy
          expiry.
        type: str
      policy-expiry-date:
        description: Deprecated, please rename it to policy_expiry_date. Policy expiry
          date
        type: str
      policy-expiry-date-utc:
        description: Deprecated, please rename it to policy_expiry_date_utc. Policy expiry
          date and time, in epoch format.
        type: str
      policy-offload:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to policy_offload. Enable/Disable hardware
          session setup for CGNAT.
        type: str
      policyid:
        description: Policy ID.
        required: true
        type: int
      poolname:
        description: (list or str) IP Pool names.
        type: raw
      poolname6:
        description: (list or str) IPv6 pool names.
        type: raw
      profile-group:
        description: Deprecated, please rename it to profile_group. Name of profile group.
        type: str
      profile-protocol-options:
        description: Deprecated, please rename it to profile_protocol_options. Name of
          an existing Protocol options profile.
        type: str
      profile-type:
        choices:
        - single
        - group
        description: Deprecated, please rename it to profile_type. Determine whether the
          firewall policy allows security profile groups or sing...
        type: str
      radius-mac-auth-bypass:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to radius_mac_auth_bypass. Enable MAC
          authentication bypass.
        type: str
      redirect-url:
        description: Deprecated, please rename it to redirect_url. URL users are directed
          to after seeing and accepting the disclaimer or authe...
        type: str
      replacemsg-override-group:
        description: Deprecated, please rename it to replacemsg_override_group. Override
          the default replacement message group for this policy.
        type: str
      reputation-direction:
        choices:
        - source
        - destination
        description: Deprecated, please rename it to reputation_direction. Direction of
          the initial traffic for reputation to take effect.
        type: str
      reputation-direction6:
        choices:
        - source
        - destination
        description: Deprecated, please rename it to reputation_direction6. Direction
          of the initial traffic for IPv6 reputation to take effect.
        type: str
      reputation-minimum:
        description: Deprecated, please rename it to reputation_minimum. Minimum Reputation
          to take action.
        type: int
      reputation-minimum6:
        description: Deprecated, please rename it to reputation_minimum6. IPv6 Minimum
          Reputation to take action.
        type: int
      rsso:
        choices:
        - disable
        - enable
        description: Enable/disable RADIUS single sign-on
        type: str
      rtp-addr:
        description: (list or str) Deprecated, please rename it to rtp_addr. Address names
          if this is an RTP NAT policy.
        type: raw
      rtp-nat:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to rtp_nat. Enable Real Time Protocol
        type: str
      scan-botnet-connections:
        choices:
        - disable
        - block
        - monitor
        description: Deprecated, please rename it to scan_botnet_connections. Block or
          monitor connections to Botnet servers or disable Botnet ...
        type: str
      schedule:
        description: Schedule name.
        type: str
      schedule-timeout:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to schedule_timeout. Enable to force
          current sessions to end when the schedule object times out.
        type: str
      sctp-filter-profile:
        description: Deprecated, please rename it to sctp_filter_profile. Name of an existing
          SCTP filter profile.
        type: str
      send-deny-packet:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to send_deny_packet. Enable to send
          a reply when a session is denied or blocked by a firewall...
        type: str
      service:
        description: (list or str) Service and service group names.
        type: raw
      service-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to service_negate. When enabled service
          specifies what the service must NOT be.
        type: str
      session-ttl:
        description: (int or str) Deprecated, please rename it to session_ttl. Session
          TTL in seconds for sessions accepted by this policy.
        type: raw
      sgt:
        description: (list) No description.
        type: raw
      sgt-check:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to sgt_check. Enable/disable security
          group tags
        type: str
      spamfilter-profile:
        description: Deprecated, please rename it to spamfilter_profile. Name of an existing
          Spam filter profile.
        type: str
      src-vendor-mac:
        description: (list or str) Deprecated, please rename it to src_vendor_mac. Vendor
          MAC source ID.
        type: raw
      srcaddr:
        description: (list or str) Source address and address group names.
        type: raw
      srcaddr-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to srcaddr_negate. When enabled srcaddr
          specifies what the source address must NOT be.
        type: str
      srcaddr6:
        description: (list or str) Source IPv6 address name and address group names.
        type: raw
      srcaddr6-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to srcaddr6_negate. When enabled srcaddr6
          specifies what the source address must NOT be.
        type: str
      srcintf:
        description: (list or str) Incoming
        type: raw
      ssh-filter-profile:
        description: Deprecated, please rename it to ssh_filter_profile. Name of an existing
          SSH filter profile.
        type: str
      ssh-policy-redirect:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to ssh_policy_redirect. Redirect SSH
          traffic to matching transparent proxy policy.
        type: str
      ssl-mirror:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to ssl_mirror. Enable to copy decrypted
          SSL traffic to a FortiGate interface
        type: str
      ssl-mirror-intf:
        description: (list or str) Deprecated, please rename it to ssl_mirror_intf. SSL
          mirror interface name.
        type: raw
      ssl-ssh-profile:
        description: Deprecated, please rename it to ssl_ssh_profile. Name of an existing
          SSL SSH profile.
        type: str
      status:
        choices:
        - disable
        - enable
        description: Enable or disable this policy.
        type: str
      tags:
        description: Names of object-tags applied to this policy.
        type: str
      tcp-mss-receiver:
        description: Deprecated, please rename it to tcp_mss_receiver. Receiver TCP maximum
          segment size
        type: int
      tcp-mss-sender:
        description: Deprecated, please rename it to tcp_mss_sender. Sender TCP maximum
          segment size
        type: int
      tcp-session-without-syn:
        choices:
        - all
        - data-only
        - disable
        description: Deprecated, please rename it to tcp_session_without_syn. Enable/disable
          creation of TCP session without SYN flag.
        type: str
      tcp-timeout-pid:
        description: Deprecated, please rename it to tcp_timeout_pid. TCP timeout profile
          ID
        type: str
      timeout-send-rst:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to timeout_send_rst. Enable/disable
          sending RST packets when TCP sessions expire.
        type: str
      tos:
        description: ToS
        type: str
      tos-mask:
        description: Deprecated, please rename it to tos_mask. Non-zero bit positions
          are used for comparison while zero bit positions are ignored.
        type: str
      tos-negate:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to tos_negate. Enable negated TOS match.
        type: str
      traffic-shaper:
        description: Deprecated, please rename it to traffic_shaper. Traffic shaper.
        type: str
      traffic-shaper-reverse:
        description: Deprecated, please rename it to traffic_shaper_reverse. Reverse traffic
          shaper.
        type: str
      udp-timeout-pid:
        description: Deprecated, please rename it to udp_timeout_pid. UDP timeout profile
          ID
        type: str
      url-category:
        description: (list or str) Deprecated, please rename it to url_category. URL category
          ID list.
        type: raw
      users:
        description: (list or str) Names of individual users that can authenticate with
          this policy.
        type: raw
      utm-status:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to utm_status. Enable to add one or
          more security profiles
        type: str
      uuid:
        description: Universally Unique Identifier
        type: str
      videofilter-profile:
        description: Deprecated, please rename it to videofilter_profile. Name of an existing
          VideoFilter profile.
        type: str
      virtual-patch-profile:
        description: Deprecated, please rename it to virtual_patch_profile. Name of an
          existing virtual-patch profile.
        type: str
      vlan-cos-fwd:
        description: Deprecated, please rename it to vlan_cos_fwd. VLAN forward direction
          user priority
        type: int
      vlan-cos-rev:
        description: Deprecated, please rename it to vlan_cos_rev. VLAN reverse direction
          user priority
        type: int
      vlan-filter:
        description: Deprecated, please rename it to vlan_filter. Set VLAN filters.
        type: str
      voip-profile:
        description: Deprecated, please rename it to voip_profile. Name of an existing
          VoIP profile.
        type: str
      vpn_dst_node:
        description: Vpn_Dst_Node.
        elements: dict
        suboptions:
          host:
            description: Host.
            type: str
          seq:
            description: Seq.
            type: int
          subnet:
            description: Subnet.
            type: str
        type: list
      vpn_src_node:
        description: Vpn_Src_Node.
        elements: dict
        suboptions:
          host:
            description: Host.
            type: str
          seq:
            description: Seq.
            type: int
          subnet:
            description: Subnet.
            type: str
        type: list
      vpntunnel:
        description: Policy-based IPsec VPN
        type: str
      waf-profile:
        description: Deprecated, please rename it to waf_profile. Name of an existing
          Web application firewall profile.
        type: str
      wanopt:
        choices:
        - disable
        - enable
        description: Enable/disable WAN optimization.
        type: str
      wanopt-detection:
        choices:
        - active
        - passive
        - 'off'
        description: Deprecated, please rename it to wanopt_detection. WAN optimization
          auto-detection mode.
        type: str
      wanopt-passive-opt:
        choices:
        - default
        - transparent
        - non-transparent
        description: Deprecated, please rename it to wanopt_passive_opt. WAN optimization
          passive mode options.
        type: str
      wanopt-peer:
        description: Deprecated, please rename it to wanopt_peer. WAN optimization peer.
        type: str
      wanopt-profile:
        description: Deprecated, please rename it to wanopt_profile. WAN optimization
          profile.
        type: str
      wccp:
        choices:
        - disable
        - enable
        description: Enable/disable forwarding traffic matching this policy to a configured
          WCCP server.
        type: str
      webcache:
        choices:
        - disable
        - enable
        description: Enable/disable web cache.
        type: str
      webcache-https:
        choices:
        - disable
        - ssl-server
        - any
        - enable
        description: Deprecated, please rename it to webcache_https. Enable/disable web
          cache for HTTPS.
        type: str
      webfilter-profile:
        description: Deprecated, please rename it to webfilter_profile. Name of an existing
          Web filter profile.
        type: str
      webproxy-forward-server:
        description: Deprecated, please rename it to webproxy_forward_server. Webproxy
          forward server name.
        type: str
      webproxy-profile:
        description: Deprecated, please rename it to webproxy_profile. Webproxy profile
          name.
        type: str
      wsso:
        choices:
        - disable
        - enable
        description: Enable/disable WiFi Single Sign On
        type: str
      ztna-device-ownership:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to ztna_device_ownership. Enable/disable
          zero trust device ownership.
        type: str
      ztna-ems-tag:
        description: (list or str) Deprecated, please rename it to ztna_ems_tag. Source
          ztna-ems-tag names.
        type: raw
      ztna-ems-tag-secondary:
        description: (list) Deprecated, please rename it to ztna_ems_tag_secondary.
        type: raw
      ztna-geo-tag:
        description: (list or str) Deprecated, please rename it to ztna_geo_tag. Source
          ztna-geo-tag names.
        type: raw
      ztna-policy-redirect:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to ztna_policy_redirect. Redirect ZTNA
          traffic to matching Access-Proxy proxy-policy.
        type: str
      ztna-status:
        choices:
        - disable
        - enable
        description: Deprecated, please rename it to ztna_status. Enable/disable zero
          trust access.
        type: str
      ztna-tags-match-logic:
        choices:
        - or
        - and
        description: Deprecated, please rename it to ztna_tags_match_logic. ZTNA tag matching
          logic.
        type: str
    type: dict

workspace_locking_adom:
    description: The adom to lock for FortiManager running in workspace mode, the value
      can be global and others including root.
    type: str

forticloud_access_token:
    description: Authenticate Ansible client with forticloud API access token.
    type: str

workspace_locking_timeout:
    default: 300
    description: The maximum time in seconds to wait for other user to release the workspace
      lock.
    type: int

Outputs

meta:
  contains:
    request_url:
      description: The full url requested.
      returned: always
      sample: /sys/login/user
      type: str
    response_code:
      description: The status of api request.
      returned: always
      sample: 0
      type: int
    response_data:
      description: The api response.
      returned: always
      type: list
    response_message:
      description: The descriptive message of the api response.
      returned: always
      sample: OK.
      type: str
    system_information:
      description: The information of the target system.
      returned: always
      type: dict
  description: The result of the request.
  returned: always
  type: dict
rc:
  description: The status the request.
  returned: always
  sample: 0
  type: int
version_check_warning:
  description: Warning if the parameters used in the playbook are not supported by
    the current FortiManager version.
  returned: complex
  type: list