Skip to content

Commit

Permalink
fix: Fixed zia_admin_users example
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Mar 27, 2024
1 parent 63f1ea0 commit 5332f04
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
12 changes: 8 additions & 4 deletions docs/resources/zia_admin_users.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ The **zia_admin_users** resource allows the creation and management of ZIA admin
## Example Usage - Organization Scope

```hcl
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_admin_users" "john_smith" {
login_name = "john.smith@acme.com"
user_name = "John Smith"
email = "john.smith@acme.com"
is_password_login_allowed = true
password = "AeQ9E5w8B$"
password = "<YOURPASSWORDHERE>"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand All @@ -37,12 +38,13 @@ data "zia_admin_roles" "super_admin" {
## Example Usage - Department Scope

```hcl
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_admin_users" "john_smith" {
login_name = "john.smith@acme.com"
user_name = "John Smith"
email = "john.smith@acme.com"
is_password_login_allowed = true
password = "AeQ9E5w8B$"
password = "<YOURPASSWORDHERE>"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand All @@ -68,12 +70,13 @@ data "zia_department_management" "engineering" {
## Example Usage - Location Scope

```hcl
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_admin_users" "john_smith" {
login_name = "john.smith@acme.com"
user_name = "John Smith"
email = "john.smith@acme.com"
is_password_login_allowed = true
password = "AeQ9E5w8B$"
password = "<YOURPASSWORDHERE>"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand All @@ -99,12 +102,13 @@ data "zia_location_management" "au_sydney_branch01" {
## Example Usage - Location Group Scope

```hcl
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_admin_users" "john_smith" {
login_name = "john.smith@acme.com"
user_name = "John Smith"
email = "john.smith@acme.com"
is_password_login_allowed = true
password = "AeQ9E5w8B$"
password = "<YOURPASSWORDHERE>"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand Down
3 changes: 2 additions & 1 deletion docs/resources/zia_user_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ data "zia_department_management" "engineering" {
}
# ZIA Local User Account
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_user_management" "john_ashcroft" {
name = "John Ashcroft"
email = "john.ashcroft@acme.com"
password = "P@ssw0rd123*"
password = "<YOURPASSWORDHERE>"
auth_methods = ["BASIC"]
groups {
id = data.zia_group_management.normal_internet.id
Expand Down
3 changes: 2 additions & 1 deletion examples/zia_admin_user/admin_user_department_scope.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_admin_users" "john_smith" {
login_name = "john.smith@acme.com"
username = "John Smith"
email = "john.smith@acme.com"
is_password_login_allowed = true
password = "AeQ9E5w8B$"
password = "<YOURPASSWORDHERE>"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand Down
3 changes: 2 additions & 1 deletion examples/zia_admin_user/admin_user_location_group_scope.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_admin_users" "john_smith" {
login_name = "john.smith@acme.com"
username = "John Smith"
email = "john.smith@acme.com"
is_password_login_allowed = true
password = "AeQ9E5w8B$"
password = "<YOURPASSWORDHERE>"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand Down
3 changes: 2 additions & 1 deletion examples/zia_admin_user/admin_user_location_scope.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_admin_users" "john_smith" {
login_name = "john.smith@acme.com"
username = "John Smith"
email = "john.smith@acme.com"
is_password_login_allowed = true
password = "AeQ9E5w8B$"
password = "<YOURPASSWORDHERE>"
is_security_report_comm_enabled = true
is_service_update_comm_enabled = true
is_product_update_comm_enabled = true
Expand Down
3 changes: 2 additions & 1 deletion examples/zia_admin_user/admin_user_organization_scope.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_admin_users" "john_smith" {
login_name = "john.smith@acme.com"
username = "John Smith"
email = "john.smith@acme.com"
is_password_login_allowed = true
password = "AeQ9E5w8B$"
password = "<YOURPASSWORDHERE>"
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
@@ -1,7 +1,8 @@
######### PASSWORDS IN THIS FILE ARE FAKE AND NOT USED IN PRODUCTION SYSTEMS #########
resource "zia_user_management" "john_ashcroft" {
name = "John Ashcroft"
email = "john.ashcroft@acme.com"
password = "P@ssw0rd123*"
password = "<YOURPASSWORDHERE>"
auth_methods = ["BASIC"]
groups {
id = [ data.zia_group_management.normal_internet.id,
Expand Down

0 comments on commit 5332f04

Please sign in to comment.