security_profile_group - Profile Group Resource
+++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
Profile Group Resource.
Use API "/resource-api/v2/security/profile-group/{direction}".
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.17.0
Parameters
----------
.. raw:: html
- state The state of the module. "present" means create or update the resource, "absent" means delete the resource.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
- antivirus_profile type: dict
- status type: strchoices: ['disable', 'enable']
- profile type: dict
- primary_key type: str
- datasource type: str
- web_filter_profile type: dict
- status type: strchoices: ['disable', 'enable']
- profile type: dict
- primary_key type: str
- datasource type: str
- video_filter_profile type: dict
- status type: strchoices: ['disable', 'enable']
- profile type: dict
- primary_key type: str
- datasource type: str
- dns_filter_profile type: dict
- status type: strchoices: ['disable', 'enable']
- profile type: dict
- primary_key type: str
- datasource type: str
- application_control_profile type: dict
- status type: strchoices: ['disable', 'enable']
- profile type: dict
- primary_key type: str
- datasource type: str
- file_filter_profile type: dict
- status type: strchoices: ['disable', 'enable']
- profile type: dict
- primary_key type: str
- datasource type: str
- dlp_filter_profile type: dict
- status type: strchoices: ['disable', 'enable']
- profile type: dict
- primary_key type: str
- datasource type: str
- intrusion_prevention_profile type: dict
- status type: strchoices: ['disable', 'enable']
- profile type: dict
- primary_key type: str
- datasource type: str
- ssl_ssh_profile type: dict
- status type: str
- profile type: dict
- primary_key type: str
- datasource type: str
Examples
-------------
.. code-block:: yaml
- name: Security profile group
hosts: fortisase
gather_facts: false
vars:
direction: "outbound-profiles" # outbound-profiles or internal-profiles
profile_group: "profile_ansible"
tasks:
- name: Create/Update security profile group
fortinet.fortisase.security_profile_group:
params:
direction: "{{ direction }}"
primary_key: "{{ profile_group }}"
- name: Delete security profile group
fortinet.fortisase.security_profile_group:
state: absent
params:
direction: "{{ direction }}"
primary_key: "{{ profile_group }}"
Return Values
-------------
.. raw:: html
- http_code type: intreturned: always
- response type: rawreturned: always
Authors
-------
- Xinwei Du (@dux-fortinet)