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

tencentcloud.getEnis

Explore with Pulumi AI

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

    Use this data source to query query ENIs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const name = tencentcloud.getEnis({
        name: "test eni",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    name = tencentcloud.get_enis(name="test eni")
    
    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.GetEnis(ctx, &tencentcloud.GetEnisArgs{
    			Name: pulumi.StringRef("test eni"),
    		}, 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 name = Tencentcloud.GetEnis.Invoke(new()
        {
            Name = "test eni",
        });
    
    });
    
    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.GetEnisArgs;
    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 name = TencentcloudFunctions.getEnis(GetEnisArgs.builder()
                .name("test eni")
                .build());
    
        }
    }
    
    variables:
      name:
        fn::invoke:
          function: tencentcloud:getEnis
          arguments:
            name: test eni
    

    Using getEnis

    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 getEnis(args: GetEnisArgs, opts?: InvokeOptions): Promise<GetEnisResult>
    function getEnisOutput(args: GetEnisOutputArgs, opts?: InvokeOptions): Output<GetEnisResult>
    def get_enis(description: Optional[str] = None,
                 id: Optional[str] = None,
                 ids: Optional[Sequence[str]] = None,
                 instance_id: Optional[str] = None,
                 ipv4: Optional[str] = None,
                 name: Optional[str] = None,
                 result_output_file: Optional[str] = None,
                 security_group: Optional[str] = None,
                 subnet_id: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 vpc_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetEnisResult
    def get_enis_output(description: Optional[pulumi.Input[str]] = None,
                 id: Optional[pulumi.Input[str]] = None,
                 ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 instance_id: Optional[pulumi.Input[str]] = None,
                 ipv4: Optional[pulumi.Input[str]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 result_output_file: Optional[pulumi.Input[str]] = None,
                 security_group: Optional[pulumi.Input[str]] = None,
                 subnet_id: Optional[pulumi.Input[str]] = None,
                 tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                 vpc_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetEnisResult]
    func GetEnis(ctx *Context, args *GetEnisArgs, opts ...InvokeOption) (*GetEnisResult, error)
    func GetEnisOutput(ctx *Context, args *GetEnisOutputArgs, opts ...InvokeOption) GetEnisResultOutput

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

    public static class GetEnis 
    {
        public static Task<GetEnisResult> InvokeAsync(GetEnisArgs args, InvokeOptions? opts = null)
        public static Output<GetEnisResult> Invoke(GetEnisInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnisResult> getEnis(GetEnisArgs args, InvokeOptions options)
    public static Output<GetEnisResult> getEnis(GetEnisArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getEnis:getEnis
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Description string
    Description of the ENI. Conflict with ids.
    Id string
    ID of the ENI.
    Ids List<string>
    ID of the ENIs to be queried. Conflict with vpc_id,subnet_id,instance_id,security_group,name,ipv4 and tags.
    InstanceId string
    ID of the instance which bind the ENI. Conflict with ids.
    Ipv4 string
    Intranet IP of the ENI. Conflict with ids.
    Name string
    Name of the ENI to be queried. Conflict with ids.
    ResultOutputFile string
    Used to save results.
    SecurityGroup string
    A set of security group IDs which bind the ENI. Conflict with ids.
    SubnetId string
    ID of the subnet within this vpc to be queried. Conflict with ids.
    Tags Dictionary<string, string>
    Tags of the ENI. Conflict with ids.
    VpcId string
    ID of the vpc to be queried. Conflict with ids.
    Description string
    Description of the ENI. Conflict with ids.
    Id string
    ID of the ENI.
    Ids []string
    ID of the ENIs to be queried. Conflict with vpc_id,subnet_id,instance_id,security_group,name,ipv4 and tags.
    InstanceId string
    ID of the instance which bind the ENI. Conflict with ids.
    Ipv4 string
    Intranet IP of the ENI. Conflict with ids.
    Name string
    Name of the ENI to be queried. Conflict with ids.
    ResultOutputFile string
    Used to save results.
    SecurityGroup string
    A set of security group IDs which bind the ENI. Conflict with ids.
    SubnetId string
    ID of the subnet within this vpc to be queried. Conflict with ids.
    Tags map[string]string
    Tags of the ENI. Conflict with ids.
    VpcId string
    ID of the vpc to be queried. Conflict with ids.
    description String
    Description of the ENI. Conflict with ids.
    id String
    ID of the ENI.
    ids List<String>
    ID of the ENIs to be queried. Conflict with vpc_id,subnet_id,instance_id,security_group,name,ipv4 and tags.
    instanceId String
    ID of the instance which bind the ENI. Conflict with ids.
    ipv4 String
    Intranet IP of the ENI. Conflict with ids.
    name String
    Name of the ENI to be queried. Conflict with ids.
    resultOutputFile String
    Used to save results.
    securityGroup String
    A set of security group IDs which bind the ENI. Conflict with ids.
    subnetId String
    ID of the subnet within this vpc to be queried. Conflict with ids.
    tags Map<String,String>
    Tags of the ENI. Conflict with ids.
    vpcId String
    ID of the vpc to be queried. Conflict with ids.
    description string
    Description of the ENI. Conflict with ids.
    id string
    ID of the ENI.
    ids string[]
    ID of the ENIs to be queried. Conflict with vpc_id,subnet_id,instance_id,security_group,name,ipv4 and tags.
    instanceId string
    ID of the instance which bind the ENI. Conflict with ids.
    ipv4 string
    Intranet IP of the ENI. Conflict with ids.
    name string
    Name of the ENI to be queried. Conflict with ids.
    resultOutputFile string
    Used to save results.
    securityGroup string
    A set of security group IDs which bind the ENI. Conflict with ids.
    subnetId string
    ID of the subnet within this vpc to be queried. Conflict with ids.
    tags {[key: string]: string}
    Tags of the ENI. Conflict with ids.
    vpcId string
    ID of the vpc to be queried. Conflict with ids.
    description str
    Description of the ENI. Conflict with ids.
    id str
    ID of the ENI.
    ids Sequence[str]
    ID of the ENIs to be queried. Conflict with vpc_id,subnet_id,instance_id,security_group,name,ipv4 and tags.
    instance_id str
    ID of the instance which bind the ENI. Conflict with ids.
    ipv4 str
    Intranet IP of the ENI. Conflict with ids.
    name str
    Name of the ENI to be queried. Conflict with ids.
    result_output_file str
    Used to save results.
    security_group str
    A set of security group IDs which bind the ENI. Conflict with ids.
    subnet_id str
    ID of the subnet within this vpc to be queried. Conflict with ids.
    tags Mapping[str, str]
    Tags of the ENI. Conflict with ids.
    vpc_id str
    ID of the vpc to be queried. Conflict with ids.
    description String
    Description of the ENI. Conflict with ids.
    id String
    ID of the ENI.
    ids List<String>
    ID of the ENIs to be queried. Conflict with vpc_id,subnet_id,instance_id,security_group,name,ipv4 and tags.
    instanceId String
    ID of the instance which bind the ENI. Conflict with ids.
    ipv4 String
    Intranet IP of the ENI. Conflict with ids.
    name String
    Name of the ENI to be queried. Conflict with ids.
    resultOutputFile String
    Used to save results.
    securityGroup String
    A set of security group IDs which bind the ENI. Conflict with ids.
    subnetId String
    ID of the subnet within this vpc to be queried. Conflict with ids.
    tags Map<String>
    Tags of the ENI. Conflict with ids.
    vpcId String
    ID of the vpc to be queried. Conflict with ids.

    getEnis Result

    The following output properties are available:

    Enis List<GetEnisEni>
    An information list of ENIs. Each element contains the following attributes:
    Id string
    ID of the ENI.
    Description string
    Message description.
    Ids List<string>
    InstanceId string
    ID of the instance which bind the ENI.
    Ipv4 string
    Name string
    Name of the ENI.
    ResultOutputFile string
    SecurityGroup string
    SubnetId string
    ID of the subnet within this vpc.
    Tags Dictionary<string, string>
    Tags of the ENI.
    VpcId string
    ID of the vpc.
    Enis []GetEnisEni
    An information list of ENIs. Each element contains the following attributes:
    Id string
    ID of the ENI.
    Description string
    Message description.
    Ids []string
    InstanceId string
    ID of the instance which bind the ENI.
    Ipv4 string
    Name string
    Name of the ENI.
    ResultOutputFile string
    SecurityGroup string
    SubnetId string
    ID of the subnet within this vpc.
    Tags map[string]string
    Tags of the ENI.
    VpcId string
    ID of the vpc.
    enis List<GetEnisEni>
    An information list of ENIs. Each element contains the following attributes:
    id String
    ID of the ENI.
    description String
    Message description.
    ids List<String>
    instanceId String
    ID of the instance which bind the ENI.
    ipv4 String
    name String
    Name of the ENI.
    resultOutputFile String
    securityGroup String
    subnetId String
    ID of the subnet within this vpc.
    tags Map<String,String>
    Tags of the ENI.
    vpcId String
    ID of the vpc.
    enis GetEnisEni[]
    An information list of ENIs. Each element contains the following attributes:
    id string
    ID of the ENI.
    description string
    Message description.
    ids string[]
    instanceId string
    ID of the instance which bind the ENI.
    ipv4 string
    name string
    Name of the ENI.
    resultOutputFile string
    securityGroup string
    subnetId string
    ID of the subnet within this vpc.
    tags {[key: string]: string}
    Tags of the ENI.
    vpcId string
    ID of the vpc.
    enis Sequence[GetEnisEni]
    An information list of ENIs. Each element contains the following attributes:
    id str
    ID of the ENI.
    description str
    Message description.
    ids Sequence[str]
    instance_id str
    ID of the instance which bind the ENI.
    ipv4 str
    name str
    Name of the ENI.
    result_output_file str
    security_group str
    subnet_id str
    ID of the subnet within this vpc.
    tags Mapping[str, str]
    Tags of the ENI.
    vpc_id str
    ID of the vpc.
    enis List<Property Map>
    An information list of ENIs. Each element contains the following attributes:
    id String
    ID of the ENI.
    description String
    Message description.
    ids List<String>
    instanceId String
    ID of the instance which bind the ENI.
    ipv4 String
    name String
    Name of the ENI.
    resultOutputFile String
    securityGroup String
    subnetId String
    ID of the subnet within this vpc.
    tags Map<String>
    Tags of the ENI.
    vpcId String
    ID of the vpc.

    Supporting Types

    GetEnisEni

    CdcId string
    CDC instance ID.
    CreateTime string
    Creation time of the ENI.
    Description string
    Description of the ENI. Conflict with ids.
    Id string
    ID of the ENI.
    InstanceId string
    ID of the instance which bind the ENI. Conflict with ids.
    Ipv4s List<GetEnisEniIpv4>
    A set of intranet IPv4s.
    Ipv6s List<GetEnisEniIpv6>
    A set of intranet IPv6s.
    Mac string
    MAC address.
    Name string
    Name of the ENI to be queried. Conflict with ids.
    Primary bool
    Indicates whether the IP is primary.
    SecurityGroups List<string>
    A set of security group IDs which bind the ENI.
    State string
    States of the ENI.
    SubnetId string
    ID of the subnet within this vpc to be queried. Conflict with ids.
    Tags Dictionary<string, string>
    Tags of the ENI. Conflict with ids.
    VpcId string
    ID of the vpc to be queried. Conflict with ids.
    CdcId string
    CDC instance ID.
    CreateTime string
    Creation time of the ENI.
    Description string
    Description of the ENI. Conflict with ids.
    Id string
    ID of the ENI.
    InstanceId string
    ID of the instance which bind the ENI. Conflict with ids.
    Ipv4s []GetEnisEniIpv4
    A set of intranet IPv4s.
    Ipv6s []GetEnisEniIpv6
    A set of intranet IPv6s.
    Mac string
    MAC address.
    Name string
    Name of the ENI to be queried. Conflict with ids.
    Primary bool
    Indicates whether the IP is primary.
    SecurityGroups []string
    A set of security group IDs which bind the ENI.
    State string
    States of the ENI.
    SubnetId string
    ID of the subnet within this vpc to be queried. Conflict with ids.
    Tags map[string]string
    Tags of the ENI. Conflict with ids.
    VpcId string
    ID of the vpc to be queried. Conflict with ids.
    cdcId String
    CDC instance ID.
    createTime String
    Creation time of the ENI.
    description String
    Description of the ENI. Conflict with ids.
    id String
    ID of the ENI.
    instanceId String
    ID of the instance which bind the ENI. Conflict with ids.
    ipv4s List<GetEnisEniIpv4>
    A set of intranet IPv4s.
    ipv6s List<GetEnisEniIpv6>
    A set of intranet IPv6s.
    mac String
    MAC address.
    name String
    Name of the ENI to be queried. Conflict with ids.
    primary Boolean
    Indicates whether the IP is primary.
    securityGroups List<String>
    A set of security group IDs which bind the ENI.
    state String
    States of the ENI.
    subnetId String
    ID of the subnet within this vpc to be queried. Conflict with ids.
    tags Map<String,String>
    Tags of the ENI. Conflict with ids.
    vpcId String
    ID of the vpc to be queried. Conflict with ids.
    cdcId string
    CDC instance ID.
    createTime string
    Creation time of the ENI.
    description string
    Description of the ENI. Conflict with ids.
    id string
    ID of the ENI.
    instanceId string
    ID of the instance which bind the ENI. Conflict with ids.
    ipv4s GetEnisEniIpv4[]
    A set of intranet IPv4s.
    ipv6s GetEnisEniIpv6[]
    A set of intranet IPv6s.
    mac string
    MAC address.
    name string
    Name of the ENI to be queried. Conflict with ids.
    primary boolean
    Indicates whether the IP is primary.
    securityGroups string[]
    A set of security group IDs which bind the ENI.
    state string
    States of the ENI.
    subnetId string
    ID of the subnet within this vpc to be queried. Conflict with ids.
    tags {[key: string]: string}
    Tags of the ENI. Conflict with ids.
    vpcId string
    ID of the vpc to be queried. Conflict with ids.
    cdc_id str
    CDC instance ID.
    create_time str
    Creation time of the ENI.
    description str
    Description of the ENI. Conflict with ids.
    id str
    ID of the ENI.
    instance_id str
    ID of the instance which bind the ENI. Conflict with ids.
    ipv4s Sequence[GetEnisEniIpv4]
    A set of intranet IPv4s.
    ipv6s Sequence[GetEnisEniIpv6]
    A set of intranet IPv6s.
    mac str
    MAC address.
    name str
    Name of the ENI to be queried. Conflict with ids.
    primary bool
    Indicates whether the IP is primary.
    security_groups Sequence[str]
    A set of security group IDs which bind the ENI.
    state str
    States of the ENI.
    subnet_id str
    ID of the subnet within this vpc to be queried. Conflict with ids.
    tags Mapping[str, str]
    Tags of the ENI. Conflict with ids.
    vpc_id str
    ID of the vpc to be queried. Conflict with ids.
    cdcId String
    CDC instance ID.
    createTime String
    Creation time of the ENI.
    description String
    Description of the ENI. Conflict with ids.
    id String
    ID of the ENI.
    instanceId String
    ID of the instance which bind the ENI. Conflict with ids.
    ipv4s List<Property Map>
    A set of intranet IPv4s.
    ipv6s List<Property Map>
    A set of intranet IPv6s.
    mac String
    MAC address.
    name String
    Name of the ENI to be queried. Conflict with ids.
    primary Boolean
    Indicates whether the IP is primary.
    securityGroups List<String>
    A set of security group IDs which bind the ENI.
    state String
    States of the ENI.
    subnetId String
    ID of the subnet within this vpc to be queried. Conflict with ids.
    tags Map<String>
    Tags of the ENI. Conflict with ids.
    vpcId String
    ID of the vpc to be queried. Conflict with ids.

    GetEnisEniIpv4

    Description string
    Description of the ENI. Conflict with ids.
    Ip string
    Intranet IP.
    Primary bool
    Indicates whether the IP is primary.
    Description string
    Description of the ENI. Conflict with ids.
    Ip string
    Intranet IP.
    Primary bool
    Indicates whether the IP is primary.
    description String
    Description of the ENI. Conflict with ids.
    ip String
    Intranet IP.
    primary Boolean
    Indicates whether the IP is primary.
    description string
    Description of the ENI. Conflict with ids.
    ip string
    Intranet IP.
    primary boolean
    Indicates whether the IP is primary.
    description str
    Description of the ENI. Conflict with ids.
    ip str
    Intranet IP.
    primary bool
    Indicates whether the IP is primary.
    description String
    Description of the ENI. Conflict with ids.
    ip String
    Intranet IP.
    primary Boolean
    Indicates whether the IP is primary.

    GetEnisEniIpv6

    Address string
    IPv6 address, such as 3402:4e00:20:100:0:8cd9:2a67:71f3.
    AddressId string
    The ID of the EIP instance, such as eip-hxlqja90.
    Description string
    Description of the ENI. Conflict with ids.
    IsWanIpBlocked bool
    Whether the public IP is blocked.
    Primary bool
    Indicates whether the IP is primary.
    Address string
    IPv6 address, such as 3402:4e00:20:100:0:8cd9:2a67:71f3.
    AddressId string
    The ID of the EIP instance, such as eip-hxlqja90.
    Description string
    Description of the ENI. Conflict with ids.
    IsWanIpBlocked bool
    Whether the public IP is blocked.
    Primary bool
    Indicates whether the IP is primary.
    address String
    IPv6 address, such as 3402:4e00:20:100:0:8cd9:2a67:71f3.
    addressId String
    The ID of the EIP instance, such as eip-hxlqja90.
    description String
    Description of the ENI. Conflict with ids.
    isWanIpBlocked Boolean
    Whether the public IP is blocked.
    primary Boolean
    Indicates whether the IP is primary.
    address string
    IPv6 address, such as 3402:4e00:20:100:0:8cd9:2a67:71f3.
    addressId string
    The ID of the EIP instance, such as eip-hxlqja90.
    description string
    Description of the ENI. Conflict with ids.
    isWanIpBlocked boolean
    Whether the public IP is blocked.
    primary boolean
    Indicates whether the IP is primary.
    address str
    IPv6 address, such as 3402:4e00:20:100:0:8cd9:2a67:71f3.
    address_id str
    The ID of the EIP instance, such as eip-hxlqja90.
    description str
    Description of the ENI. Conflict with ids.
    is_wan_ip_blocked bool
    Whether the public IP is blocked.
    primary bool
    Indicates whether the IP is primary.
    address String
    IPv6 address, such as 3402:4e00:20:100:0:8cd9:2a67:71f3.
    addressId String
    The ID of the EIP instance, such as eip-hxlqja90.
    description String
    Description of the ENI. Conflict with ids.
    isWanIpBlocked Boolean
    Whether the public IP is blocked.
    primary Boolean
    Indicates whether the IP is primary.

    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