Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Syntax Errors in Create App Security Rule Example #394

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 19 additions & 17 deletions plugins/modules/ntnx_security_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,45 +879,47 @@
- name: create app security rule
ntnx_security_rules:
name: test_app_rule
allow_ipv6_traffic: true
policy_hitlog: true
app_rule:
policy_mode: MONITOR
target_group:
categories:
apptype: Apache_Spark
default_internal_policy: DENY_ALL
inbound:
inbounds:
- categories:
AppFamily:
- Databases
- DevOps
icmp:
- code: 1
type: 1
protocol:
icmp:
- code: 1
type: 1
- categories:
AppFamily:
- Databases
- DevOps
tcp:
- start_port: 22
end_port: 80
protocol:
tcp:
- start_port: 22
end_port: 80
- categories:
AppFamily:
- Databases
- DevOps
udp:
- start_port: 82
end_port: 8080
protocol:
udp:
- start_port: 82
end_port: 8080
description: test description
- ip_subnet:
ip: 192.168.1.0
prefix_length: 24
ip: 192.168.1.1
description: test description
protocol: ALL
outbound:
outbounds:
- categories:
AppFamily:
- Databases
policy_mode: MONITOR
allow_ipv6_traffic: true
policy_hitlog:: true
register: result
- name: update app security rule with outbound list
ntnx_security_rules:
Expand Down