Skip to content

Commit

Permalink
(Doc): Updated location management documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Mar 28, 2024
1 parent 6f6a430 commit 9534c2d
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/resources/zia_location_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "zia_location_management" "usa_sjc37"{
ips_control = true
ip_addresses = [ zia_traffic_forwarding_static_ip.usa_sjc37.ip_address ]
vpn_credentials {
id = zia_traffic_forwarding_vpn_credentials.usa_sjc37.vpn_credental_id
id = zia_traffic_forwarding_vpn_credentials.usa_sjc37.id
type = zia_traffic_forwarding_vpn_credentials.usa_sjc37.type
}
depends_on = [zia_traffic_forwarding_vpn_credentials.usa_sjc37, zia_traffic_forwarding_static_ip.usa_sjc37 ]
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/zia_traffic_forwarding_vpn_credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The **zia_traffic_forwarding_vpn_credentials** creates and manages VPN credentia
## Example Usage

```hcl
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
# ZIA Traffic Forwarding - VPN Credentials (UFQDN)
resource "zia_traffic_forwarding_vpn_credentials" "example"{
type = "UFQDN"
Expand All @@ -29,6 +30,7 @@ resource "zia_traffic_forwarding_vpn_credentials" "example"{

```hcl
# ZIA Traffic Forwarding - VPN Credentials (IP)
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_traffic_forwarding_vpn_credentials" "example"{
type = "IP"
ip_address = zia_traffic_forwarding_static_ip.example.ip_address
Expand Down
2 changes: 1 addition & 1 deletion examples/zia_admin_user/admin_user_department_scope.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "zia_admin_users" "john_smith" {
username = "John Smith"
email = "[email protected]"
is_password_login_allowed = true
password = "<YOURPASSWORDHERE>"
password = "********************"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand Down
2 changes: 1 addition & 1 deletion examples/zia_admin_user/admin_user_location_group_scope.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "zia_admin_users" "john_smith" {
username = "John Smith"
email = "[email protected]"
is_password_login_allowed = true
password = "<YOURPASSWORDHERE>"
password = "********************"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand Down
2 changes: 1 addition & 1 deletion examples/zia_admin_user/admin_user_location_scope.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "zia_admin_users" "john_smith" {
username = "John Smith"
email = "[email protected]"
is_password_login_allowed = true
password = "<YOURPASSWORDHERE>"
password = "********************"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand Down
2 changes: 1 addition & 1 deletion examples/zia_admin_user/admin_user_organization_scope.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "zia_admin_users" "john_smith" {
username = "John Smith"
email = "[email protected]"
is_password_login_allowed = true
password = "<YOURPASSWORDHERE>"
password = "********************"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ resource "zia_location_management" "usa_sjc37"{
ip_addresses = [ zia_traffic_forwarding_static_ip.usa_sjc37.ip_address ]
depends_on = [ zia_traffic_forwarding_static_ip.usa_sjc37, zia_traffic_forwarding_vpn_credentials.usa_sjc37 ]
vpn_credentials {
id = zia_traffic_forwarding_vpn_credentials.usa_sjc37.vpn_credental_id
id = zia_traffic_forwarding_vpn_credentials.usa_sjc37.id
type = zia_traffic_forwarding_vpn_credentials.usa_sjc37.type
ip_address = zia_traffic_forwarding_static_ip.usa_sjc37.ip_address
}
}

######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_traffic_forwarding_vpn_credentials" "usa_sjc37"{
type = "IP"
ip_address = zia_traffic_forwarding_static_ip.usa_sjc37.ip_address
depends_on = [ zia_traffic_forwarding_static_ip.usa_sjc37 ]
comments = "Created via Terraform"
pre_shared_key = "newPassword123!"
pre_shared_key = "******************"
}

resource "zia_traffic_forwarding_static_ip" "usa_sjc37"{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ resource "zia_location_management" "usa_sjc37"{
ip_addresses = [ zia_traffic_forwarding_static_ip.usa_sjc37.ip_address ]
depends_on = [ zia_traffic_forwarding_static_ip.usa_sjc37, zia_traffic_forwarding_vpn_credentials.usa_sjc37 ]
vpn_credentials {
id = zia_traffic_forwarding_vpn_credentials.usa_sjc37.vpn_credental_id
id = zia_traffic_forwarding_vpn_credentials.usa_sjc37.id
type = zia_traffic_forwarding_vpn_credentials.usa_sjc37.type
}
}

######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_traffic_forwarding_vpn_credentials" "usa_sjc37"{
type = "UFQDN"
fqdn = "[email protected]"
comments = "USA - San Jose IPSec Tunnel"
pre_shared_key = "P@ass0rd123!"
pre_shared_key = "*************"
}

resource "zia_traffic_forwarding_static_ip" "usa_sjc37"{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_traffic_forwarding_vpn_credentials" "example"{
type = "IP"
ip_address = "1.1.1.1"
comments = "Created via Terraform"
pre_shared_key = "newPassword123!"
pre_shared_key = "***************"
}

output "zia_traffic_forwarding_vpn_credentials"{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_traffic_forwarding_vpn_credentials" "example"{
type = "UFQDN"
fqdn = "[email protected]"
comments = "Created via Terraform"
pre_shared_key = "newPassword123!"
pre_shared_key = "***************"
}

output "zia_traffic_forwarding_vpn_credentials"{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
resource "zia_user_management" "john_ashcroft" {
name = "John Ashcroft"
email = "[email protected]"
password = "<YOURPASSWORDHERE>"
password = "********************"
auth_methods = ["BASIC"]
groups {
id = [ data.zia_group_management.normal_internet.id,
Expand Down

0 comments on commit 9534c2d

Please sign in to comment.