Skip to content

Commit

Permalink
feat: Added app protection profile resource
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Oct 15, 2023
1 parent c912615 commit 2977f46
Show file tree
Hide file tree
Showing 3 changed files with 447 additions and 25 deletions.
48 changes: 27 additions & 21 deletions examples/main.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
- name: App Connector Group
hosts: localhost

# vars:
# zpa_cloud:
# client_id: "{{ lookup('env', 'ZPA_CLIENT_ID') }}"
# client_secret: "{{ lookup('env', 'ZPA_CLIENT_SECRET') }}"
# customer_id: "{{ lookup('env', 'ZPA_CUSTOMER_ID') }}"
# cloud: "{{ lookup('env', 'ZPA_CLOUD') | default(omit) }}"
vars:
zpa_cloud:
client_id: "{{ lookup('env', 'ZPA_CLIENT_ID') }}"
client_secret: "{{ lookup('env', 'ZPA_CLIENT_SECRET') }}"
customer_id: "{{ lookup('env', 'ZPA_CUSTOMER_ID') }}"
cloud: "{{ lookup('env', 'ZPA_CLOUD') | default(omit) }}"

tasks:
- name: Ensure App Connector Group is absent (leftover)
zscaler.zpacloud.zpa_app_connector_groups:
state: absent
name: "Example"
description: "Example"
country_code: CA
dns_query_type: IPV4
enabled: true
latitude: "49.1041779"
longitude: "-122.6603519"
location: Langley City, BC, Canada
upgrade_day: SUNDAY
override_version_profile: true
upgrade_time_in_secs: "66600"
version_profile_id: "2"
- name: Create a App Protection Security Profile
zscaler.zpacloud.zpa_app_protection_security_profile:
state: present
name: "Example_App_Protection_Security_Profile"
description: "Example_App_Protection_Security_Profile"
paranoia_level: "1"
incarnation_number: "6"
predef_controls_version: "OWASP_CRS/3.3.0"
# global_control_actions:
# - "PREDEFINED:NONE"
# - "CUSTOM:NONE"
# - "WEBSOCKET:NONE"
# - "THREATLABZ:NONE"
# - "OVERRIDE_ACTION:NONE"
-controls_info:
- control_type: "PREDEFINED"
count": "207"
- control_type": "THREATLABZ"
count": "23"
- control_type: "WEBSOCKET_PREDEFINED"
count": "11"
Loading

0 comments on commit 2977f46

Please sign in to comment.