volcengine.vpc.NetworkAcl
Explore with Pulumi AI
Provides a resource to manage network acl
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Vpc.NetworkAcl("foo", new()
{
EgressAclEntries = new[]
{
new Volcengine.Vpc.Inputs.NetworkAclEgressAclEntryArgs
{
DestinationCidrIp = "192.168.0.0/16",
NetworkAclEntryName = "egress2",
Policy = "accept",
Protocol = "all",
},
},
IngressAclEntries = new[]
{
new Volcengine.Vpc.Inputs.NetworkAclIngressAclEntryArgs
{
NetworkAclEntryName = "ingress1",
Policy = "accept",
Protocol = "all",
SourceCidrIp = "192.168.0.0/24",
},
new Volcengine.Vpc.Inputs.NetworkAclIngressAclEntryArgs
{
NetworkAclEntryName = "ingress3",
Policy = "accept",
Port = "80/80",
Protocol = "tcp",
SourceCidrIp = "192.168.0.0/24",
},
},
NetworkAclName = "tf-test-acl",
ProjectName = "default",
VpcId = "vpc-2d6jskar243k058ozfdae13ne",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.NewNetworkAcl(ctx, "foo", &vpc.NetworkAclArgs{
EgressAclEntries: vpc.NetworkAclEgressAclEntryArray{
&vpc.NetworkAclEgressAclEntryArgs{
DestinationCidrIp: pulumi.String("192.168.0.0/16"),
NetworkAclEntryName: pulumi.String("egress2"),
Policy: pulumi.String("accept"),
Protocol: pulumi.String("all"),
},
},
IngressAclEntries: vpc.NetworkAclIngressAclEntryArray{
&vpc.NetworkAclIngressAclEntryArgs{
NetworkAclEntryName: pulumi.String("ingress1"),
Policy: pulumi.String("accept"),
Protocol: pulumi.String("all"),
SourceCidrIp: pulumi.String("192.168.0.0/24"),
},
&vpc.NetworkAclIngressAclEntryArgs{
NetworkAclEntryName: pulumi.String("ingress3"),
Policy: pulumi.String("accept"),
Port: pulumi.String("80/80"),
Protocol: pulumi.String("tcp"),
SourceCidrIp: pulumi.String("192.168.0.0/24"),
},
},
NetworkAclName: pulumi.String("tf-test-acl"),
ProjectName: pulumi.String("default"),
VpcId: pulumi.String("vpc-2d6jskar243k058ozfdae13ne"),
})
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.volcengine.vpc.NetworkAcl;
import com.pulumi.volcengine.vpc.NetworkAclArgs;
import com.pulumi.volcengine.vpc.inputs.NetworkAclEgressAclEntryArgs;
import com.pulumi.volcengine.vpc.inputs.NetworkAclIngressAclEntryArgs;
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) {
var foo = new NetworkAcl("foo", NetworkAclArgs.builder()
.egressAclEntries(NetworkAclEgressAclEntryArgs.builder()
.destinationCidrIp("192.168.0.0/16")
.networkAclEntryName("egress2")
.policy("accept")
.protocol("all")
.build())
.ingressAclEntries(
NetworkAclIngressAclEntryArgs.builder()
.networkAclEntryName("ingress1")
.policy("accept")
.protocol("all")
.sourceCidrIp("192.168.0.0/24")
.build(),
NetworkAclIngressAclEntryArgs.builder()
.networkAclEntryName("ingress3")
.policy("accept")
.port("80/80")
.protocol("tcp")
.sourceCidrIp("192.168.0.0/24")
.build())
.networkAclName("tf-test-acl")
.projectName("default")
.vpcId("vpc-2d6jskar243k058ozfdae13ne")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.vpc.NetworkAcl("foo",
egress_acl_entries=[volcengine.vpc.NetworkAclEgressAclEntryArgs(
destination_cidr_ip="192.168.0.0/16",
network_acl_entry_name="egress2",
policy="accept",
protocol="all",
)],
ingress_acl_entries=[
volcengine.vpc.NetworkAclIngressAclEntryArgs(
network_acl_entry_name="ingress1",
policy="accept",
protocol="all",
source_cidr_ip="192.168.0.0/24",
),
volcengine.vpc.NetworkAclIngressAclEntryArgs(
network_acl_entry_name="ingress3",
policy="accept",
port="80/80",
protocol="tcp",
source_cidr_ip="192.168.0.0/24",
),
],
network_acl_name="tf-test-acl",
project_name="default",
vpc_id="vpc-2d6jskar243k058ozfdae13ne")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.vpc.NetworkAcl("foo", {
egressAclEntries: [{
destinationCidrIp: "192.168.0.0/16",
networkAclEntryName: "egress2",
policy: "accept",
protocol: "all",
}],
ingressAclEntries: [
{
networkAclEntryName: "ingress1",
policy: "accept",
protocol: "all",
sourceCidrIp: "192.168.0.0/24",
},
{
networkAclEntryName: "ingress3",
policy: "accept",
port: "80/80",
protocol: "tcp",
sourceCidrIp: "192.168.0.0/24",
},
],
networkAclName: "tf-test-acl",
projectName: "default",
vpcId: "vpc-2d6jskar243k058ozfdae13ne",
});
resources:
foo:
type: volcengine:vpc:NetworkAcl
properties:
egressAclEntries:
- destinationCidrIp: 192.168.0.0/16
networkAclEntryName: egress2
policy: accept
protocol: all
ingressAclEntries:
- networkAclEntryName: ingress1
policy: accept
protocol: all
sourceCidrIp: 192.168.0.0/24
- networkAclEntryName: ingress3
policy: accept
port: 80/80
protocol: tcp
sourceCidrIp: 192.168.0.0/24
networkAclName: tf-test-acl
projectName: default
vpcId: vpc-2d6jskar243k058ozfdae13ne
Create NetworkAcl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkAcl(name: string, args: NetworkAclArgs, opts?: CustomResourceOptions);
@overload
def NetworkAcl(resource_name: str,
args: NetworkAclArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkAcl(resource_name: str,
opts: Optional[ResourceOptions] = None,
vpc_id: Optional[str] = None,
description: Optional[str] = None,
egress_acl_entries: Optional[Sequence[NetworkAclEgressAclEntryArgs]] = None,
ingress_acl_entries: Optional[Sequence[NetworkAclIngressAclEntryArgs]] = None,
network_acl_name: Optional[str] = None,
project_name: Optional[str] = None)
func NewNetworkAcl(ctx *Context, name string, args NetworkAclArgs, opts ...ResourceOption) (*NetworkAcl, error)
public NetworkAcl(string name, NetworkAclArgs args, CustomResourceOptions? opts = null)
public NetworkAcl(String name, NetworkAclArgs args)
public NetworkAcl(String name, NetworkAclArgs args, CustomResourceOptions options)
type: volcengine:vpc:NetworkAcl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NetworkAclArgs
- 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 NetworkAclArgs
- 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 NetworkAclArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkAclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkAclArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkAclResource = new Volcengine.Vpc.NetworkAcl("networkAclResource", new()
{
VpcId = "string",
Description = "string",
EgressAclEntries = new[]
{
new Volcengine.Vpc.Inputs.NetworkAclEgressAclEntryArgs
{
Description = "string",
DestinationCidrIp = "string",
NetworkAclEntryId = "string",
NetworkAclEntryName = "string",
Policy = "string",
Port = "string",
Priority = 0,
Protocol = "string",
},
},
IngressAclEntries = new[]
{
new Volcengine.Vpc.Inputs.NetworkAclIngressAclEntryArgs
{
Description = "string",
NetworkAclEntryId = "string",
NetworkAclEntryName = "string",
Policy = "string",
Port = "string",
Priority = 0,
Protocol = "string",
SourceCidrIp = "string",
},
},
NetworkAclName = "string",
ProjectName = "string",
});
example, err := vpc.NewNetworkAcl(ctx, "networkAclResource", &vpc.NetworkAclArgs{
VpcId: pulumi.String("string"),
Description: pulumi.String("string"),
EgressAclEntries: vpc.NetworkAclEgressAclEntryArray{
&vpc.NetworkAclEgressAclEntryArgs{
Description: pulumi.String("string"),
DestinationCidrIp: pulumi.String("string"),
NetworkAclEntryId: pulumi.String("string"),
NetworkAclEntryName: pulumi.String("string"),
Policy: pulumi.String("string"),
Port: pulumi.String("string"),
Priority: pulumi.Int(0),
Protocol: pulumi.String("string"),
},
},
IngressAclEntries: vpc.NetworkAclIngressAclEntryArray{
&vpc.NetworkAclIngressAclEntryArgs{
Description: pulumi.String("string"),
NetworkAclEntryId: pulumi.String("string"),
NetworkAclEntryName: pulumi.String("string"),
Policy: pulumi.String("string"),
Port: pulumi.String("string"),
Priority: pulumi.Int(0),
Protocol: pulumi.String("string"),
SourceCidrIp: pulumi.String("string"),
},
},
NetworkAclName: pulumi.String("string"),
ProjectName: pulumi.String("string"),
})
var networkAclResource = new NetworkAcl("networkAclResource", NetworkAclArgs.builder()
.vpcId("string")
.description("string")
.egressAclEntries(NetworkAclEgressAclEntryArgs.builder()
.description("string")
.destinationCidrIp("string")
.networkAclEntryId("string")
.networkAclEntryName("string")
.policy("string")
.port("string")
.priority(0)
.protocol("string")
.build())
.ingressAclEntries(NetworkAclIngressAclEntryArgs.builder()
.description("string")
.networkAclEntryId("string")
.networkAclEntryName("string")
.policy("string")
.port("string")
.priority(0)
.protocol("string")
.sourceCidrIp("string")
.build())
.networkAclName("string")
.projectName("string")
.build());
network_acl_resource = volcengine.vpc.NetworkAcl("networkAclResource",
vpc_id="string",
description="string",
egress_acl_entries=[volcengine.vpc.NetworkAclEgressAclEntryArgs(
description="string",
destination_cidr_ip="string",
network_acl_entry_id="string",
network_acl_entry_name="string",
policy="string",
port="string",
priority=0,
protocol="string",
)],
ingress_acl_entries=[volcengine.vpc.NetworkAclIngressAclEntryArgs(
description="string",
network_acl_entry_id="string",
network_acl_entry_name="string",
policy="string",
port="string",
priority=0,
protocol="string",
source_cidr_ip="string",
)],
network_acl_name="string",
project_name="string")
const networkAclResource = new volcengine.vpc.NetworkAcl("networkAclResource", {
vpcId: "string",
description: "string",
egressAclEntries: [{
description: "string",
destinationCidrIp: "string",
networkAclEntryId: "string",
networkAclEntryName: "string",
policy: "string",
port: "string",
priority: 0,
protocol: "string",
}],
ingressAclEntries: [{
description: "string",
networkAclEntryId: "string",
networkAclEntryName: "string",
policy: "string",
port: "string",
priority: 0,
protocol: "string",
sourceCidrIp: "string",
}],
networkAclName: "string",
projectName: "string",
});
type: volcengine:vpc:NetworkAcl
properties:
description: string
egressAclEntries:
- description: string
destinationCidrIp: string
networkAclEntryId: string
networkAclEntryName: string
policy: string
port: string
priority: 0
protocol: string
ingressAclEntries:
- description: string
networkAclEntryId: string
networkAclEntryName: string
policy: string
port: string
priority: 0
protocol: string
sourceCidrIp: string
networkAclName: string
projectName: string
vpcId: string
NetworkAcl 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 NetworkAcl resource accepts the following input properties:
- Vpc
Id string - The vpc id of Network Acl.
- Description string
- The description of the Network Acl.
- Egress
Acl List<NetworkEntries Acl Egress Acl Entry> - The egress entries of Network Acl.
- Ingress
Acl List<NetworkEntries Acl Ingress Acl Entry> - The ingress entries of Network Acl.
- Network
Acl stringName - The name of Network Acl.
- Project
Name string - The project name of the network acl.
- Vpc
Id string - The vpc id of Network Acl.
- Description string
- The description of the Network Acl.
- Egress
Acl []NetworkEntries Acl Egress Acl Entry Args - The egress entries of Network Acl.
- Ingress
Acl []NetworkEntries Acl Ingress Acl Entry Args - The ingress entries of Network Acl.
- Network
Acl stringName - The name of Network Acl.
- Project
Name string - The project name of the network acl.
- vpc
Id String - The vpc id of Network Acl.
- description String
- The description of the Network Acl.
- egress
Acl List<NetworkEntries Acl Egress Acl Entry> - The egress entries of Network Acl.
- ingress
Acl List<NetworkEntries Acl Ingress Acl Entry> - The ingress entries of Network Acl.
- network
Acl StringName - The name of Network Acl.
- project
Name String - The project name of the network acl.
- vpc
Id string - The vpc id of Network Acl.
- description string
- The description of the Network Acl.
- egress
Acl NetworkEntries Acl Egress Acl Entry[] - The egress entries of Network Acl.
- ingress
Acl NetworkEntries Acl Ingress Acl Entry[] - The ingress entries of Network Acl.
- network
Acl stringName - The name of Network Acl.
- project
Name string - The project name of the network acl.
- vpc_
id str - The vpc id of Network Acl.
- description str
- The description of the Network Acl.
- egress_
acl_ Sequence[Networkentries Acl Egress Acl Entry Args] - The egress entries of Network Acl.
- ingress_
acl_ Sequence[Networkentries Acl Ingress Acl Entry Args] - The ingress entries of Network Acl.
- network_
acl_ strname - The name of Network Acl.
- project_
name str - The project name of the network acl.
- vpc
Id String - The vpc id of Network Acl.
- description String
- The description of the Network Acl.
- egress
Acl List<Property Map>Entries - The egress entries of Network Acl.
- ingress
Acl List<Property Map>Entries - The ingress entries of Network Acl.
- network
Acl StringName - The name of Network Acl.
- project
Name String - The project name of the network acl.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkAcl 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 NetworkAcl Resource
Get an existing NetworkAcl 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?: NetworkAclState, opts?: CustomResourceOptions): NetworkAcl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
egress_acl_entries: Optional[Sequence[NetworkAclEgressAclEntryArgs]] = None,
ingress_acl_entries: Optional[Sequence[NetworkAclIngressAclEntryArgs]] = None,
network_acl_name: Optional[str] = None,
project_name: Optional[str] = None,
vpc_id: Optional[str] = None) -> NetworkAcl
func GetNetworkAcl(ctx *Context, name string, id IDInput, state *NetworkAclState, opts ...ResourceOption) (*NetworkAcl, error)
public static NetworkAcl Get(string name, Input<string> id, NetworkAclState? state, CustomResourceOptions? opts = null)
public static NetworkAcl get(String name, Output<String> id, NetworkAclState 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.
- Description string
- The description of the Network Acl.
- Egress
Acl List<NetworkEntries Acl Egress Acl Entry> - The egress entries of Network Acl.
- Ingress
Acl List<NetworkEntries Acl Ingress Acl Entry> - The ingress entries of Network Acl.
- Network
Acl stringName - The name of Network Acl.
- Project
Name string - The project name of the network acl.
- Vpc
Id string - The vpc id of Network Acl.
- Description string
- The description of the Network Acl.
- Egress
Acl []NetworkEntries Acl Egress Acl Entry Args - The egress entries of Network Acl.
- Ingress
Acl []NetworkEntries Acl Ingress Acl Entry Args - The ingress entries of Network Acl.
- Network
Acl stringName - The name of Network Acl.
- Project
Name string - The project name of the network acl.
- Vpc
Id string - The vpc id of Network Acl.
- description String
- The description of the Network Acl.
- egress
Acl List<NetworkEntries Acl Egress Acl Entry> - The egress entries of Network Acl.
- ingress
Acl List<NetworkEntries Acl Ingress Acl Entry> - The ingress entries of Network Acl.
- network
Acl StringName - The name of Network Acl.
- project
Name String - The project name of the network acl.
- vpc
Id String - The vpc id of Network Acl.
- description string
- The description of the Network Acl.
- egress
Acl NetworkEntries Acl Egress Acl Entry[] - The egress entries of Network Acl.
- ingress
Acl NetworkEntries Acl Ingress Acl Entry[] - The ingress entries of Network Acl.
- network
Acl stringName - The name of Network Acl.
- project
Name string - The project name of the network acl.
- vpc
Id string - The vpc id of Network Acl.
- description str
- The description of the Network Acl.
- egress_
acl_ Sequence[Networkentries Acl Egress Acl Entry Args] - The egress entries of Network Acl.
- ingress_
acl_ Sequence[Networkentries Acl Ingress Acl Entry Args] - The ingress entries of Network Acl.
- network_
acl_ strname - The name of Network Acl.
- project_
name str - The project name of the network acl.
- vpc_
id str - The vpc id of Network Acl.
- description String
- The description of the Network Acl.
- egress
Acl List<Property Map>Entries - The egress entries of Network Acl.
- ingress
Acl List<Property Map>Entries - The ingress entries of Network Acl.
- network
Acl StringName - The name of Network Acl.
- project
Name String - The project name of the network acl.
- vpc
Id String - The vpc id of Network Acl.
Supporting Types
NetworkAclEgressAclEntry, NetworkAclEgressAclEntryArgs
- Description string
- The description of entry.
- Destination
Cidr stringIp - The DestinationCidrIp of entry.
- Network
Acl stringEntry Id - Network
Acl stringEntry Name - The name of entry.
- Policy string
- The policy of entry. Default is
accept
. The value can beaccept
ordrop
. - Port string
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction.When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
,which means port 1 to port 200, port 80. - Priority int
- Protocol string
- The protocol of entry. The value can be
icmp
orgre
ortcp
orudp
orall
. Default isall
.
- Description string
- The description of entry.
- Destination
Cidr stringIp - The DestinationCidrIp of entry.
- Network
Acl stringEntry Id - Network
Acl stringEntry Name - The name of entry.
- Policy string
- The policy of entry. Default is
accept
. The value can beaccept
ordrop
. - Port string
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction.When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
,which means port 1 to port 200, port 80. - Priority int
- Protocol string
- The protocol of entry. The value can be
icmp
orgre
ortcp
orudp
orall
. Default isall
.
- description String
- The description of entry.
- destination
Cidr StringIp - The DestinationCidrIp of entry.
- network
Acl StringEntry Id - network
Acl StringEntry Name - The name of entry.
- policy String
- The policy of entry. Default is
accept
. The value can beaccept
ordrop
. - port String
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction.When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
,which means port 1 to port 200, port 80. - priority Integer
- protocol String
- The protocol of entry. The value can be
icmp
orgre
ortcp
orudp
orall
. Default isall
.
- description string
- The description of entry.
- destination
Cidr stringIp - The DestinationCidrIp of entry.
- network
Acl stringEntry Id - network
Acl stringEntry Name - The name of entry.
- policy string
- The policy of entry. Default is
accept
. The value can beaccept
ordrop
. - port string
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction.When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
,which means port 1 to port 200, port 80. - priority number
- protocol string
- The protocol of entry. The value can be
icmp
orgre
ortcp
orudp
orall
. Default isall
.
- description str
- The description of entry.
- destination_
cidr_ strip - The DestinationCidrIp of entry.
- network_
acl_ strentry_ id - network_
acl_ strentry_ name - The name of entry.
- policy str
- The policy of entry. Default is
accept
. The value can beaccept
ordrop
. - port str
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction.When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
,which means port 1 to port 200, port 80. - priority int
- protocol str
- The protocol of entry. The value can be
icmp
orgre
ortcp
orudp
orall
. Default isall
.
- description String
- The description of entry.
- destination
Cidr StringIp - The DestinationCidrIp of entry.
- network
Acl StringEntry Id - network
Acl StringEntry Name - The name of entry.
- policy String
- The policy of entry. Default is
accept
. The value can beaccept
ordrop
. - port String
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction.When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
,which means port 1 to port 200, port 80. - priority Number
- protocol String
- The protocol of entry. The value can be
icmp
orgre
ortcp
orudp
orall
. Default isall
.
NetworkAclIngressAclEntry, NetworkAclIngressAclEntryArgs
- Description string
- The description of entry.
- Network
Acl stringEntry Id - Network
Acl stringEntry Name - The name of entry.
- Policy string
- The policy of entry, default is
accept
. The value can beaccept
ordrop
. - Port string
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction. When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
, which means port 1 to port 200, port 80. - Priority int
- Protocol string
- The protocol of entry, default is
all
. The value can beicmp
orgre
ortcp
orudp
orall
. - Source
Cidr stringIp - The SourceCidrIp of entry.
- Description string
- The description of entry.
- Network
Acl stringEntry Id - Network
Acl stringEntry Name - The name of entry.
- Policy string
- The policy of entry, default is
accept
. The value can beaccept
ordrop
. - Port string
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction. When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
, which means port 1 to port 200, port 80. - Priority int
- Protocol string
- The protocol of entry, default is
all
. The value can beicmp
orgre
ortcp
orudp
orall
. - Source
Cidr stringIp - The SourceCidrIp of entry.
- description String
- The description of entry.
- network
Acl StringEntry Id - network
Acl StringEntry Name - The name of entry.
- policy String
- The policy of entry, default is
accept
. The value can beaccept
ordrop
. - port String
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction. When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
, which means port 1 to port 200, port 80. - priority Integer
- protocol String
- The protocol of entry, default is
all
. The value can beicmp
orgre
ortcp
orudp
orall
. - source
Cidr StringIp - The SourceCidrIp of entry.
- description string
- The description of entry.
- network
Acl stringEntry Id - network
Acl stringEntry Name - The name of entry.
- policy string
- The policy of entry, default is
accept
. The value can beaccept
ordrop
. - port string
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction. When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
, which means port 1 to port 200, port 80. - priority number
- protocol string
- The protocol of entry, default is
all
. The value can beicmp
orgre
ortcp
orudp
orall
. - source
Cidr stringIp - The SourceCidrIp of entry.
- description str
- The description of entry.
- network_
acl_ strentry_ id - network_
acl_ strentry_ name - The name of entry.
- policy str
- The policy of entry, default is
accept
. The value can beaccept
ordrop
. - port str
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction. When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
, which means port 1 to port 200, port 80. - priority int
- protocol str
- The protocol of entry, default is
all
. The value can beicmp
orgre
ortcp
orudp
orall
. - source_
cidr_ strip - The SourceCidrIp of entry.
- description String
- The description of entry.
- network
Acl StringEntry Id - network
Acl StringEntry Name - The name of entry.
- policy String
- The policy of entry, default is
accept
. The value can beaccept
ordrop
. - port String
- The port of entry. Default is
-1/-1
. When Protocol isall
,icmp
orgre
, the port range is-1/-1
, which means no port restriction. When the Protocol istcp
orudp
, the port range is1~65535
, and the format is1/200
,80/80
, which means port 1 to port 200, port 80. - priority Number
- protocol String
- The protocol of entry, default is
all
. The value can beicmp
orgre
ortcp
orudp
orall
. - source
Cidr StringIp - The SourceCidrIp of entry.
Import
Network Acl can be imported using the id, e.g.
$ pulumi import volcengine:vpc/networkAcl:NetworkAcl default nacl-172leak37mi9s4d1w33pswqkh
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.