1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. NetworkAcl
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.vpc.NetworkAcl

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    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=[{
            "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=[{
            "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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NetworkAcl resource accepts the following input properties:

    VpcId string
    The vpc id of Network Acl.
    Description string
    The description of the Network Acl.
    EgressAclEntries List<NetworkAclEgressAclEntry>
    The egress entries of Network Acl.
    IngressAclEntries List<NetworkAclIngressAclEntry>
    The ingress entries of Network Acl.
    NetworkAclName string
    The name of Network Acl.
    ProjectName string
    The project name of the network acl.
    VpcId string
    The vpc id of Network Acl.
    Description string
    The description of the Network Acl.
    EgressAclEntries []NetworkAclEgressAclEntryArgs
    The egress entries of Network Acl.
    IngressAclEntries []NetworkAclIngressAclEntryArgs
    The ingress entries of Network Acl.
    NetworkAclName string
    The name of Network Acl.
    ProjectName string
    The project name of the network acl.
    vpcId String
    The vpc id of Network Acl.
    description String
    The description of the Network Acl.
    egressAclEntries List<NetworkAclEgressAclEntry>
    The egress entries of Network Acl.
    ingressAclEntries List<NetworkAclIngressAclEntry>
    The ingress entries of Network Acl.
    networkAclName String
    The name of Network Acl.
    projectName String
    The project name of the network acl.
    vpcId string
    The vpc id of Network Acl.
    description string
    The description of the Network Acl.
    egressAclEntries NetworkAclEgressAclEntry[]
    The egress entries of Network Acl.
    ingressAclEntries NetworkAclIngressAclEntry[]
    The ingress entries of Network Acl.
    networkAclName string
    The name of Network Acl.
    projectName 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_entries Sequence[NetworkAclEgressAclEntryArgs]
    The egress entries of Network Acl.
    ingress_acl_entries Sequence[NetworkAclIngressAclEntryArgs]
    The ingress entries of Network Acl.
    network_acl_name str
    The name of Network Acl.
    project_name str
    The project name of the network acl.
    vpcId String
    The vpc id of Network Acl.
    description String
    The description of the Network Acl.
    egressAclEntries List<Property Map>
    The egress entries of Network Acl.
    ingressAclEntries List<Property Map>
    The ingress entries of Network Acl.
    networkAclName String
    The name of Network Acl.
    projectName 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.
    The following state arguments are supported:
    Description string
    The description of the Network Acl.
    EgressAclEntries List<NetworkAclEgressAclEntry>
    The egress entries of Network Acl.
    IngressAclEntries List<NetworkAclIngressAclEntry>
    The ingress entries of Network Acl.
    NetworkAclName string
    The name of Network Acl.
    ProjectName string
    The project name of the network acl.
    VpcId string
    The vpc id of Network Acl.
    Description string
    The description of the Network Acl.
    EgressAclEntries []NetworkAclEgressAclEntryArgs
    The egress entries of Network Acl.
    IngressAclEntries []NetworkAclIngressAclEntryArgs
    The ingress entries of Network Acl.
    NetworkAclName string
    The name of Network Acl.
    ProjectName string
    The project name of the network acl.
    VpcId string
    The vpc id of Network Acl.
    description String
    The description of the Network Acl.
    egressAclEntries List<NetworkAclEgressAclEntry>
    The egress entries of Network Acl.
    ingressAclEntries List<NetworkAclIngressAclEntry>
    The ingress entries of Network Acl.
    networkAclName String
    The name of Network Acl.
    projectName String
    The project name of the network acl.
    vpcId String
    The vpc id of Network Acl.
    description string
    The description of the Network Acl.
    egressAclEntries NetworkAclEgressAclEntry[]
    The egress entries of Network Acl.
    ingressAclEntries NetworkAclIngressAclEntry[]
    The ingress entries of Network Acl.
    networkAclName string
    The name of Network Acl.
    projectName string
    The project name of the network acl.
    vpcId string
    The vpc id of Network Acl.
    description str
    The description of the Network Acl.
    egress_acl_entries Sequence[NetworkAclEgressAclEntryArgs]
    The egress entries of Network Acl.
    ingress_acl_entries Sequence[NetworkAclIngressAclEntryArgs]
    The ingress entries of Network Acl.
    network_acl_name str
    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.
    egressAclEntries List<Property Map>
    The egress entries of Network Acl.
    ingressAclEntries List<Property Map>
    The ingress entries of Network Acl.
    networkAclName String
    The name of Network Acl.
    projectName String
    The project name of the network acl.
    vpcId String
    The vpc id of Network Acl.

    Supporting Types

    NetworkAclEgressAclEntry, NetworkAclEgressAclEntryArgs

    Description string
    The description of entry.
    DestinationCidrIp string
    The DestinationCidrIp of entry.
    NetworkAclEntryId string
    NetworkAclEntryName string
    The name of entry.
    Policy string
    The policy of entry. Default is accept. The value can be accept or drop.
    Port string
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction.When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 or gre or tcp or udp or all. Default is all.
    Description string
    The description of entry.
    DestinationCidrIp string
    The DestinationCidrIp of entry.
    NetworkAclEntryId string
    NetworkAclEntryName string
    The name of entry.
    Policy string
    The policy of entry. Default is accept. The value can be accept or drop.
    Port string
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction.When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 or gre or tcp or udp or all. Default is all.
    description String
    The description of entry.
    destinationCidrIp String
    The DestinationCidrIp of entry.
    networkAclEntryId String
    networkAclEntryName String
    The name of entry.
    policy String
    The policy of entry. Default is accept. The value can be accept or drop.
    port String
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction.When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 or gre or tcp or udp or all. Default is all.
    description string
    The description of entry.
    destinationCidrIp string
    The DestinationCidrIp of entry.
    networkAclEntryId string
    networkAclEntryName string
    The name of entry.
    policy string
    The policy of entry. Default is accept. The value can be accept or drop.
    port string
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction.When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 or gre or tcp or udp or all. Default is all.
    description str
    The description of entry.
    destination_cidr_ip str
    The DestinationCidrIp of entry.
    network_acl_entry_id str
    network_acl_entry_name str
    The name of entry.
    policy str
    The policy of entry. Default is accept. The value can be accept or drop.
    port str
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction.When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 or gre or tcp or udp or all. Default is all.
    description String
    The description of entry.
    destinationCidrIp String
    The DestinationCidrIp of entry.
    networkAclEntryId String
    networkAclEntryName String
    The name of entry.
    policy String
    The policy of entry. Default is accept. The value can be accept or drop.
    port String
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction.When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 or gre or tcp or udp or all. Default is all.

    NetworkAclIngressAclEntry, NetworkAclIngressAclEntryArgs

    Description string
    The description of entry.
    NetworkAclEntryId string
    NetworkAclEntryName string
    The name of entry.
    Policy string
    The policy of entry, default is accept. The value can be accept or drop.
    Port string
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction. When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 be icmp or gre or tcp or udp or all.
    SourceCidrIp string
    The SourceCidrIp of entry.
    Description string
    The description of entry.
    NetworkAclEntryId string
    NetworkAclEntryName string
    The name of entry.
    Policy string
    The policy of entry, default is accept. The value can be accept or drop.
    Port string
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction. When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 be icmp or gre or tcp or udp or all.
    SourceCidrIp string
    The SourceCidrIp of entry.
    description String
    The description of entry.
    networkAclEntryId String
    networkAclEntryName String
    The name of entry.
    policy String
    The policy of entry, default is accept. The value can be accept or drop.
    port String
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction. When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 be icmp or gre or tcp or udp or all.
    sourceCidrIp String
    The SourceCidrIp of entry.
    description string
    The description of entry.
    networkAclEntryId string
    networkAclEntryName string
    The name of entry.
    policy string
    The policy of entry, default is accept. The value can be accept or drop.
    port string
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction. When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 be icmp or gre or tcp or udp or all.
    sourceCidrIp string
    The SourceCidrIp of entry.
    description str
    The description of entry.
    network_acl_entry_id str
    network_acl_entry_name str
    The name of entry.
    policy str
    The policy of entry, default is accept. The value can be accept or drop.
    port str
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction. When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 be icmp or gre or tcp or udp or all.
    source_cidr_ip str
    The SourceCidrIp of entry.
    description String
    The description of entry.
    networkAclEntryId String
    networkAclEntryName String
    The name of entry.
    policy String
    The policy of entry, default is accept. The value can be accept or drop.
    port String
    The port of entry. Default is -1/-1. When Protocol is all, icmp or gre, the port range is -1/-1, which means no port restriction. When the Protocol is tcp or udp, the port range is 1~65535, and the format is 1/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 be icmp or gre or tcp or udp or all.
    sourceCidrIp String
    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.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine