security_dlp_profile - DLP Profile Resource
Added in version 1.0.0.
Synopsis
DLP Profile Resource.
Use API “/resource-api/v2/security/dlp-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
- dlp_rules type: listelements: dict
- primary_key type: str
- datasource_type type: strchoices: ['fingerprint', 'mpip-label', 'none', 'sensors']
- severity type: strchoices: ['critical', 'high', 'informational', 'low', 'medium']
- action type: strchoices: ['allow', 'block', 'monitor']
- dlp_rule_type type: strchoices: ['file', 'message']
- file_type type: strchoices: ['all', 'specify']
- protocols type: listelements: str
- dlp_sensors type: listelements: dict
- primary_key type: str
- datasource type: str
- sensitivity_label type: dict
- primary_key type: str
- datasource type: str
- sensitivities type: listelements: str
- dlp_file_pattern type: dict
- primary_key type: str
- datasource type: str
Examples
- name: Update security dlp 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 dlp profile
fortinet.fortisase.security_dlp_profile:
params:
direction: "{{ direction }}"
primary_key: "{{ profile_group }}"
dlp_rules: []
Return Values
- http_code type: intreturned: always
- response type: rawreturned: always