Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
examples implemented for network zone
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Santonastaso committed Jul 1, 2019
1 parent d8be2a9 commit 2d4ca72
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/README.md
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions 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)
12 changes: 12 additions & 0 deletions 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" ]
}

0 comments on commit 2d4ca72

Please sign in to comment.