security_profile_group_clone - Profile Group Resource

Added in version 1.1.0.

Synopsis

Profile Group Resource.

Use API “/resource-api/v2/security/profile-group/{direction}/{based_on}/clone”.

Requirements

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

  • ansible>=2.17.0

Parameters

  • 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
    • based_on [Required]type: str
    • direction [Required]type: str
    • primary_key type: str

Examples

# Note: This module is NOT idempotent, executing it multiple times will result in an error.
- name: Security profile group clone
  hosts: fortisase
  gather_facts: false
  vars:
    source_profile_group: "profile_group1"
    target_profile_group: "profile_group2"
  tasks:
    - name: Clone security profile group
      fortinet.fortisase.security_profile_group_clone:
        params:
          direction: "outbound-profiles" # outbound-profiles or internal-profiles
          based_on: "{{ source_profile_group }}"
          primary_key: "{{ target_profile_group }}"

Return Values

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

Authors

  • Xinwei Du (@dux-fortinet)