From 2d4ca72c4b22bc5fd4581d51de5d5119eb7a6033 Mon Sep 17 00:00:00 2001 From: Marco Santonastaso Date: Mon, 1 Jul 2019 13:00:37 +0100 Subject: [PATCH] examples implemented for network zone --- examples/README.md | 1 + examples/okta_network_zone/README.md | 5 +++++ examples/okta_network_zone/basic.tf | 12 ++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 examples/okta_network_zone/README.md create mode 100644 examples/okta_network_zone/basic.tf diff --git a/examples/README.md b/examples/README.md index c77b3a8b..630cf706 100644 --- a/examples/README.md +++ b/examples/README.md @@ -32,6 +32,7 @@ Anything that lies underneath a resource directory is config we use as fixtures * [okta_idp](./okta_idp) Supports the management of Okta OIDC Identity Providers. * [okta_idp_social](./okta_idp_social) Supports the management of Okta Social Identity Providers. Such as Google, Facebook, Microsoft, and LinkedIn. * [okta_idp_saml](./okta_idp_saml) Supports the management of Okta SAML Identity Providers. +* [okta_network_zone](./okta_network_zone) Supports the management of Okta Network Zones for whitelisting IPs or countries dynamically. * [okta_policy_signon](./okta_policy_signon) Supports the management of sign on policies. * [okta_policy_rule_signon](./okta_policy_rule_signon) Supports the management of sign on policy rules. * [okta_policy_mfa](./okta_policy_mfa) Supports the management of MFA policies. diff --git a/examples/okta_network_zone/README.md b/examples/okta_network_zone/README.md new file mode 100644 index 00000000..5a2917d0 --- /dev/null +++ b/examples/okta_network_zone/README.md @@ -0,0 +1,5 @@ +# okta_network_zone + +Represents an Okta Network Zone. [See Okta documentation for more details](https://developer.okta.com/docs/reference/api/zones/#zone-model). + +* Example of a simple network zone [can be found here](./basic.tf) diff --git a/examples/okta_network_zone/basic.tf b/examples/okta_network_zone/basic.tf new file mode 100644 index 00000000..bf21bc3c --- /dev/null +++ b/examples/okta_network_zone/basic.tf @@ -0,0 +1,12 @@ +resource "okta_network_zone" "ip_network_zone_example" { + name = "IP Network Zone Example" + type = "IP" + gateways = [ "1.2.3.4/24", "2.3.4.5-2.3.4.15" ] + proxies = [ "2.2.3.4/24", "3.3.4.5-3.3.4.15" ] +} + +resource "okta_network_zone" "dynamic_network_zone_example" { + name = "Dynamic Network Zone Example" + type = "DYNAMIC" + dynamic_locations = [ "US", "AF-BGL" ] +} \ No newline at end of file