endpoint_policies_clone - Endpoint Policy Resource

Added in version 1.1.0.

Synopsis

Endpoint Policy Resource.

Use API “/resource-api/v2/endpoint/policies/{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
    • primary_key type: str
    • enabled type: bool
    • skip_off_net_profile_creation_on_edit type: bool

Examples

# Note: This module is NOT idempotent, executing it multiple times will result in an error.
- name: Endpoint policies clone
  hosts: fortisase
  gather_facts: false
  vars:
    source_policy: "policy1"
    target_policy: "policy2"
  tasks:
    - name: Clone endpoint policies
      fortinet.fortisase.endpoint_policies_clone:
        params:
          based_on: "{{ source_policy }}"
          primary_key: "{{ target_policy }}"
          enabled: true

Return Values

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

Authors

  • Xinwei Du (@dux-fortinet)