Skip to content

Commit

Permalink
Fix: Syntax Errors in Create App Security Rule Ex (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel-Roberts authored Oct 30, 2023
1 parent 97c2d8b commit 5069b95
Showing 1 changed file with 19 additions and 17 deletions.
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

0 comments on commit 5069b95

Please sign in to comment.