Okta

Pulumi Official
Package maintained by Pulumi
v3.14.0 published on Thursday, Aug 4, 2022 by Pulumi

getNetworkZone

Use this data source to retrieve a network zone from Okta.

Example Usage

using Pulumi;
using Okta = Pulumi.Okta;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Okta.GetNetworkZone.InvokeAsync(new Okta.GetNetworkZoneArgs
        {
            Name = "Block Antarctica",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-okta/sdk/v3/go/okta"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := okta.GetNetworkZone(ctx, &GetNetworkZoneArgs{
			Name: pulumi.StringRef("Block Antarctica"),
		}, nil)
		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.OktaFunctions;
import com.pulumi.okta.inputs.GetNetworkZoneArgs;
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) {
        final var example = OktaFunctions.getNetworkZone(GetNetworkZoneArgs.builder()
            .name("Block Antarctica")
            .build());

    }
}
import pulumi
import pulumi_okta as okta

example = okta.get_network_zone(name="Block Antarctica")
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";

const example = pulumi.output(okta.getNetworkZone({
    name: "Block Antarctica",
}));
variables:
  example:
    Fn::Invoke:
      Function: okta:getNetworkZone
      Arguments:
        name: Block Antarctica

Using getNetworkZone

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getNetworkZone(args: GetNetworkZoneArgs, opts?: InvokeOptions): Promise<GetNetworkZoneResult>
function getNetworkZoneOutput(args: GetNetworkZoneOutputArgs, opts?: InvokeOptions): Output<GetNetworkZoneResult>
def get_network_zone(id: Optional[str] = None,
                     name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetNetworkZoneResult
def get_network_zone_output(id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetNetworkZoneResult]
func GetNetworkZone(ctx *Context, args *GetNetworkZoneArgs, opts ...InvokeOption) (*GetNetworkZoneResult, error)
func GetNetworkZoneOutput(ctx *Context, args *GetNetworkZoneOutputArgs, opts ...InvokeOption) GetNetworkZoneResultOutput

> Note: This function is named GetNetworkZone in the Go SDK.

public static class GetNetworkZone 
{
    public static Task<GetNetworkZoneResult> InvokeAsync(GetNetworkZoneArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkZoneResult> Invoke(GetNetworkZoneInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkZoneResult> getNetworkZone(GetNetworkZoneArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: okta:index/getNetworkZone:getNetworkZone
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Id string

ID of the network zone to retrieve, conflicts with name.

Name string

Name of the network zone to retrieve, conflicts with id.

Id string

ID of the network zone to retrieve, conflicts with name.

Name string

Name of the network zone to retrieve, conflicts with id.

id String

ID of the network zone to retrieve, conflicts with name.

name String

Name of the network zone to retrieve, conflicts with id.

id string

ID of the network zone to retrieve, conflicts with name.

name string

Name of the network zone to retrieve, conflicts with id.

id str

ID of the network zone to retrieve, conflicts with name.

name str

Name of the network zone to retrieve, conflicts with id.

id String

ID of the network zone to retrieve, conflicts with name.

name String

Name of the network zone to retrieve, conflicts with id.

getNetworkZone Result

The following output properties are available:

Asns List<string>

Array of Autonomous System Numbers.

DynamicLocations List<string>

Array of locations.

DynamicProxyType string

Type of proxy being controlled by this dynamic network zone.

Gateways List<string>

Array of values in CIDR/range form.

Proxies List<string>

Array of values in CIDR/range form.

Type string

Type of the Network Zone.

Usage string

Usage of the Network Zone.

Id string

ID of the network zone.

Name string

Name of the network zone.

Asns []string

Array of Autonomous System Numbers.

DynamicLocations []string

Array of locations.

DynamicProxyType string

Type of proxy being controlled by this dynamic network zone.

Gateways []string

Array of values in CIDR/range form.

Proxies []string

Array of values in CIDR/range form.

Type string

Type of the Network Zone.

Usage string

Usage of the Network Zone.

Id string

ID of the network zone.

Name string

Name of the network zone.

asns List<String>

Array of Autonomous System Numbers.

dynamicLocations List<String>

Array of locations.

dynamicProxyType String

Type of proxy being controlled by this dynamic network zone.

gateways List<String>

Array of values in CIDR/range form.

proxies List<String>

Array of values in CIDR/range form.

type String

Type of the Network Zone.

usage String

Usage of the Network Zone.

id String

ID of the network zone.

name String

Name of the network zone.

asns string[]

Array of Autonomous System Numbers.

dynamicLocations string[]

Array of locations.

dynamicProxyType string

Type of proxy being controlled by this dynamic network zone.

gateways string[]

Array of values in CIDR/range form.

proxies string[]

Array of values in CIDR/range form.

type string

Type of the Network Zone.

usage string

Usage of the Network Zone.

id string

ID of the network zone.

name string

Name of the network zone.

asns Sequence[str]

Array of Autonomous System Numbers.

dynamic_locations Sequence[str]

Array of locations.

dynamic_proxy_type str

Type of proxy being controlled by this dynamic network zone.

gateways Sequence[str]

Array of values in CIDR/range form.

proxies Sequence[str]

Array of values in CIDR/range form.

type str

Type of the Network Zone.

usage str

Usage of the Network Zone.

id str

ID of the network zone.

name str

Name of the network zone.

asns List<String>

Array of Autonomous System Numbers.

dynamicLocations List<String>

Array of locations.

dynamicProxyType String

Type of proxy being controlled by this dynamic network zone.

gateways List<String>

Array of values in CIDR/range form.

proxies List<String>

Array of values in CIDR/range form.

type String

Type of the Network Zone.

usage String

Usage of the Network Zone.

id String

ID of the network zone.

name String

Name of the network zone.

Package Details

Repository
https://github.com/pulumi/pulumi-okta
License
Apache-2.0
Notes

This Pulumi package is based on the okta Terraform Provider.