endpoint_ztna_rules - ZTNA Rule Resource ++++++++++++++++++++++++++++++++++++++++ .. versionadded:: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- ZTNA Rule Resource. Use API "/resource-api/v2/endpoint/ztna-rules". Requirements ------------ The below requirements are needed on the host that executes this module. - ansible>=2.17.0 Parameters ---------- .. raw:: html Examples ------------- .. code-block:: yaml - name: Ztna rule hosts: fortisase gather_facts: false vars: policy: "policy1" tag: "tag_example" rule_name: "rule_example" tasks: - name: Create a new endpoint profile, do nothing if the endpoint profile already exists fortinet.fortisase.endpoint_policies: state: present params: primary_key: "{{ policy }}" enabled: true - name: Create/Update ztna tag, do nothing if the ztna tag already exists fortinet.fortisase.endpoint_ztna_tags: state: present params: primary_key: "{{ tag }}" name: "{{ tag }}" - name: Create/Update ztna rule fortinet.fortisase.endpoint_ztna_rules: state: present params: primary_key: "{{ rule_name }}" status: "enable" # "enable" or "disable" tag: primary_key: "{{ tag }}" datasource: "endpoint/ztna-tags" comments: "example comment" rules: - os: "windows" # "windows", "macos", "linux", "ios", "android" type: "anti-virus" content: "AV Software is installed and running" - name: Delete ztna rule fortinet.fortisase.endpoint_ztna_rules: state: absent params: primary_key: "{{ rule_name }}" Return Values ------------- .. raw:: html Authors ------- - Xinwei Du (@dux-fortinet)