security_file_filter_profile - File Filter Profile Resource

Added in version 1.0.0.

Synopsis

File Filter Profile Resource.

Use API “/resource-api/v2/security/file-filter-profile/{direction}/{primaryKey}”.

Requirements

The below requirements are needed on the host that executes this module.

  • ansible>=2.17.0

Parameters

  • state The state of the module. "present" means update the resource. This resource can't be deleted, and does not support "absent" state.type: strchoices: ['present', 'absent']default: present
  • force_behavior Specify this option to force the method to use to interact with the resource.type: strchoices: ['none', 'read', 'create', 'update', 'delete']default: none
  • bypass_validation Bypass validation of the module.type: booldefault: False
  • params The parameters of the module.[Required]type: dict
    • direction [Required]type: str
    • primary_key [Required]type: str
    • block type: listelements: dict
      • primary_key type: str
      • datasource type: str
    • monitor type: listelements: dict
      • datasource type: str
    • block_password_protected_files type: bool

Examples

- name: Update security file filter profile
  hosts: fortisase
  gather_facts: false
  vars:
    direction: "outbound-profiles" # outbound-profiles or internal-profiles
    profile_group: "profile_ansible"
  tasks:
    - name: Ensure security group exists, otherwise create it
      fortinet.fortisase.security_profile_group:
        params:
          direction: "{{ direction }}"
          primary_key: "{{ profile_group }}"
    - name: Update security file filter profile
      fortinet.fortisase.security_file_filter_profile:
        params:
          direction: "{{ direction }}"
          primary_key: "{{ profile_group }}"
          block: []
          monitor: []

Return Values

  • http_code type: intreturned: always
  • response type: rawreturned: always

Authors

  • Xinwei Du (@dux-fortinet)