tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getVpcAcls
Start a Neo task
Explain and create a tencentcloud.getVpcAcls resource
tencentcloud 1.82.35 published on Friday, Nov 7, 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(GetVpcAclsArgs.builder()
.build());
}
}
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",
vpcId: "vpc-2l5kmsbx",
name: "tf-example",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_vpc_acls(id="acl-b7kiagdc",
vpc_id="vpc-2l5kmsbx",
name="tf-example")
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"),
VpcId: pulumi.StringRef("vpc-2l5kmsbx"),
Name: pulumi.StringRef("tf-example"),
}, 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",
VpcId = "vpc-2l5kmsbx",
Name = "tf-example",
});
});
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")
.vpcId("vpc-2l5kmsbx")
.name("tf-example")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getVpcAcls
arguments:
id: acl-b7kiagdc
vpcId: vpc-2l5kmsbx
name: tf-example
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 dictionaryThe following arguments are supported:
- Id string
- ID of the network ACL instance.
- Name string
- Name of the network ACL.
- Result
Output stringFile - Used to save results.
- Vpc
Id string - ID of the VPC instance.
- Id string
- ID of the network ACL instance.
- Name string
- Name of the network ACL.
- Result
Output stringFile - Used to save results.
- Vpc
Id string - ID of the VPC instance.
- id String
- ID of the network ACL instance.
- name String
- Name of the network ACL.
- result
Output StringFile - Used to save results.
- vpc
Id String - ID of the VPC instance.
- id string
- ID of the network ACL instance.
- name string
- Name of the network ACL.
- result
Output stringFile - Used to save results.
- vpc
Id string - ID of the VPC instance.
- id str
- ID of the network ACL instance.
- name str
- Name of the network ACL.
- result_
output_ strfile - 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.
- result
Output StringFile - Used to save results.
- vpc
Id String - ID of the VPC instance.
getVpcAcls Result
The following output properties are available:
- Acl
Lists List<GetVpc Acls Acl List> - 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.
- Result
Output stringFile - Vpc
Id string - ID of the VPC instance.
- Acl
Lists []GetVpc Acls Acl List - 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.
- Result
Output stringFile - Vpc
Id string - ID of the VPC instance.
- acl
Lists List<GetVpc Acls Acl List> - 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.
- result
Output StringFile - vpc
Id String - ID of the VPC instance.
- acl
Lists GetVpc Acls Acl List[] - 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.
- result
Output stringFile - vpc
Id string - ID of the VPC instance.
- acl_
lists Sequence[GetVpc Acls Acl List] - 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_ strfile - vpc_
id str - ID of the VPC instance.
- acl
Lists 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.
- result
Output StringFile - vpc
Id String - ID of the VPC instance.
Supporting Types
GetVpcAclsAclList
- Create
Time string - Creation time.
- Egresses
List<Get
Vpc Acls Acl List Egress> - Outbound rules of the network ACL.
- Id string
- ID of the network ACL instance.
- Ingresses
List<Get
Vpc Acls Acl List Ingress> - Inbound rules of the network ACL.
- Name string
- Name of the network ACL.
- Subnets
List<Get
Vpc Acls Acl List Subnet> - Subnets associated with the network ACL.
- Vpc
Id string - ID of the VPC instance.
- Create
Time string - Creation time.
- Egresses
[]Get
Vpc Acls Acl List Egress - Outbound rules of the network ACL.
- Id string
- ID of the network ACL instance.
- Ingresses
[]Get
Vpc Acls Acl List Ingress - Inbound rules of the network ACL.
- Name string
- Name of the network ACL.
- Subnets
[]Get
Vpc Acls Acl List Subnet - Subnets associated with the network ACL.
- Vpc
Id string - ID of the VPC instance.
- create
Time String - Creation time.
- egresses
List<Get
Vpc Acls Acl List Egress> - Outbound rules of the network ACL.
- id String
- ID of the network ACL instance.
- ingresses
List<Get
Vpc Acls Acl List Ingress> - Inbound rules of the network ACL.
- name String
- Name of the network ACL.
- subnets
List<Get
Vpc Acls Acl List Subnet> - Subnets associated with the network ACL.
- vpc
Id String - ID of the VPC instance.
- create
Time string - Creation time.
- egresses
Get
Vpc Acls Acl List Egress[] - Outbound rules of the network ACL.
- id string
- ID of the network ACL instance.
- ingresses
Get
Vpc Acls Acl List Ingress[] - Inbound rules of the network ACL.
- name string
- Name of the network ACL.
- subnets
Get
Vpc Acls Acl List Subnet[] - Subnets associated with the network ACL.
- vpc
Id string - ID of the VPC instance.
- create_
time str - Creation time.
- egresses
Sequence[Get
Vpc Acls Acl List Egress] - Outbound rules of the network ACL.
- id str
- ID of the network ACL instance.
- ingresses
Sequence[Get
Vpc Acls Acl List Ingress] - Inbound rules of the network ACL.
- name str
- Name of the network ACL.
- subnets
Sequence[Get
Vpc Acls Acl List Subnet] - Subnets associated with the network ACL.
- vpc_
id str - ID of the VPC instance.
- create
Time 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.
- vpc
Id String - ID of the VPC instance.
GetVpcAclsAclListEgress
- Cidr
Block 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 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 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 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.
- cidr
Block 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
- Cidr
Block 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 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 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 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.
- cidr
Block 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
- Cidr
Block string - The IPv4 CIDR of the subnet.
- Subnet
Id string - Subnet instance ID.
- Subnet
Name string - Subnet name.
- Dictionary<string, string>
- Tags of the subnet.
- Vpc
Id string - ID of the VPC instance.
- Cidr
Block string - The IPv4 CIDR of the subnet.
- Subnet
Id string - Subnet instance ID.
- Subnet
Name string - Subnet name.
- map[string]string
- Tags of the subnet.
- Vpc
Id string - ID of the VPC instance.
- cidr
Block String - The IPv4 CIDR of the subnet.
- subnet
Id String - Subnet instance ID.
- subnet
Name String - Subnet name.
- Map<String,String>
- Tags of the subnet.
- vpc
Id String - ID of the VPC instance.
- cidr
Block string - The IPv4 CIDR of the subnet.
- subnet
Id string - Subnet instance ID.
- subnet
Name string - Subnet name.
- {[key: string]: string}
- Tags of the subnet.
- vpc
Id 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.
- Mapping[str, str]
- Tags of the subnet.
- vpc_
id str - ID of the VPC instance.
- cidr
Block String - The IPv4 CIDR of the subnet.
- subnet
Id String - Subnet instance ID.
- subnet
Name String - Subnet name.
- Map<String>
- Tags of the subnet.
- vpc
Id String - ID of the VPC instance.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
