tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getEnis
Explore with Pulumi AI
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
andtags
. - Instance
Id 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
. - Result
Output stringFile - Used to save results.
- Security
Group string - A set of security group IDs which bind the ENI. Conflict with
ids
. - Subnet
Id string - ID of the subnet within this vpc to be queried. Conflict with
ids
. - Dictionary<string, string>
- Tags of the ENI. Conflict with
ids
. - Vpc
Id 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
andtags
. - Instance
Id 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
. - Result
Output stringFile - Used to save results.
- Security
Group string - A set of security group IDs which bind the ENI. Conflict with
ids
. - Subnet
Id string - ID of the subnet within this vpc to be queried. Conflict with
ids
. - map[string]string
- Tags of the ENI. Conflict with
ids
. - Vpc
Id 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
andtags
. - instance
Id 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
. - result
Output StringFile - Used to save results.
- security
Group String - A set of security group IDs which bind the ENI. Conflict with
ids
. - subnet
Id String - ID of the subnet within this vpc to be queried. Conflict with
ids
. - Map<String,String>
- Tags of the ENI. Conflict with
ids
. - vpc
Id 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
andtags
. - instance
Id 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
. - result
Output stringFile - Used to save results.
- security
Group string - A set of security group IDs which bind the ENI. Conflict with
ids
. - subnet
Id string - ID of the subnet within this vpc to be queried. Conflict with
ids
. - {[key: string]: string}
- Tags of the ENI. Conflict with
ids
. - vpc
Id 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
andtags
. - 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_ strfile - 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
. - 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
andtags
. - instance
Id 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
. - result
Output StringFile - Used to save results.
- security
Group String - A set of security group IDs which bind the ENI. Conflict with
ids
. - subnet
Id String - ID of the subnet within this vpc to be queried. Conflict with
ids
. - Map<String>
- Tags of the ENI. Conflict with
ids
. - vpc
Id String - ID of the vpc to be queried. Conflict with
ids
.
getEnis Result
The following output properties are available:
- Enis
List<Get
Enis Eni> - An information list of ENIs. Each element contains the following attributes:
- Id string
- ID of the ENI.
- Description string
- Message description.
- Ids List<string>
- Instance
Id string - ID of the instance which bind the ENI.
- Ipv4 string
- Name string
- Name of the ENI.
- Result
Output stringFile - Security
Group string - Subnet
Id string - ID of the subnet within this vpc.
- Dictionary<string, string>
- Tags of the ENI.
- Vpc
Id string - ID of the vpc.
- Enis
[]Get
Enis Eni - An information list of ENIs. Each element contains the following attributes:
- Id string
- ID of the ENI.
- Description string
- Message description.
- Ids []string
- Instance
Id string - ID of the instance which bind the ENI.
- Ipv4 string
- Name string
- Name of the ENI.
- Result
Output stringFile - Security
Group string - Subnet
Id string - ID of the subnet within this vpc.
- map[string]string
- Tags of the ENI.
- Vpc
Id string - ID of the vpc.
- enis
List<Get
Enis Eni> - An information list of ENIs. Each element contains the following attributes:
- id String
- ID of the ENI.
- description String
- Message description.
- ids List<String>
- instance
Id String - ID of the instance which bind the ENI.
- ipv4 String
- name String
- Name of the ENI.
- result
Output StringFile - security
Group String - subnet
Id String - ID of the subnet within this vpc.
- Map<String,String>
- Tags of the ENI.
- vpc
Id String - ID of the vpc.
- enis
Get
Enis Eni[] - An information list of ENIs. Each element contains the following attributes:
- id string
- ID of the ENI.
- description string
- Message description.
- ids string[]
- instance
Id string - ID of the instance which bind the ENI.
- ipv4 string
- name string
- Name of the ENI.
- result
Output stringFile - security
Group string - subnet
Id string - ID of the subnet within this vpc.
- {[key: string]: string}
- Tags of the ENI.
- vpc
Id string - ID of the vpc.
- enis
Sequence[Get
Enis Eni] - 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_ strfile - security_
group str - subnet_
id str - ID of the subnet within this vpc.
- 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>
- instance
Id String - ID of the instance which bind the ENI.
- ipv4 String
- name String
- Name of the ENI.
- result
Output StringFile - security
Group String - subnet
Id String - ID of the subnet within this vpc.
- Map<String>
- Tags of the ENI.
- vpc
Id String - ID of the vpc.
Supporting Types
GetEnisEni
- Cdc
Id string - CDC instance ID.
- Create
Time string - Creation time of the ENI.
- Description string
- Description of the ENI. Conflict with
ids
. - Id string
- ID of the ENI.
- Instance
Id string - ID of the instance which bind the ENI. Conflict with
ids
. - Ipv4s
List<Get
Enis Eni Ipv4> - A set of intranet IPv4s.
- Ipv6s
List<Get
Enis Eni Ipv6> - 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.
- Security
Groups List<string> - A set of security group IDs which bind the ENI.
- State string
- States of the ENI.
- Subnet
Id string - ID of the subnet within this vpc to be queried. Conflict with
ids
. - Dictionary<string, string>
- Tags of the ENI. Conflict with
ids
. - Vpc
Id string - ID of the vpc to be queried. Conflict with
ids
.
- Cdc
Id string - CDC instance ID.
- Create
Time string - Creation time of the ENI.
- Description string
- Description of the ENI. Conflict with
ids
. - Id string
- ID of the ENI.
- Instance
Id string - ID of the instance which bind the ENI. Conflict with
ids
. - Ipv4s
[]Get
Enis Eni Ipv4 - A set of intranet IPv4s.
- Ipv6s
[]Get
Enis Eni Ipv6 - 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.
- Security
Groups []string - A set of security group IDs which bind the ENI.
- State string
- States of the ENI.
- Subnet
Id string - ID of the subnet within this vpc to be queried. Conflict with
ids
. - map[string]string
- Tags of the ENI. Conflict with
ids
. - Vpc
Id string - ID of the vpc to be queried. Conflict with
ids
.
- cdc
Id String - CDC instance ID.
- create
Time String - Creation time of the ENI.
- description String
- Description of the ENI. Conflict with
ids
. - id String
- ID of the ENI.
- instance
Id String - ID of the instance which bind the ENI. Conflict with
ids
. - ipv4s
List<Get
Enis Eni Ipv4> - A set of intranet IPv4s.
- ipv6s
List<Get
Enis Eni Ipv6> - 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.
- security
Groups List<String> - A set of security group IDs which bind the ENI.
- state String
- States of the ENI.
- subnet
Id String - ID of the subnet within this vpc to be queried. Conflict with
ids
. - Map<String,String>
- Tags of the ENI. Conflict with
ids
. - vpc
Id String - ID of the vpc to be queried. Conflict with
ids
.
- cdc
Id string - CDC instance ID.
- create
Time string - Creation time of the ENI.
- description string
- Description of the ENI. Conflict with
ids
. - id string
- ID of the ENI.
- instance
Id string - ID of the instance which bind the ENI. Conflict with
ids
. - ipv4s
Get
Enis Eni Ipv4[] - A set of intranet IPv4s.
- ipv6s
Get
Enis Eni Ipv6[] - 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.
- security
Groups string[] - A set of security group IDs which bind the ENI.
- state string
- States of the ENI.
- subnet
Id string - ID of the subnet within this vpc to be queried. Conflict with
ids
. - {[key: string]: string}
- Tags of the ENI. Conflict with
ids
. - vpc
Id 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[Get
Enis Eni Ipv4] - A set of intranet IPv4s.
- ipv6s
Sequence[Get
Enis Eni Ipv6] - 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
. - Mapping[str, str]
- Tags of the ENI. Conflict with
ids
. - vpc_
id str - ID of the vpc to be queried. Conflict with
ids
.
- cdc
Id String - CDC instance ID.
- create
Time String - Creation time of the ENI.
- description String
- Description of the ENI. Conflict with
ids
. - id String
- ID of the ENI.
- instance
Id 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.
- security
Groups List<String> - A set of security group IDs which bind the ENI.
- state String
- States of the ENI.
- subnet
Id String - ID of the subnet within this vpc to be queried. Conflict with
ids
. - Map<String>
- Tags of the ENI. Conflict with
ids
. - vpc
Id 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 as3402:4e00:20:100:0:8cd9:2a67:71f3
.- Address
Id string - The
ID
of theEIP
instance, such aseip-hxlqja90
. - Description string
- Description of the ENI. Conflict with
ids
. - Is
Wan boolIp Blocked - Whether the public IP is blocked.
- Primary bool
- Indicates whether the IP is primary.
- Address string
IPv6
address, such as3402:4e00:20:100:0:8cd9:2a67:71f3
.- Address
Id string - The
ID
of theEIP
instance, such aseip-hxlqja90
. - Description string
- Description of the ENI. Conflict with
ids
. - Is
Wan boolIp Blocked - Whether the public IP is blocked.
- Primary bool
- Indicates whether the IP is primary.
- address String
IPv6
address, such as3402:4e00:20:100:0:8cd9:2a67:71f3
.- address
Id String - The
ID
of theEIP
instance, such aseip-hxlqja90
. - description String
- Description of the ENI. Conflict with
ids
. - is
Wan BooleanIp Blocked - Whether the public IP is blocked.
- primary Boolean
- Indicates whether the IP is primary.
- address string
IPv6
address, such as3402:4e00:20:100:0:8cd9:2a67:71f3
.- address
Id string - The
ID
of theEIP
instance, such aseip-hxlqja90
. - description string
- Description of the ENI. Conflict with
ids
. - is
Wan booleanIp Blocked - Whether the public IP is blocked.
- primary boolean
- Indicates whether the IP is primary.
- address str
IPv6
address, such as3402:4e00:20:100:0:8cd9:2a67:71f3
.- address_
id str - The
ID
of theEIP
instance, such aseip-hxlqja90
. - description str
- Description of the ENI. Conflict with
ids
. - is_
wan_ boolip_ blocked - Whether the public IP is blocked.
- primary bool
- Indicates whether the IP is primary.
- address String
IPv6
address, such as3402:4e00:20:100:0:8cd9:2a67:71f3
.- address
Id String - The
ID
of theEIP
instance, such aseip-hxlqja90
. - description String
- Description of the ENI. Conflict with
ids
. - is
Wan BooleanIp Blocked - 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack