willguibr.zpacloud_ansible.zpa_application_segment (2.9.0) — module

Create an application segment

| "added in version" 1.0.0 of willguibr.zpacloud_ansible"

Authors: William Guilherme (@willguibr)

Install collection

Install with ansible-galaxy collection install willguibr.zpacloud_ansible:==2.9.0


Add to requirements.yml

  collections:
    - name: willguibr.zpacloud_ansible
      version: 2.9.0

Description

This module will create, retrieve, update or delete a specific application segment

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: App segment
  hosts: localhost
  tasks:
    - name: Create an app segment
      willguibr.zpacloud_ansible.zpa_application_segment:
        state: absent
        name: Example Application
        description: Example Application Test
        enabled: true
        health_reporting: ON_ACCESS
        bypass_type: NEVER
        is_cname_enabled: true
        tcp_port_range:
          - from: "80"
            to: "80"
        domain_names:
          - crm.example.com
        segment_group_id: "216196257331291896"
        server_groups:
          #- "216196257331291969"
      register: app_segment
    - name: created/updated app segment
      debug:
        msg: "{{ app_segment }}"

Inputs

    
id:
    description: Unique ID.
    type: str

name:
    description: Name of the application.
    required: true
    type: str

enabled:
    description: Whether this application is enabled or not.
    required: false
    type: bool

modifiedby:
    description: modified by.
    required: false
    type: str

bypass_type:
    choices:
    - ALWAYS
    - NEVER
    - ON_NET
    description: Indicates whether users can bypass ZPA to access applications.
    required: false
    type: str

description:
    description: Description of the application.
    required: false
    type: str

ip_anchored:
    description: ip_anchored
    required: false
    type: bool

config_space:
    choices:
    - DEFAULT
    - SIEM
    default: DEFAULT
    description: config space.
    required: false
    type: str

domain_names:
    description: List of domains and IPs.
    elements: str
    required: true
    type: list

log_features:
    choices:
    - skip_discovery
    - full_wildcard
    description: log features.
    required: false
    type: str

creation_time:
    description: creation_time
    required: false
    type: str

modified_time:
    description: modified_time
    required: false
    type: str

server_groups:
    description: List of the server group IDs.
    elements: str
    required: true
    type: list

double_encrypt:
    description: Whether Double Encryption is enabled or disabled for the app.
    required: false
    type: bool

tcp_port_range:
    description: tcp port range
    elements: dict
    required: false
    type: list

udp_port_range:
    description: udp port range
    elements: dict
    required: false
    type: list

default_max_age:
    default: ''
    description: default_max_age
    required: false
    type: str

tcp_port_ranges:
    description: TCP port ranges used to access the app.
    elements: str
    required: false
    type: list

udp_port_ranges:
    description: UDP port ranges used to access the app.
    elements: str
    required: false
    type: list

health_reporting:
    choices:
    - NONE
    - ON_ACCESS
    - CONTINUOUS
    default: NONE
    description: 'Whether health reporting for the app is Continuous or On Access. Supported
      values: NONE, ON_ACCESS, CONTINUOUS.'
    required: false
    type: str

icmp_access_type:
    choices:
    - PING_TRACEROUTING
    - PING
    - NONE
    default: NONE
    description: icmp access type.
    required: false
    type: str

is_cname_enabled:
    description: Indicates if the Zscaler Client Connector (formerly Zscaler App or Z
      App) receives CNAME DNS records from the connectors.
    required: false
    type: bool

segment_group_id:
    description: segment group id.
    required: true
    type: str

health_check_type:
    description: health check type.
    type: str

segment_group_name:
    description: segment group name.
    required: false
    type: str

default_idle_timeout:
    default: ''
    description: default idle timeout.
    required: false
    type: str

passive_health_enabled:
    description: passive health enabled.
    required: false
    type: bool