network

package
v4.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Zone

type Zone struct {
	pulumi.CustomResourceState

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

Creates an Okta Network Zone.

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

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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
	})
}

``` <!--End PulumiCodeChooser -->

### Dynamic Tor Blocker

<!--Start PulumiCodeChooser --> ```go 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
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Okta Network Zone can be imported via the Okta ID.

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

func GetZone

func GetZone(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ZoneState, opts ...pulumi.ResourceOption) (*Zone, error)

GetZone gets an existing Zone resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewZone

func NewZone(ctx *pulumi.Context,
	name string, args *ZoneArgs, opts ...pulumi.ResourceOption) (*Zone, error)

NewZone registers a new resource with the given unique name, arguments, and options.

func (*Zone) ElementType

func (*Zone) ElementType() reflect.Type

func (*Zone) ToZoneOutput

func (i *Zone) ToZoneOutput() ZoneOutput

func (*Zone) ToZoneOutputWithContext

func (i *Zone) ToZoneOutputWithContext(ctx context.Context) ZoneOutput

type ZoneArgs

type ZoneArgs struct {
	// Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
	Asns pulumi.StringArrayInput
	// Array of locations [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
	// and [ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). Format code: countryCode OR countryCode-regionCode.
	DynamicLocations pulumi.StringArrayInput
	// Type of proxy being controlled by this dynamic network zone - can be one of `Any`, `TorAnonymizer` or `NotTorAnonymizer`.
	DynamicProxyType pulumi.StringPtrInput
	// Array of values in CIDR/range form.
	Gateways pulumi.StringArrayInput
	// Name of the Network Zone Resource.
	Name pulumi.StringPtrInput
	// Array of values in CIDR/range form. Can not be set if `usage` is set to `"BLOCKLIST"`.
	Proxies pulumi.StringArrayInput
	// Network Status - can either be ACTIVE or INACTIVE only.
	Status pulumi.StringPtrInput
	// Type of the Network Zone - can either be `"IP"` or `"DYNAMIC"` only.
	Type pulumi.StringInput
	// Usage of the Network Zone - can be either `"POLICY"` or `"BLOCKLIST"`. By default, it is `"POLICY"`.
	Usage pulumi.StringPtrInput
}

The set of arguments for constructing a Zone resource.

func (ZoneArgs) ElementType

func (ZoneArgs) ElementType() reflect.Type

type ZoneArray

type ZoneArray []ZoneInput

func (ZoneArray) ElementType

func (ZoneArray) ElementType() reflect.Type

func (ZoneArray) ToZoneArrayOutput

func (i ZoneArray) ToZoneArrayOutput() ZoneArrayOutput

func (ZoneArray) ToZoneArrayOutputWithContext

func (i ZoneArray) ToZoneArrayOutputWithContext(ctx context.Context) ZoneArrayOutput

type ZoneArrayInput

type ZoneArrayInput interface {
	pulumi.Input

	ToZoneArrayOutput() ZoneArrayOutput
	ToZoneArrayOutputWithContext(context.Context) ZoneArrayOutput
}

ZoneArrayInput is an input type that accepts ZoneArray and ZoneArrayOutput values. You can construct a concrete instance of `ZoneArrayInput` via:

ZoneArray{ ZoneArgs{...} }

type ZoneArrayOutput

type ZoneArrayOutput struct{ *pulumi.OutputState }

func (ZoneArrayOutput) ElementType

func (ZoneArrayOutput) ElementType() reflect.Type

func (ZoneArrayOutput) Index

func (ZoneArrayOutput) ToZoneArrayOutput

func (o ZoneArrayOutput) ToZoneArrayOutput() ZoneArrayOutput

func (ZoneArrayOutput) ToZoneArrayOutputWithContext

func (o ZoneArrayOutput) ToZoneArrayOutputWithContext(ctx context.Context) ZoneArrayOutput

type ZoneInput

type ZoneInput interface {
	pulumi.Input

	ToZoneOutput() ZoneOutput
	ToZoneOutputWithContext(ctx context.Context) ZoneOutput
}

type ZoneMap

type ZoneMap map[string]ZoneInput

func (ZoneMap) ElementType

func (ZoneMap) ElementType() reflect.Type

func (ZoneMap) ToZoneMapOutput

func (i ZoneMap) ToZoneMapOutput() ZoneMapOutput

func (ZoneMap) ToZoneMapOutputWithContext

