security_video_filter_profile - Video Filter Profile Resource

Added in version 1.0.0.

Synopsis

Video Filter Profile Resource.

Use API “/resource-api/v2/security/video-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
    • fortiguard_filters type: listelements: dict
      • action type: strchoices: ['allow', 'block', 'default', 'monitor', 'warning']
      • category type: dict
        • primary_key type: str
        • datasource type: str
    • default_action type: str
    • channels type: listelements: dict
      • action type: strchoices: ['allow', 'block', 'monitor']
      • name type: str
      • channel_id type: str

Examples

- name: Update security video 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 video filter profile
      fortinet.fortisase.security_video_filter_profile:
        params:
          direction: "{{ direction }}"
          primary_key: "{{ profile_group }}"
          default_action: "monitor"
          channels: []
          fortiguard_filters:
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "Not Rated"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "Business"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "Entertainment"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "Games"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "Knowledge"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "Lifestyle"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "Music"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "News"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "People"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "Society"
            - action: "default"
              category:
                datasource: "security/video-filter-fortiguard-categories"
                primary_key: "Sports"

Return Values

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

Authors

  • Xinwei Du (@dux-fortinet)