1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getVpcAcls
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getVpcAcls

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query VPC Network ACL information.

    Example Usage

    Query all acls

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getVpcAcls({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_vpc_acls()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetVpcAcls(ctx, &tencentcloud.GetVpcAclsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Tencentcloud.GetVpcAcls.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetVpcAclsArgs;
    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 example = TencentcloudFunctions.getVpcAcls();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getVpcAcls
          arguments: {}
    

    Query acls by filters

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getVpcAcls({
        id: "acl-b7kiagdc",
        name: "tf-example",
        vpcId: "vpc-2l5kmsbx",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_vpc_acls(id="acl-b7kiagdc",
        name="tf-example",
        vpc_id="vpc-2l5kmsbx")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetVpcAcls(ctx, &tencentcloud.GetVpcAclsArgs{
    			Id:    pulumi.StringRef("acl-b7kiagdc"),
    			Name:  pulumi.StringRef("tf-example"),
    			VpcId: pulumi.StringRef("vpc-2l5kmsbx"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Tencentcloud.GetVpcAcls.Invoke(new()
        {
            Id = "acl-b7kiagdc",
            Name = "tf-example",
            VpcId = "vpc-2l5kmsbx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetVpcAclsArgs;
    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 example = TencentcloudFunctions.getVpcAcls(GetVpcAclsArgs.builder()
                .id("acl-b7kiagdc")
                .name("tf-example")
                .vpcId("vpc-2l5kmsbx")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getVpcAcls
          arguments:
            id: acl-b7kiagdc
            name: tf-example
            vpcId: vpc-2l5kmsbx
    

    Using getVpcAcls

    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 getVpcAcls(args: GetVpcAclsArgs, opts?: InvokeOptions): Promise<GetVpcAclsResult>
    function getVpcAclsOutput(args: GetVpcAclsOutputArgs, opts?: InvokeOptions): Output<GetVpcAclsResult>
    def get_vpc_acls(id: Optional[str] = None,
                     name: Optional[str] = None,
                     result_output_file: Optional[str] = None,
                     vpc_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetVpcAclsResult
    def get_vpc_acls_output(id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     result_output_file: Optional[pulumi.Input[str]] = None,
                     vpc_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetVpcAclsResult]
    func GetVpcAcls(ctx *Context, args *GetVpcAclsArgs, opts ...InvokeOption) (*GetVpcAclsResult, error)
    func GetVpcAclsOutput(ctx *Context, args *GetVpcAclsOutputArgs, opts ...InvokeOption) GetVpcAclsResultOutput

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

    public static class GetVpcAcls 
    {
        public static Task<GetVpcAclsResult> InvokeAsync(GetVpcAclsArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcAclsResult> Invoke(GetVpcAclsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcAclsResult> getVpcAcls(GetVpcAclsArgs args, InvokeOptions options)
    public static Output<GetVpcAclsResult> getVpcAcls(GetVpcAclsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getVpcAcls:getVpcAcls
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the network ACL instance.
    Name string
    Name of the network ACL.
    ResultOutputFile string
    Used to save results.
    VpcId string
    ID of the VPC instance.
    Id string
    ID of the network ACL instance.
    Name string
    Name of the network ACL.
    ResultOutputFile string
    Used to save results.
    VpcId string
    ID of the VPC instance.
    id String
    ID of the network ACL instance.
    name String
    Name of the network ACL.
    resultOutputFile String
    Used to save results.
    vpcId String
    ID of the VPC instance.
    id string
    ID of the network ACL instance.
    name string
    Name of the network ACL.
    resultOutputFile string
    Used to save results.
    vpcId string
    ID of the VPC instance.
    id str
    ID of the network ACL instance.
    name str
    Name of the network ACL.
    result_output_file str
    Used to save results.
    vpc_id str
    ID of the VPC instance.
    id String
    ID of the network ACL instance.
    name String
    Name of the network ACL.
    resultOutputFile String
    Used to save results.
    vpcId String
    ID of the VPC instance.

    getVpcAcls Result

    The following output properties are available:

    AclLists List<GetVpcAclsAclList>
    The information list of the VPC. Each element contains the following attributes:
    Id string
    ID of the network ACL instance.
    Name string
    Name of the network ACL.
    ResultOutputFile string
    VpcId string
    ID of the VPC instance.
    AclLists []GetVpcAclsAclList
    The information list of the VPC. Each element contains the following attributes:
    Id string
    ID of the network ACL instance.
    Name string
    Name of the network ACL.
    ResultOutputFile string
    VpcId string
    ID of the VPC instance.
    aclLists List<GetVpcAclsAclList>
    The information list of the VPC. Each element contains the following attributes:
    id String
    ID of the network ACL instance.
    name String
    Name of the network ACL.
    resultOutputFile String
    vpcId String
    ID of the VPC instance.
    aclLists GetVpcAclsAclList[]
    The information list of the VPC. Each element contains the following attributes:
    id string
    ID of the network ACL instance.
    name string
    Name of the network ACL.
    resultOutputFile string
    vpcId string
    ID of the VPC instance.
    acl_lists Sequence[GetVpcAclsAclList]
    The information list of the VPC. Each element contains the following attributes:
    id str
    ID of the network ACL instance.
    name str
    Name of the network ACL.
    result_output_file str
    vpc_id str
    ID of the VPC instance.
    aclLists List<Property Map>
    The information list of the VPC. Each element contains the following attributes:
    id String
    ID of the network ACL instance.
    name String
    Name of the network ACL.
    resultOutputFile String
    vpcId String
    ID of the VPC instance.

    Supporting Types

    GetVpcAclsAclList

    CreateTime string
    Creation time.
    Egresses List<GetVpcAclsAclListEgress>
    Outbound rules of the network ACL.
    Id string
    ID of the network ACL instance.
    Ingresses List<GetVpcAclsAclListIngress>
    Inbound rules of the network ACL.
    Name string
    Name of the network ACL.
    Subnets List<GetVpcAclsAclListSubnet>
    Subnets associated with the network ACL.
    VpcId string
    ID of the VPC instance.
    CreateTime string
    Creation time.
    Egresses []GetVpcAclsAclListEgress
    Outbound rules of the network ACL.
    Id string
    ID of the network ACL instance.
    Ingresses []GetVpcAclsAclListIngress
    Inbound rules of the network ACL.
    Name string
    Name of the network ACL.
    Subnets []GetVpcAclsAclListSubnet
    Subnets associated with the network ACL.
    VpcId string
    ID of the VPC instance.
    createTime String
    Creation time.
    egresses List<GetVpcAclsAclListEgress>
    Outbound rules of the network ACL.
    id String
    ID of the network ACL instance.
    ingresses List<GetVpcAclsAclListIngress>
    Inbound rules of the network ACL.
    name String
    Name of the network ACL.
    subnets List<GetVpcAclsAclListSubnet>
    Subnets associated with the network ACL.
    vpcId String
    ID of the VPC instance.
    createTime string
    Creation time.
    egresses GetVpcAclsAclListEgress[]
    Outbound rules of the network ACL.
    id string
    ID of the network ACL instance.
    ingresses GetVpcAclsAclListIngress[]
    Inbound rules of the network ACL.
    name string
    Name of the network ACL.
    subnets GetVpcAclsAclListSubnet[]
    Subnets associated with the network ACL.
    vpcId string
    ID of the VPC instance.
    create_time str
    Creation time.
    egresses Sequence[GetVpcAclsAclListEgress]
    Outbound rules of the network ACL.
    id str
    ID of the network ACL instance.
    ingresses Sequence[GetVpcAclsAclListIngress]
    Inbound rules of the network ACL.
    name str
    Name of the network ACL.
    subnets Sequence[GetVpcAclsAclListSubnet]
    Subnets associated with the network ACL.
    vpc_id str
    ID of the VPC instance.
    createTime String
    Creation time.
    egresses List<Property Map>
    Outbound rules of the network ACL.
    id String
    ID of the network ACL instance.
    ingresses List<Property Map>
    Inbound rules of the network ACL.
    name String
    Name of the network ACL.
    subnets List<Property Map>
    Subnets associated with the network ACL.
    vpcId String
    ID of the VPC instance.

    GetVpcAclsAclListEgress

    CidrBlock string
    The IPv4 CIDR of the subnet.
    Description string
    Rule description.
    Policy string
    Rule policy of Network ACL.
    Port string
    Range of the port.
    Protocol string
    Type of IP protocol.
    CidrBlock string
    The IPv4 CIDR of the subnet.
    Description string
    Rule description.
    Policy string
    Rule policy of Network ACL.
    Port string
    Range of the port.
    Protocol string
    Type of IP protocol.
    cidrBlock String
    The IPv4 CIDR of the subnet.
    description String
    Rule description.
    policy String
    Rule policy of Network ACL.
    port String
    Range of the port.
    protocol String
    Type of IP protocol.
    cidrBlock string
    The IPv4 CIDR of the subnet.
    description string
    Rule description.
    policy string
    Rule policy of Network ACL.
    port string
    Range of the port.
    protocol string
    Type of IP protocol.
    cidr_block str
    The IPv4 CIDR of the subnet.
    description str
    Rule description.
    policy str
    Rule policy of Network ACL.
    port str
    Range of the port.
    protocol str
    Type of IP protocol.
    cidrBlock String
    The IPv4 CIDR of the subnet.
    description String
    Rule description.
    policy String
    Rule policy of Network ACL.
    port String
    Range of the port.
    protocol String
    Type of IP protocol.

    GetVpcAclsAclListIngress

    CidrBlock string
    The IPv4 CIDR of the subnet.
    Description string
    Rule description.
    Policy string
    Rule policy of Network ACL.
    Port string
    Range of the port.
    Protocol string
    Type of IP protocol.
    CidrBlock string
    The IPv4 CIDR of the subnet.
    Description string
    Rule description.
    Policy string
    Rule policy of Network ACL.
    Port string
    Range of the port.
    Protocol string
    Type of IP protocol.
    cidrBlock String
    The IPv4 CIDR of the subnet.
    description String
    Rule description.
    policy String
    Rule policy of Network ACL.
    port String
    Range of the port.
    protocol String
    Type of IP protocol.
    cidrBlock string
    The IPv4 CIDR of the subnet.
    description string
    Rule description.
    policy string
    Rule policy of Network ACL.
    port string
    Range of the port.
    protocol string
    Type of IP protocol.
    cidr_block str
    The IPv4 CIDR of the subnet.
    description str
    Rule description.
    policy str
    Rule policy of Network ACL.
    port str
    Range of the port.
    protocol str
    Type of IP protocol.
    cidrBlock String
    The IPv4 CIDR of the subnet.
    description String
    Rule description.
    policy String
    Rule policy of Network ACL.
    port String
    Range of the port.
    protocol String
    Type of IP protocol.

    GetVpcAclsAclListSubnet

    CidrBlock string
    The IPv4 CIDR of the subnet.
    SubnetId string
    Subnet instance ID.
    SubnetName string
    Subnet name.
    Tags Dictionary<string, string>
    Tags of the subnet.
    VpcId string
    ID of the VPC instance.
    CidrBlock string
    The IPv4 CIDR of the subnet.
    SubnetId string
    Subnet instance ID.
    SubnetName string
    Subnet name.
    Tags map[string]string
    Tags of the subnet.
    VpcId string
    ID of the VPC instance.
    cidrBlock String
    The IPv4 CIDR of the subnet.
    subnetId String
    Subnet instance ID.
    subnetName String
    Subnet name.
    tags Map<String,String>
    Tags of the subnet.
    vpcId String
    ID of the VPC instance.
    cidrBlock string
    The IPv4 CIDR of the subnet.
    subnetId string
    Subnet instance ID.
    subnetName string
    Subnet name.
    tags {[key: string]: string}
    Tags of the subnet.
    vpcId string
    ID of the VPC instance.
    cidr_block str
    The IPv4 CIDR of the subnet.
    subnet_id str
    Subnet instance ID.
    subnet_name str
    Subnet name.
    tags Mapping[str, str]
    Tags of the subnet.
    vpc_id str
    ID of the VPC instance.
    cidrBlock String
    The IPv4 CIDR of the subnet.
    subnetId String
    Subnet instance ID.
    subnetName String
    Subnet name.
    tags Map<String>
    Tags of the subnet.
    vpcId String
    ID of the VPC instance.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack