akamai.AppSecByPassNetworkList
Scopes: Security configuration
Specifies the networks that appear on the bypass network list. Networks on this list are allowed to bypass the Web Application Firewall.
Note that this resource 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:
output_text
. Tabular report showing the updated list of bypass network IDs.
Example Usage
Basic usage
using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;
return await Deployment.RunAsync(() =>
{
var configuration = Akamai.GetAppSecConfiguration.Invoke(new()
{
Name = "Documentation",
});
var bypassNetworkLists = new Akamai.AppSecByPassNetworkList("bypassNetworkLists", new()
{
ConfigId = configuration.Apply(getAppSecConfigurationResult => getAppSecConfigurationResult.ConfigId),
SecurityPolicyId = "gms1_134637",
BypassNetworkLists = new[]
{
"DocumentationNetworkList",
"TrainingNetworkList",
},
});
});
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v4/go/akamai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
configuration, err := akamai.LookupAppSecConfiguration(ctx, &akamai.LookupAppSecConfigurationArgs{
Name: pulumi.StringRef("Documentation"),
}, nil)
if err != nil {
return err
}
_, err = akamai.NewAppSecByPassNetworkList(ctx, "bypassNetworkLists", &akamai.AppSecByPassNetworkListArgs{
ConfigId: *pulumi.Int(configuration.ConfigId),
SecurityPolicyId: pulumi.String("gms1_134637"),
BypassNetworkLists: pulumi.StringArray{
pulumi.String("DocumentationNetworkList"),
pulumi.String("TrainingNetworkList"),
},
})
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.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetAppSecConfigurationArgs;
import com.pulumi.akamai.AppSecByPassNetworkList;
import com.pulumi.akamai.AppSecByPassNetworkListArgs;
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 configuration = AkamaiFunctions.getAppSecConfiguration(GetAppSecConfigurationArgs.builder()
.name("Documentation")
.build());
var bypassNetworkLists = new AppSecByPassNetworkList("bypassNetworkLists", AppSecByPassNetworkListArgs.builder()
.configId(configuration.applyValue(getAppSecConfigurationResult -> getAppSecConfigurationResult.configId()))
.securityPolicyId("gms1_134637")
.bypassNetworkLists(
"DocumentationNetworkList",
"TrainingNetworkList")
.build());
}
}
import pulumi
import pulumi_akamai as akamai
configuration = akamai.get_app_sec_configuration(name="Documentation")
bypass_network_lists = akamai.AppSecByPassNetworkList("bypassNetworkLists",
config_id=configuration.config_id,
security_policy_id="gms1_134637",
bypass_network_lists=[
"DocumentationNetworkList",
"TrainingNetworkList",
])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";
const configuration = akamai.getAppSecConfiguration({
name: "Documentation",
});
const bypassNetworkLists = new akamai.AppSecByPassNetworkList("bypassNetworkLists", {
configId: configuration.then(configuration => configuration.configId),
securityPolicyId: "gms1_134637",
bypassNetworkLists: [
"DocumentationNetworkList",
"TrainingNetworkList",
],
});
resources:
bypassNetworkLists:
type: akamai:AppSecByPassNetworkList
properties:
configId: ${configuration.configId}
securityPolicyId: gms1_134637
bypassNetworkLists:
- DocumentationNetworkList
- TrainingNetworkList
variables:
configuration:
fn::invoke:
Function: akamai:getAppSecConfiguration
Arguments:
name: Documentation
Create AppSecByPassNetworkList Resource
new AppSecByPassNetworkList(name: string, args: AppSecByPassNetworkListArgs, opts?: CustomResourceOptions);
@overload
def AppSecByPassNetworkList(resource_name: str,
opts: Optional[ResourceOptions] = None,
bypass_network_lists: Optional[Sequence[str]] = None,
config_id: Optional[int] = None,
security_policy_id: Optional[str] = None)
@overload
def AppSecByPassNetworkList(resource_name: str,
args: AppSecByPassNetworkListArgs,
opts: Optional[ResourceOptions] = None)
func NewAppSecByPassNetworkList(ctx *Context, name string, args AppSecByPassNetworkListArgs, opts ...ResourceOption) (*AppSecByPassNetworkList, error)
public AppSecByPassNetworkList(string name, AppSecByPassNetworkListArgs args, CustomResourceOptions? opts = null)
public AppSecByPassNetworkList(String name, AppSecByPassNetworkListArgs args)
public AppSecByPassNetworkList(String name, AppSecByPassNetworkListArgs args, CustomResourceOptions options)
type: akamai:AppSecByPassNetworkList
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppSecByPassNetworkListArgs
- 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 AppSecByPassNetworkListArgs
- 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 AppSecByPassNetworkListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppSecByPassNetworkListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppSecByPassNetworkListArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AppSecByPassNetworkList 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 AppSecByPassNetworkList resource accepts the following input properties:
- Bypass
Network List<string>Lists . JSON array of network IDs that comprise the bypass list.
- Config
Id int . Unique identifier of the security configuration associated with the bypass network lists being modified.
- Security
Policy stringId . Unique identifier of the security policy associated with the bypass network lists.
- Bypass
Network []stringLists . JSON array of network IDs that comprise the bypass list.
- Config
Id int . Unique identifier of the security configuration associated with the bypass network lists being modified.
- Security
Policy stringId . Unique identifier of the security policy associated with the bypass network lists.
- bypass
Network List<String>Lists . JSON array of network IDs that comprise the bypass list.
- config
Id Integer . Unique identifier of the security configuration associated with the bypass network lists being modified.
- security
Policy StringId . Unique identifier of the security policy associated with the bypass network lists.
- bypass
Network string[]Lists . JSON array of network IDs that comprise the bypass list.
- config
Id number . Unique identifier of the security configuration associated with the bypass network lists being modified.
- security
Policy stringId . Unique identifier of the security policy associated with the bypass network lists.
- bypass_
network_ Sequence[str]lists . JSON array of network IDs that comprise the bypass list.
- config_
id int . Unique identifier of the security configuration associated with the bypass network lists being modified.
- security_
policy_ strid . Unique identifier of the security policy associated with the bypass network lists.
- bypass
Network List<String>Lists . JSON array of network IDs that comprise the bypass list.
- config
Id Number . Unique identifier of the security configuration associated with the bypass network lists being modified.
- security
Policy StringId . Unique identifier of the security policy associated with the bypass network lists.
Outputs
All input properties are implicitly available as output properties. Additionally, the AppSecByPassNetworkList 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 AppSecByPassNetworkList Resource
Get an existing AppSecByPassNetworkList 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?: AppSecByPassNetworkListState, opts?: CustomResourceOptions): AppSecByPassNetworkList
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bypass_network_lists: Optional[Sequence[str]] = None,
config_id: Optional[int] = None,
security_policy_id: Optional[str] = None) -> AppSecByPassNetworkList
func GetAppSecByPassNetworkList(ctx *Context, name string, id IDInput, state *AppSecByPassNetworkListState, opts ...ResourceOption) (*AppSecByPassNetworkList, error)
public static AppSecByPassNetworkList Get(string name, Input<string> id, AppSecByPassNetworkListState? state, CustomResourceOptions? opts = null)
public static AppSecByPassNetworkList get(String name, Output<String> id, AppSecByPassNetworkListState 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.
- Bypass
Network List<string>Lists . JSON array of network IDs that comprise the bypass list.
- Config
Id int . Unique identifier of the security configuration associated with the bypass network lists being modified.
- Security
Policy stringId . Unique identifier of the security policy associated with the bypass network lists.
- Bypass
Network []stringLists . JSON array of network IDs that comprise the bypass list.
- Config
Id int . Unique identifier of the security configuration associated with the bypass network lists being modified.
- Security
Policy stringId . Unique identifier of the security policy associated with the bypass network lists.
- bypass
Network List<String>Lists . JSON array of network IDs that comprise the bypass list.
- config
Id Integer . Unique identifier of the security configuration associated with the bypass network lists being modified.
- security
Policy StringId . Unique identifier of the security policy associated with the bypass network lists.
- bypass
Network string[]Lists . JSON array of network IDs that comprise the bypass list.
- config
Id number . Unique identifier of the security configuration associated with the bypass network lists being modified.
- security
Policy stringId . Unique identifier of the security policy associated with the bypass network lists.
- bypass_
network_ Sequence[str]lists . JSON array of network IDs that comprise the bypass list.
- config_
id int . Unique identifier of the security configuration associated with the bypass network lists being modified.
- security_
policy_ strid . Unique identifier of the security policy associated with the bypass network lists.
- bypass
Network List<String>Lists . JSON array of network IDs that comprise the bypass list.
- config
Id Number . Unique identifier of the security configuration associated with the bypass network lists being modified.
- security
Policy StringId . Unique identifier of the security policy associated with the bypass network lists.
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.