getAppSecBypassNetworkLists

Use the akamai.AppSecByPassNetworkList data source to retrieve information about which network lists are used in the bypass network lists settings. The information available is described here. Note: this data source is only applicable to WAP (Web Application Protector) configurations.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = @var.Security_configuration,
        }));
        var bypassNetworkLists = configuration.Apply(configuration => Output.Create(Akamai.GetAppSecBypassNetworkLists.InvokeAsync(new Akamai.GetAppSecBypassNetworkListsArgs
        {
            ConfigId = configuration.ConfigId,
        })));
        this.BypassNetworkListsOutput = bypassNetworkLists.Apply(bypassNetworkLists => bypassNetworkLists.OutputText);
        this.BypassNetworkListsJson = bypassNetworkLists.Apply(bypassNetworkLists => bypassNetworkLists.Json);
        this.BypassNetworkListsIdList = bypassNetworkLists.Apply(bypassNetworkLists => bypassNetworkLists.BypassNetworkLists);
    }

    [Output("bypassNetworkListsOutput")]
    public Output<string> BypassNetworkListsOutput { get; set; }
    [Output("bypassNetworkListsJson")]
    public Output<string> BypassNetworkListsJson { get; set; }
    [Output("bypassNetworkListsIdList")]
    public Output<string> BypassNetworkListsIdList { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := _var.Security_configuration
		configuration, err := akamai.LookupAppSecConfiguration(ctx, &GetAppSecConfigurationArgs{
			Name: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		bypassNetworkLists, err := akamai.GetAppSecBypassNetworkLists(ctx, &GetAppSecBypassNetworkListsArgs{
			ConfigId: configuration.ConfigId,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("bypassNetworkListsOutput", bypassNetworkLists.OutputText)
		ctx.Export("bypassNetworkListsJson", bypassNetworkLists.Json)
		ctx.Export("bypassNetworkListsIdList", bypassNetworkLists.BypassNetworkLists)
		return nil
	})
}
import pulumi
import pulumi_akamai as akamai

configuration = akamai.get_app_sec_configuration(name=var["security_configuration"])
bypass_network_lists = akamai.get_app_sec_bypass_network_lists(config_id=configuration.config_id)
pulumi.export("bypassNetworkListsOutput", bypass_network_lists.output_text)
pulumi.export("bypassNetworkListsJson", bypass_network_lists.json)
pulumi.export("bypassNetworkListsIdList", bypass_network_lists.bypass_network_lists)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const configuration = akamai.getAppSecConfiguration({
    name: _var.security_configuration,
});
const bypassNetworkLists = configuration.then(configuration => akamai.getAppSecBypassNetworkLists({
    configId: configuration.configId,
}));
export const bypassNetworkListsOutput = bypassNetworkLists.then(bypassNetworkLists => bypassNetworkLists.outputText);
export const bypassNetworkListsJson = bypassNetworkLists.then(bypassNetworkLists => bypassNetworkLists.json);
export const bypassNetworkListsIdList = bypassNetworkLists.then(bypassNetworkLists => bypassNetworkLists.bypassNetworkLists);

Using getAppSecBypassNetworkLists

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 getAppSecBypassNetworkLists(args: GetAppSecBypassNetworkListsArgs, opts?: InvokeOptions): Promise<GetAppSecBypassNetworkListsResult>
function getAppSecBypassNetworkListsOutput(args: GetAppSecBypassNetworkListsOutputArgs, opts?: InvokeOptions): Output<GetAppSecBypassNetworkListsResult>
def get_app_sec_bypass_network_lists(config_id: Optional[int] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetAppSecBypassNetworkListsResult
def get_app_sec_bypass_network_lists_output(config_id: Optional[pulumi.Input[int]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetAppSecBypassNetworkListsResult]
func GetAppSecBypassNetworkLists(ctx *Context, args *GetAppSecBypassNetworkListsArgs, opts ...InvokeOption) (*GetAppSecBypassNetworkListsResult, error)
func GetAppSecBypassNetworkListsOutput(ctx *Context, args *GetAppSecBypassNetworkListsOutputArgs, opts ...InvokeOption) GetAppSecBypassNetworkListsResultOutput

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

public static class GetAppSecBypassNetworkLists 
{
    public static Task<GetAppSecBypassNetworkListsResult> InvokeAsync(GetAppSecBypassNetworkListsArgs args, InvokeOptions? opts = null)
    public static Output<GetAppSecBypassNetworkListsResult> Invoke(GetAppSecBypassNetworkListsInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ConfigId int
The configuration ID to use.
ConfigId int
The configuration ID to use.
configId number
The configuration ID to use.
config_id int
The configuration ID to use.

getAppSecBypassNetworkLists Result

The following output properties are available:

BypassNetworkLists List<string>
A list of strings containing the network list IDs.
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of information about the bypass network lists.
OutputText string
A tabular display showing the bypass network list information.
BypassNetworkLists []string
A list of strings containing the network list IDs.
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
A JSON-formatted list of information about the bypass network lists.
OutputText string
A tabular display showing the bypass network list information.
bypassNetworkLists string[]
A list of strings containing the network list IDs.
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
A JSON-formatted list of information about the bypass network lists.
outputText string
A tabular display showing the bypass network list information.
bypass_network_lists Sequence[str]
A list of strings containing the network list IDs.
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
A JSON-formatted list of information about the bypass network lists.
output_text str
A tabular display showing the bypass network list information.

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.