1. Packages
  2. Okta
  3. API Docs
  4. network
  5. Zone
Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi

okta.network.Zone

Explore with Pulumi AI

okta logo
Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi

    Creates an Okta Network Zone.

    This resource allows you to create and configure an Okta Network Zone.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Okta.Network.Zone("example", new()
        {
            Gateways = new[]
            {
                "1.2.3.4/24",
                "2.3.4.5-2.3.4.15",
            },
            Proxies = new[]
            {
                "2.2.3.4/24",
                "3.3.4.5-3.3.4.15",
            },
            Type = "IP",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewZone(ctx, "example", &network.ZoneArgs{
    			Gateways: pulumi.StringArray{
    				pulumi.String("1.2.3.4/24"),
    				pulumi.String("2.3.4.5-2.3.4.15"),
    			},
    			Proxies: pulumi.StringArray{
    				pulumi.String("2.2.3.4/24"),
    				pulumi.String("3.3.4.5-3.3.4.15"),
    			},
    			Type: pulumi.String("IP"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.network.Zone;
    import com.pulumi.okta.network.ZoneArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Zone("example", ZoneArgs.builder()        
                .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")
                .type("IP")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_okta as okta
    
    example = okta.network.Zone("example",
        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",
        ],
        type="IP")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const example = new okta.network.Zone("example", {
        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",
        ],
        type: "IP",
    });
    
    resources:
      example:
        type: okta:network:Zone
        properties:
          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
          type: IP
    

    Dynamic Tor Blocker

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Okta = Pulumi.Okta;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Okta.Network.Zone("example", new()
        {
            DynamicProxyType = "TorAnonymizer",
            Type = "DYNAMIC",
            Usage = "BLOCKLIST",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewZone(ctx, "example", &network.ZoneArgs{
    			DynamicProxyType: pulumi.String("TorAnonymizer"),
    			Type:             pulumi.String("DYNAMIC"),
    			Usage:            pulumi.String("BLOCKLIST"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.okta.network.Zone;
    import com.pulumi.okta.network.ZoneArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Zone("example", ZoneArgs.builder()        
                .dynamicProxyType("TorAnonymizer")
                .type("DYNAMIC")
                .usage("BLOCKLIST")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_okta as okta
    
    example = okta.network.Zone("example",
        dynamic_proxy_type="TorAnonymizer",
        type="DYNAMIC",
        usage="BLOCKLIST")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as okta from "@pulumi/okta";
    
    const example = new okta.network.Zone("example", {
        dynamicProxyType: "TorAnonymizer",
        type: "DYNAMIC",
        usage: "BLOCKLIST",
    });
    
    resources:
      example:
        type: okta:network:Zone
        properties:
          dynamicProxyType: TorAnonymizer
          type: DYNAMIC
          usage: BLOCKLIST
    

    Create Zone Resource

    new Zone(name: string, args: ZoneArgs, opts?: CustomResourceOptions);
    @overload
    def Zone(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             asns: Optional[Sequence[str]] = None,
             dynamic_locations: Optional[Sequence[str]] = None,
             dynamic_proxy_type: Optional[str] = None,
             gateways: Optional[Sequence[str]] = None,
             name: Optional[str] = None,
             proxies: Optional[Sequence[str]] = None,
             status: Optional[str] = None,
             type: Optional[str] = None,
             usage: Optional[str] = None)
    @overload
    def Zone(resource_name: str,
             args: ZoneArgs,
             opts: Optional[ResourceOptions] = None)
    func NewZone(ctx *Context, name string, args ZoneArgs, opts ...ResourceOption) (*Zone, error)
    public Zone(string name, ZoneArgs args, CustomResourceOptions? opts = null)
    public Zone(String name, ZoneArgs args)
    public Zone(String name, ZoneArgs args, CustomResourceOptions options)
    
    type: okta:network:Zone
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ZoneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ZoneArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ZoneArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZoneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZoneArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Zone Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Zone resource accepts the following input properties:

    Type string
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    Asns List<string>
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    DynamicLocations List<string>
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    DynamicProxyType string
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    Gateways List<string>
    Array of values in CIDR/range form.
    Name string
    Name of the Network Zone Resource.
    Proxies List<string>
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    Status string
    Network Status - can either be ACTIVE or INACTIVE only.
    Usage string
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    Type string
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    Asns []string
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    DynamicLocations []string
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    DynamicProxyType string
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    Gateways []string
    Array of values in CIDR/range form.
    Name string
    Name of the Network Zone Resource.
    Proxies []string
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    Status string
    Network Status - can either be ACTIVE or INACTIVE only.
    Usage string
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    type String
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    asns List<String>
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    dynamicLocations List<String>
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    dynamicProxyType String
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    gateways List<String>
    Array of values in CIDR/range form.
    name String
    Name of the Network Zone Resource.
    proxies List<String>
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    status String
    Network Status - can either be ACTIVE or INACTIVE only.
    usage String
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    type string
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    asns string[]
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    dynamicLocations string[]
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    dynamicProxyType string
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    gateways string[]
    Array of values in CIDR/range form.
    name string
    Name of the Network Zone Resource.
    proxies string[]
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    status string
    Network Status - can either be ACTIVE or INACTIVE only.
    usage string
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    type str
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    asns Sequence[str]
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    dynamic_locations Sequence[str]
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    dynamic_proxy_type str
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    gateways Sequence[str]
    Array of values in CIDR/range form.
    name str
    Name of the Network Zone Resource.
    proxies Sequence[str]
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    status str
    Network Status - can either be ACTIVE or INACTIVE only.
    usage str
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    type String
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    asns List<String>
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    dynamicLocations List<String>
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    dynamicProxyType String
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    gateways List<String>
    Array of values in CIDR/range form.
    name String
    Name of the Network Zone Resource.
    proxies List<String>
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    status String
    Network Status - can either be ACTIVE or INACTIVE only.
    usage String
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Zone resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Zone Resource

    Get an existing Zone resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ZoneState, opts?: CustomResourceOptions): Zone
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            asns: Optional[Sequence[str]] = None,
            dynamic_locations: Optional[Sequence[str]] = None,
            dynamic_proxy_type: Optional[str] = None,
            gateways: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            proxies: Optional[Sequence[str]] = None,
            status: Optional[str] = None,
            type: Optional[str] = None,
            usage: Optional[str] = None) -> Zone
    func GetZone(ctx *Context, name string, id IDInput, state *ZoneState, opts ...ResourceOption) (*Zone, error)
    public static Zone Get(string name, Input<string> id, ZoneState? state, CustomResourceOptions? opts = null)
    public static Zone get(String name, Output<String> id, ZoneState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Asns List<string>
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    DynamicLocations List<string>
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    DynamicProxyType string
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    Gateways List<string>
    Array of values in CIDR/range form.
    Name string
    Name of the Network Zone Resource.
    Proxies List<string>
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    Status string
    Network Status - can either be ACTIVE or INACTIVE only.
    Type string
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    Usage string
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    Asns []string
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    DynamicLocations []string
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    DynamicProxyType string
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    Gateways []string
    Array of values in CIDR/range form.
    Name string
    Name of the Network Zone Resource.
    Proxies []string
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    Status string
    Network Status - can either be ACTIVE or INACTIVE only.
    Type string
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    Usage string
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    asns List<String>
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    dynamicLocations List<String>
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    dynamicProxyType String
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    gateways List<String>
    Array of values in CIDR/range form.
    name String
    Name of the Network Zone Resource.
    proxies List<String>
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    status String
    Network Status - can either be ACTIVE or INACTIVE only.
    type String
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    usage String
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    asns string[]
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    dynamicLocations string[]
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    dynamicProxyType string
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    gateways string[]
    Array of values in CIDR/range form.
    name string
    Name of the Network Zone Resource.
    proxies string[]
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    status string
    Network Status - can either be ACTIVE or INACTIVE only.
    type string
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    usage string
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    asns Sequence[str]
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    dynamic_locations Sequence[str]
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    dynamic_proxy_type str
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    gateways Sequence[str]
    Array of values in CIDR/range form.
    name str
    Name of the Network Zone Resource.
    proxies Sequence[str]
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    status str
    Network Status - can either be ACTIVE or INACTIVE only.
    type str
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    usage str
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".
    asns List<String>
    Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
    dynamicLocations List<String>
    Array of locations ISO-3166-1 and ISO-3166-2. Format code: countryCode OR countryCode-regionCode.
    dynamicProxyType String
    Type of proxy being controlled by this dynamic network zone - can be one of Any, TorAnonymizer or NotTorAnonymizer.
    gateways List<String>
    Array of values in CIDR/range form.
    name String
    Name of the Network Zone Resource.
    proxies List<String>
    Array of values in CIDR/range form. Can not be set if usage is set to "BLOCKLIST".
    status String
    Network Status - can either be ACTIVE or INACTIVE only.
    type String
    Type of the Network Zone - can either be "IP" or "DYNAMIC" only.
    usage String
    Usage of the Network Zone - can be either "POLICY" or "BLOCKLIST". By default, it is "POLICY".

    Import

    Okta Network Zone can be imported via the Okta ID.

    $ pulumi import okta:network/zone:Zone example &#60;zone id&#62;
    

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v4.8.0 published on Saturday, Mar 2, 2024 by Pulumi