get Ecs Network Interfaces
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
A collection of arguments for invoking getEcsNetworkInterfaces.
Return
A collection of values returned by getEcsNetworkInterfaces.
See also
Parameters
A list of Network Interface IDs.
The instance id.
The network interface name.
A regex string to filter results by Network Interface name.
The network interface name.
File name where to save data source results (after running pulumi preview
).
The primary private IP address of the ENI.
The primary private IP address of the ENI.
The resource group id.
The security group id.
Whether the user of the elastic network card is a cloud product or a virtual vendor.
The status of the ENI.
The tags.
The type of the ENI.
The Vpc Id.
The vswitch id.
Return
A collection of values returned by getEcsNetworkInterfaces.
See also
Parameters
Builder for com.pulumi.alicloud.ecs.kotlin.inputs.GetEcsNetworkInterfacesPlainArgs.