getEcsNetworkInterfaces

This data source provides the Ecs Network Interfaces of the current Alibaba Cloud user.

NOTE: Available in v1.123.1+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetEcsNetworkInterfacesArgs;
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 = EcsFunctions.getEcsNetworkInterfaces(GetEcsNetworkInterfacesArgs.builder()
.ids("eni-abcd1234")
.nameRegex("tf-testAcc")
.build());
ctx.export("firstEcsNetworkInterfaceId", example.applyValue(getEcsNetworkInterfacesResult -> getEcsNetworkInterfacesResult.interfaces()[0].id()));
}
}

Return

A collection of values returned by getEcsNetworkInterfaces.

Parameters

argument

A collection of arguments for invoking getEcsNetworkInterfaces.


suspend fun getEcsNetworkInterfaces(ids: List<String>? = null, instanceId: String? = null, name: String? = null, nameRegex: String? = null, networkInterfaceName: String? = null, outputFile: String? = null, primaryIpAddress: String? = null, privateIp: String? = null, resourceGroupId: String? = null, securityGroupId: String? = null, serviceManaged: Boolean? = null, status: String? = null, tags: Map<String, Any>? = null, type: String? = null, vpcId: String? = null, vswitchId: String? = null): GetEcsNetworkInterfacesResult

Return

A collection of values returned by getEcsNetworkInterfaces.

See also

Parameters

ids

A list of Network Interface IDs.

instanceId

The instance id.

name

The network interface name.

nameRegex

A regex string to filter results by Network Interface name.

networkInterfaceName

The network interface name.

outputFile

File name where to save data source results (after running pulumi preview).

primaryIpAddress

The primary private IP address of the ENI.

privateIp

The primary private IP address of the ENI.

resourceGroupId

The resource group id.

securityGroupId

The security group id.

serviceManaged

Whether the user of the elastic network card is a cloud product or a virtual vendor.

status

The status of the ENI.

tags

The tags.

type

The type of the ENI.

vpcId

The Vpc Id.

vswitchId

The vswitch id.


Return

A collection of values returned by getEcsNetworkInterfaces.

See also

Parameters

argument

Builder for com.pulumi.alicloud.ecs.kotlin.inputs.GetEcsNetworkInterfacesPlainArgs.