getAppSecBypassNetworkLists

Scopes: Security configuration

Returns information about the network lists assigned to the bypass network list; networks on this list are not subject to firewall checking. The returned information is described in the BypassNetworkList members section of the Application Security API.

Note that this data source is only applicable to WAP (Web Application Protector) configurations.

Related API Endpoint:/appsec/v1/configs/{configId}/versions/{versionNumber}/bypass-network-lists

Output Options

The following options can be used to determine the information returned, and how that returned information is formatted:

  • bypass_network_list. List of network IDs.
  • json. JSON-formatted list of information about the bypass networks.
  • output_text. Tabular report showing the bypass network list information.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var configuration = Output.Create(Akamai.GetAppSecConfiguration.InvokeAsync(new Akamai.GetAppSecConfigurationArgs
        {
            Name = "Documentation",
        }));
        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 := "Documentation"
		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="Documentation")
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: "Documentation",
});
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,
                                     security_policy_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetAppSecBypassNetworkListsResult
def get_app_sec_bypass_network_lists_output(config_id: Optional[pulumi.Input[int]] = None,
                                     security_policy_id: Optional[pulumi.Input[str]] = 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
. Unique identifier of the security configuration associated with the bypass network list.
SecurityPolicyId string
ConfigId int
. Unique identifier of the security configuration associated with the bypass network list.
SecurityPolicyId string
configId number
. Unique identifier of the security configuration associated with the bypass network list.
securityPolicyId string
config_id int
. Unique identifier of the security configuration associated with the bypass network list.
security_policy_id str

getAppSecBypassNetworkLists Result

The following output properties are available:

BypassNetworkLists List<string>
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
OutputText string
SecurityPolicyId string
BypassNetworkLists []string
ConfigId int
Id string
The provider-assigned unique ID for this managed resource.
Json string
OutputText string
SecurityPolicyId string
bypassNetworkLists string[]
configId number
id string
The provider-assigned unique ID for this managed resource.
json string
outputText string
securityPolicyId string
bypass_network_lists Sequence[str]
config_id int
id str
The provider-assigned unique ID for this managed resource.
json str
output_text str
security_policy_id str

Package Details

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