func (i ZoneMap) ToZoneMapOutputWithContext(ctx context.Context) ZoneMapOutput

type ZoneMapInput

type ZoneMapInput interface {
	pulumi.Input

	ToZoneMapOutput() ZoneMapOutput
	ToZoneMapOutputWithContext(context.Context) ZoneMapOutput
}

ZoneMapInput is an input type that accepts ZoneMap and ZoneMapOutput values. You can construct a concrete instance of `ZoneMapInput` via:

ZoneMap{ "key": ZoneArgs{...} }

type ZoneMapOutput

type ZoneMapOutput struct{ *pulumi.OutputState }

func (ZoneMapOutput) ElementType

func (ZoneMapOutput) ElementType() reflect.Type

func (ZoneMapOutput) MapIndex

func (ZoneMapOutput) ToZoneMapOutput

func (o ZoneMapOutput) ToZoneMapOutput() ZoneMapOutput

func (ZoneMapOutput) ToZoneMapOutputWithContext

func (o ZoneMapOutput) ToZoneMapOutputWithContext(ctx context.Context) ZoneMapOutput

type ZoneOutput

type ZoneOutput struct{ *pulumi.OutputState }

func (ZoneOutput) Asns

Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).

func (ZoneOutput) DynamicLocations

func (o ZoneOutput) DynamicLocations() pulumi.StringArrayOutput

Array of locations [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) and [ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). Format code: countryCode OR countryCode-regionCode.

func (ZoneOutput) DynamicProxyType

func (o ZoneOutput) DynamicProxyType() pulumi.StringPtrOutput

Type of proxy being controlled by this dynamic network zone - can be one of `Any`, `TorAnonymizer` or `NotTorAnonymizer`.

func (ZoneOutput) ElementType

func (ZoneOutput) ElementType() reflect.Type

func (ZoneOutput) Gateways

func (o ZoneOutput) Gateways() pulumi.StringArrayOutput

Array of values in CIDR/range form.

func (ZoneOutput) Name

func (o ZoneOutput) Name() pulumi.StringOutput

Name of the Network Zone Resource.

func (ZoneOutput) Proxies

func (o ZoneOutput) Proxies() pulumi.StringArrayOutput

Array of values in CIDR/range form. Can not be set if `usage` is set to `"BLOCKLIST"`.

func (ZoneOutput) Status added in v4.0.5

func (o ZoneOutput) Status() pulumi.StringPtrOutput

Network Status - can either be ACTIVE or INACTIVE only.

func (ZoneOutput) ToZoneOutput

func (o ZoneOutput) ToZoneOutput() ZoneOutput

func (ZoneOutput) ToZoneOutputWithContext

func (o ZoneOutput) ToZoneOutputWithContext(ctx context.Context) ZoneOutput

func (ZoneOutput) Type

func (o ZoneOutput) Type() pulumi.StringOutput

Type of the Network Zone - can either be `"IP"` or `"DYNAMIC"` only.

func (ZoneOutput) Usage

func (o ZoneOutput) Usage() pulumi.StringPtrOutput

Usage of the Network Zone - can be either `"POLICY"` or `"BLOCKLIST"`. By default, it is `"POLICY"`.

type ZoneState

type ZoneState struct {
	// Array of Autonomous System Numbers (each element is a string representation of an ASN numeric value).
	Asns pulumi.StringArrayInput
	// Array of locations [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
	// and [ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). Format code: countryCode OR countryCode-regionCode.
	DynamicLocations pulumi.StringArrayInput
	// Type of proxy being controlled by this dynamic network zone - can be one of `Any`, `TorAnonymizer` or `NotTorAnonymizer`.
	DynamicProxyType pulumi.StringPtrInput
	// Array of values in CIDR/range form.
	Gateways pulumi.StringArrayInput
	// Name of the Network Zone Resource.
	Name pulumi.StringPtrInput
	// Array of values in CIDR/range form. Can not be set if `usage` is set to `"BLOCKLIST"`.
	Proxies pulumi.StringArrayInput
	// Network Status - can either be ACTIVE or INACTIVE only.
	Status pulumi.StringPtrInput
	// Type of the Network Zone - can either be `"IP"` or `"DYNAMIC"` only.
	Type pulumi.StringPtrInput
	// Usage of the Network Zone - can be either `"POLICY"` or `"BLOCKLIST"`. By default, it is `"POLICY"`.
	Usage pulumi.StringPtrInput
}

func (ZoneState) ElementType

func (ZoneState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL