-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix firewall filtering network service & service group resource and d…
…ata source
- Loading branch information
1 parent
b0aa00f
commit 38c269c
Showing
8 changed files
with
179 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,50 @@ | ||
terraform { | ||
required_providers { | ||
zia = { | ||
version = "1.0.0" | ||
source = "zscaler.com/zia/zia" | ||
} | ||
required_providers { | ||
zia = { | ||
version = "1.0.0" | ||
source = "zscaler.com/zia/zia" | ||
} | ||
} | ||
} | ||
|
||
provider "zia" {} | ||
|
||
/* | ||
resource "zia_firewall_filtering_network_service" "example"{ | ||
name = "example" | ||
description = "example" | ||
src_tcp_ports { | ||
start = 123 | ||
end = 125 | ||
} | ||
dest_tcp_ports { | ||
start = 123 | ||
end = 125 | ||
} | ||
src_udp_ports { | ||
start = 123 | ||
end = 125 | ||
start = 126 | ||
end = 127 | ||
} | ||
dest_udp_ports { | ||
start = 123 | ||
end = 125 | ||
start = 126 | ||
end = 127 | ||
} | ||
type = "CUSTOM" | ||
resource "zia_firewall_filtering_network_service" "example" { | ||
name = "example" | ||
description = "example" | ||
src_tcp_ports { | ||
start = 123 | ||
end = 125 | ||
} | ||
dest_tcp_ports { | ||
start = 123 | ||
end = 125 | ||
} | ||
src_udp_ports { | ||
start = 123 | ||
end = 125 | ||
} | ||
src_udp_ports { | ||
start = 126 | ||
end = 127 | ||
} | ||
|
||
dest_udp_ports { | ||
start = 123 | ||
end = 125 | ||
} | ||
dest_udp_ports { | ||
start = 126 | ||
end = 127 | ||
} | ||
type = "CUSTOM" | ||
} | ||
*/ | ||
|
||
|
||
data "zia_firewall_filtering_network_service" "example" { | ||
name = "ZSCALER_PROXY_NW_SERVICES" | ||
name = zia_firewall_filtering_network_service.example.name | ||
} | ||
|
||
output "zia_firewall_filtering_network_service" { | ||
value = data.zia_firewall_filtering_network_service.example | ||
value = data.zia_firewall_filtering_network_service.example | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.