1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ecs
  5. getNetworkInterfaces
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.ecs.getNetworkInterfaces

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    DEPRECATED: This datasource has been renamed to alicloud.ecs.getEcsNetworkInterfaces from version 1.123.1.

    Use this data source to get a list of elastic network interfaces according to the specified filters in an Alibaba Cloud account.

    For information about elastic network interface and how to use it, see Elastic Network Interface

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "networkInterfacesName";
    const vpc = new alicloud.vpc.Network("vpc", {
        cidrBlock: "192.168.0.0/24",
        vpcName: name,
    });
    const defaultZones = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const vswitch = new alicloud.vpc.Switch("vswitch", {
        availabilityZone: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
        cidrBlock: "192.168.0.0/24",
        vpcId: vpc.id,
        vswitchName: name,
    });
    const group = new alicloud.ecs.SecurityGroup("group", {vpcId: vpc.id});
    const _interface = new alicloud.vpc.NetworkInterface("interface", {
        description: "Basic test",
        privateIp: "192.168.0.2",
        securityGroups: [group.id],
        tags: {
            "TF-VER": "0.11.3",
        },
        vswitchId: vswitch.id,
    });
    const instance = new alicloud.ecs.Instance("instance", {
        availabilityZone: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
        imageId: "centos_7_04_64_20G_alibase_201701015.vhd",
        instanceName: name,
        instanceType: "ecs.e3.xlarge",
        internetMaxBandwidthOut: 10,
        securityGroups: [group.id],
        systemDiskCategory: "cloud_efficiency",
        vswitchId: vswitch.id,
    });
    const attachment = new alicloud.vpc.NetworkInterfaceAttachment("attachment", {
        instanceId: instance.id,
        networkInterfaceId: _interface.id,
    });
    const defaultNetworkInterfaces = alicloud.ecs.getNetworkInterfacesOutput({
        ids: [attachment.networkInterfaceId],
        instanceId: instance.id,
        nameRegex: name,
        privateIp: "192.168.0.2",
        securityGroupId: group.id,
        tags: {
            "TF-VER": "0.11.3",
        },
        type: "Secondary",
        vpcId: vpc.id,
        vswitchId: vswitch.id,
    });
    export const eni0Name = defaultNetworkInterfaces.apply(defaultNetworkInterfaces => defaultNetworkInterfaces.interfaces?.[0]?.name);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "networkInterfacesName"
    vpc = alicloud.vpc.Network("vpc",
        cidr_block="192.168.0.0/24",
        vpc_name=name)
    default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
    vswitch = alicloud.vpc.Switch("vswitch",
        availability_zone=default_zones.zones[0].id,
        cidr_block="192.168.0.0/24",
        vpc_id=vpc.id,
        vswitch_name=name)
    group = alicloud.ecs.SecurityGroup("group", vpc_id=vpc.id)
    interface = alicloud.vpc.NetworkInterface("interface",
        description="Basic test",
        private_ip="192.168.0.2",
        security_groups=[group.id],
        tags={
            "TF-VER": "0.11.3",
        },
        vswitch_id=vswitch.id)
    instance = alicloud.ecs.Instance("instance",
        availability_zone=default_zones.zones[0].id,
        image_id="centos_7_04_64_20G_alibase_201701015.vhd",
        instance_name=name,
        instance_type="ecs.e3.xlarge",
        internet_max_bandwidth_out=10,
        security_groups=[group.id],
        system_disk_category="cloud_efficiency",
        vswitch_id=vswitch.id)
    attachment = alicloud.vpc.NetworkInterfaceAttachment("attachment",
        instance_id=instance.id,
        network_interface_id=interface.id)
    default_network_interfaces = alicloud.ecs.get_network_interfaces_output(ids=[attachment.network_interface_id],
        instance_id=instance.id,
        name_regex=name,
        private_ip="192.168.0.2",
        security_group_id=group.id,
        tags={
            "TF-VER": "0.11.3",
        },
        type="Secondary",
        vpc_id=vpc.id,
        vswitch_id=vswitch.id)
    pulumi.export("eni0Name", default_network_interfaces.interfaces[0].name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    cfg := config.New(ctx, "")
    name := "networkInterfacesName";
    if param := cfg.Get("name"); param != ""{
    name = param
    }
    vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
    CidrBlock: pulumi.String("192.168.0.0/24"),
    VpcName: pulumi.String(name),
    })
    if err != nil {
    return err
    }
    defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    }, nil);
    if err != nil {
    return err
    }
    vswitch, err := vpc.NewSwitch(ctx, "vswitch", &vpc.SwitchArgs{
    AvailabilityZone: pulumi.String(defaultZones.Zones[0].Id),
    CidrBlock: pulumi.String("192.168.0.0/24"),
    VpcId: vpc.ID(),
    VswitchName: pulumi.String(name),
    })
    if err != nil {
    return err
    }
    group, err := ecs.NewSecurityGroup(ctx, "group", &ecs.SecurityGroupArgs{
    VpcId: vpc.ID(),
    })
    if err != nil {
    return err
    }
    interface, err := vpc.NewNetworkInterface(ctx, "interface", &vpc.NetworkInterfaceArgs{
    Description: pulumi.String("Basic test"),
    PrivateIp: pulumi.String("192.168.0.2"),
    SecurityGroups: pulumi.StringArray{
    group.ID(),
    },
    Tags: pulumi.Map{
    "TF-VER": pulumi.Any("0.11.3"),
    },
    VswitchId: vswitch.ID(),
    })
    if err != nil {
    return err
    }
    instance, err := ecs.NewInstance(ctx, "instance", &ecs.InstanceArgs{
    AvailabilityZone: pulumi.String(defaultZones.Zones[0].Id),
    ImageId: pulumi.String("centos_7_04_64_20G_alibase_201701015.vhd"),
    InstanceName: pulumi.String(name),
    InstanceType: pulumi.String("ecs.e3.xlarge"),
    InternetMaxBandwidthOut: pulumi.Int(10),
    SecurityGroups: pulumi.StringArray{
    group.ID(),
    },
    SystemDiskCategory: pulumi.String("cloud_efficiency"),
    VswitchId: vswitch.ID(),
    })
    if err != nil {
    return err
    }
    attachment, err := vpc.NewNetworkInterfaceAttachment(ctx, "attachment", &vpc.NetworkInterfaceAttachmentArgs{
    InstanceId: instance.ID(),
    NetworkInterfaceId: interface.ID(),
    })
    if err != nil {
    return err
    }
    defaultNetworkInterfaces := ecs.GetNetworkInterfacesOutput(ctx, ecs.GetNetworkInterfacesOutputArgs{
    Ids: pulumi.StringArray{
    attachment.NetworkInterfaceId,
    },
    InstanceId: instance.ID(),
    NameRegex: pulumi.String(name),
    PrivateIp: pulumi.String("192.168.0.2"),
    SecurityGroupId: group.ID(),
    Tags: pulumi.Map{
    "TF-VER": pulumi.Any("0.11.3"),
    },
    Type: pulumi.String("Secondary"),
    VpcId: vpc.ID(),
    VswitchId: vswitch.ID(),
    }, nil);
    ctx.Export("eni0Name", defaultNetworkInterfaces.ApplyT(func(defaultNetworkInterfaces ecs.GetNetworkInterfacesResult) (*string, error) {
    return &defaultNetworkInterfaces.Interfaces[0].Name, nil
    }).(pulumi.StringPtrOutput))
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "networkInterfacesName";
        var vpc = new AliCloud.Vpc.Network("vpc", new()
        {
            CidrBlock = "192.168.0.0/24",
            VpcName = name,
        });
    
        var defaultZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var vswitch = new AliCloud.Vpc.Switch("vswitch", new()
        {
            AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            CidrBlock = "192.168.0.0/24",
            VpcId = vpc.Id,
            VswitchName = name,
        });
    
        var @group = new AliCloud.Ecs.SecurityGroup("group", new()
        {
            VpcId = vpc.Id,
        });
    
        var @interface = new AliCloud.Vpc.NetworkInterface("interface", new()
        {
            Description = "Basic test",
            PrivateIp = "192.168.0.2",
            SecurityGroups = new[]
            {
                @group.Id,
            },
            Tags = 
            {
                { "TF-VER", "0.11.3" },
            },
            VswitchId = vswitch.Id,
        });
    
        var instance = new AliCloud.Ecs.Instance("instance", new()
        {
            AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            ImageId = "centos_7_04_64_20G_alibase_201701015.vhd",
            InstanceName = name,
            InstanceType = "ecs.e3.xlarge",
            InternetMaxBandwidthOut = 10,
            SecurityGroups = new[]
            {
                @group.Id,
            },
            SystemDiskCategory = "cloud_efficiency",
            VswitchId = vswitch.Id,
        });
    
        var attachment = new AliCloud.Vpc.NetworkInterfaceAttachment("attachment", new()
        {
            InstanceId = instance.Id,
            NetworkInterfaceId = @interface.Id,
        });
    
        var defaultNetworkInterfaces = AliCloud.Ecs.GetNetworkInterfaces.Invoke(new()
        {
            Ids = new[]
            {
                attachment.NetworkInterfaceId,
            },
            InstanceId = instance.Id,
            NameRegex = name,
            PrivateIp = "192.168.0.2",
            SecurityGroupId = @group.Id,
            Tags = 
            {
                { "TF-VER", "0.11.3" },
            },
            Type = "Secondary",
            VpcId = vpc.Id,
            VswitchId = vswitch.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["eni0Name"] = defaultNetworkInterfaces.Apply(getNetworkInterfacesResult => getNetworkInterfacesResult.Interfaces[0]?.Name),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.ecs.SecurityGroup;
    import com.pulumi.alicloud.ecs.SecurityGroupArgs;
    import com.pulumi.alicloud.vpc.NetworkInterface;
    import com.pulumi.alicloud.vpc.NetworkInterfaceArgs;
    import com.pulumi.alicloud.ecs.Instance;
    import com.pulumi.alicloud.ecs.InstanceArgs;
    import com.pulumi.alicloud.vpc.NetworkInterfaceAttachment;
    import com.pulumi.alicloud.vpc.NetworkInterfaceAttachmentArgs;
    import com.pulumi.alicloud.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetNetworkInterfacesArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("networkInterfacesName");
            var vpc = new Network("vpc", NetworkArgs.builder()        
                .cidrBlock("192.168.0.0/24")
                .vpcName(name)
                .build());
    
            final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var vswitch = new Switch("vswitch", SwitchArgs.builder()        
                .availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .cidrBlock("192.168.0.0/24")
                .vpcId(vpc.id())
                .vswitchName(name)
                .build());
    
            var group = new SecurityGroup("group", SecurityGroupArgs.builder()        
                .vpcId(vpc.id())
                .build());
    
            var interface_ = new NetworkInterface("interface", NetworkInterfaceArgs.builder()        
                .description("Basic test")
                .privateIp("192.168.0.2")
                .securityGroups(group.id())
                .tags(Map.of("TF-VER", "0.11.3"))
                .vswitchId(vswitch.id())
                .build());
    
            var instance = new Instance("instance", InstanceArgs.builder()        
                .availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .imageId("centos_7_04_64_20G_alibase_201701015.vhd")
                .instanceName(name)
                .instanceType("ecs.e3.xlarge")
                .internetMaxBandwidthOut(10)
                .securityGroups(group.id())
                .systemDiskCategory("cloud_efficiency")
                .vswitchId(vswitch.id())
                .build());
    
            var attachment = new NetworkInterfaceAttachment("attachment", NetworkInterfaceAttachmentArgs.builder()        
                .instanceId(instance.id())
                .networkInterfaceId(interface_.id())
                .build());
    
            final var defaultNetworkInterfaces = EcsFunctions.getNetworkInterfaces(GetNetworkInterfacesArgs.builder()
                .ids(attachment.networkInterfaceId())
                .instanceId(instance.id())
                .nameRegex(name)
                .privateIp("192.168.0.2")
                .securityGroupId(group.id())
                .tags(Map.of("TF-VER", "0.11.3"))
                .type("Secondary")
                .vpcId(vpc.id())
                .vswitchId(vswitch.id())
                .build());
    
            ctx.export("eni0Name", defaultNetworkInterfaces.applyValue(getNetworkInterfacesResult -> getNetworkInterfacesResult).applyValue(defaultNetworkInterfaces -> defaultNetworkInterfaces.applyValue(getNetworkInterfacesResult -> getNetworkInterfacesResult.interfaces()[0].name())));
        }
    }
    
    configuration:
      name:
        type: string
        default: networkInterfacesName
    resources:
      vpc:
        type: alicloud:vpc:Network
        properties:
          cidrBlock: 192.168.0.0/24
          vpcName: ${name}
      vswitch:
        type: alicloud:vpc:Switch
        properties:
          availabilityZone: ${defaultZones.zones[0].id}
          cidrBlock: 192.168.0.0/24
          vpcId: ${vpc.id}
          vswitchName: ${name}
      group:
        type: alicloud:ecs:SecurityGroup
        properties:
          vpcId: ${vpc.id}
      interface:
        type: alicloud:vpc:NetworkInterface
        properties:
          description: Basic test
          privateIp: 192.168.0.2
          securityGroups:
            - ${group.id}
          tags:
            TF-VER: 0.11.3
          vswitchId: ${vswitch.id}
      instance:
        type: alicloud:ecs:Instance
        properties:
          availabilityZone: ${defaultZones.zones[0].id}
          imageId: centos_7_04_64_20G_alibase_201701015.vhd
          instanceName: ${name}
          instanceType: ecs.e3.xlarge
          internetMaxBandwidthOut: 10
          securityGroups:
            - ${group.id}
          systemDiskCategory: cloud_efficiency
          vswitchId: ${vswitch.id}
      attachment:
        type: alicloud:vpc:NetworkInterfaceAttachment
        properties:
          instanceId: ${instance.id}
          networkInterfaceId: ${interface.id}
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
      defaultNetworkInterfaces:
        fn::invoke:
          Function: alicloud:ecs:getNetworkInterfaces
          Arguments:
            ids:
              - ${attachment.networkInterfaceId}
            instanceId: ${instance.id}
            nameRegex: ${name}
            privateIp: 192.168.0.2
            securityGroupId: ${group.id}
            tags:
              TF-VER: 0.11.3
            type: Secondary
            vpcId: ${vpc.id}
            vswitchId: ${vswitch.id}
    outputs:
      eni0Name: ${defaultNetworkInterfaces.interfaces[0].name}
    

    Argument Reference

    The following arguments are supported:

    • ids - (Optional) A list of ENI IDs.
    • name_regex - (Optional) A regex string to filter results by ENI name.
    • vpc_id - (Optional) The VPC ID linked to ENIs.
    • vswitch_id - (Optional) The VSwitch ID linked to ENIs.
    • private_ip - (Optional) The primary private IP address of the ENI.
    • security_group_id - (Optional) The security group ID linked to ENIs.
    • name - (Optional) The name of the ENIs.
    • type - (Optional) The type of ENIs, Only support for “Primary” or “Secondary”.
    • instance_id - (Optional) The ECS instance ID that the ENI is attached to.
    • tags - (Optional) A map of tags assigned to ENIs.
    • output_file - (Optional) The name of output file that saves the filter results.
    • resource_group_id - (Optional, ForceNew, Available in 1.57.0+) The Id of resource group which the network interface belongs.

    Using getNetworkInterfaces

    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 getNetworkInterfaces(args: GetNetworkInterfacesArgs, opts?: InvokeOptions): Promise<GetNetworkInterfacesResult>
    function getNetworkInterfacesOutput(args: GetNetworkInterfacesOutputArgs, opts?: InvokeOptions): Output<GetNetworkInterfacesResult>
    def get_network_interfaces(ids: Optional[Sequence[str]] = None,
                               instance_id: Optional[str] = None,
                               name: Optional[str] = None,
                               name_regex: Optional[str] = None,
                               network_interface_name: Optional[str] = None,
                               output_file: Optional[str] = None,
                               primary_ip_address: Optional[str] = None,
                               private_ip: Optional[str] = None,
                               resource_group_id: Optional[str] = None,
                               security_group_id: Optional[str] = None,
                               service_managed: Optional[bool] = None,
                               status: Optional[str] = None,
                               tags: Optional[Mapping[str, Any]] = None,
                               type: Optional[str] = None,
                               vpc_id: Optional[str] = None,
                               vswitch_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetNetworkInterfacesResult
    def get_network_interfaces_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                               instance_id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               name_regex: Optional[pulumi.Input[str]] = None,
                               network_interface_name: Optional[pulumi.Input[str]] = None,
                               output_file: Optional[pulumi.Input[str]] = None,
                               primary_ip_address: Optional[pulumi.Input[str]] = None,
                               private_ip: Optional[pulumi.Input[str]] = None,
                               resource_group_id: Optional[pulumi.Input[str]] = None,
                               security_group_id: Optional[pulumi.Input[str]] = None,
                               service_managed: Optional[pulumi.Input[bool]] = None,
                               status: Optional[pulumi.Input[str]] = None,
                               tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                               type: Optional[pulumi.Input[str]] = None,
                               vpc_id: Optional[pulumi.Input[str]] = None,
                               vswitch_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetNetworkInterfacesResult]
    func GetNetworkInterfaces(ctx *Context, args *GetNetworkInterfacesArgs, opts ...InvokeOption) (*GetNetworkInterfacesResult, error)
    func GetNetworkInterfacesOutput(ctx *Context, args *GetNetworkInterfacesOutputArgs, opts ...InvokeOption) GetNetworkInterfacesResultOutput

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

    public static class GetNetworkInterfaces 
    {
        public static Task<GetNetworkInterfacesResult> InvokeAsync(GetNetworkInterfacesArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkInterfacesResult> Invoke(GetNetworkInterfacesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkInterfacesResult> getNetworkInterfaces(GetNetworkInterfacesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:ecs/getNetworkInterfaces:getNetworkInterfaces
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    InstanceId string
    ID of the instance that the ENI is attached to.
    Name string
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    NameRegex string
    NetworkInterfaceName string
    OutputFile string
    PrimaryIpAddress string
    PrivateIp string
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    ResourceGroupId string
    The Id of resource group.
    SecurityGroupId string
    ServiceManaged bool
    Status string
    Current status of the ENI.
    Tags Dictionary<string, object>
    A map of tags assigned to the ENI.
    Type string
    VpcId string
    ID of the VPC that the ENI belongs to.
    VswitchId string
    ID of the VSwitch that the ENI is linked to.
    Ids []string
    InstanceId string
    ID of the instance that the ENI is attached to.
    Name string
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    NameRegex string
    NetworkInterfaceName string
    OutputFile string
    PrimaryIpAddress string
    PrivateIp string
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    ResourceGroupId string
    The Id of resource group.
    SecurityGroupId string
    ServiceManaged bool
    Status string
    Current status of the ENI.
    Tags map[string]interface{}
    A map of tags assigned to the ENI.
    Type string
    VpcId string
    ID of the VPC that the ENI belongs to.
    VswitchId string
    ID of the VSwitch that the ENI is linked to.
    ids List<String>
    instanceId String
    ID of the instance that the ENI is attached to.
    name String
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    nameRegex String
    networkInterfaceName String
    outputFile String
    primaryIpAddress String
    privateIp String
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    resourceGroupId String
    The Id of resource group.
    securityGroupId String
    serviceManaged Boolean
    status String
    Current status of the ENI.
    tags Map<String,Object>
    A map of tags assigned to the ENI.
    type String
    vpcId String
    ID of the VPC that the ENI belongs to.
    vswitchId String
    ID of the VSwitch that the ENI is linked to.
    ids string[]
    instanceId string
    ID of the instance that the ENI is attached to.
    name string
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    nameRegex string
    networkInterfaceName string
    outputFile string
    primaryIpAddress string
    privateIp string
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    resourceGroupId string
    The Id of resource group.
    securityGroupId string
    serviceManaged boolean
    status string
    Current status of the ENI.
    tags {[key: string]: any}
    A map of tags assigned to the ENI.
    type string
    vpcId string
    ID of the VPC that the ENI belongs to.
    vswitchId string
    ID of the VSwitch that the ENI is linked to.
    ids Sequence[str]
    instance_id str
    ID of the instance that the ENI is attached to.
    name str
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    name_regex str
    network_interface_name str
    output_file str
    primary_ip_address str
    private_ip str
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    resource_group_id str
    The Id of resource group.
    security_group_id str
    service_managed bool
    status str
    Current status of the ENI.
    tags Mapping[str, Any]
    A map of tags assigned to the ENI.
    type str
    vpc_id str
    ID of the VPC that the ENI belongs to.
    vswitch_id str
    ID of the VSwitch that the ENI is linked to.
    ids List<String>
    instanceId String
    ID of the instance that the ENI is attached to.
    name String
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    nameRegex String
    networkInterfaceName String
    outputFile String
    primaryIpAddress String
    privateIp String
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    resourceGroupId String
    The Id of resource group.
    securityGroupId String
    serviceManaged Boolean
    status String
    Current status of the ENI.
    tags Map<Any>
    A map of tags assigned to the ENI.
    type String
    vpcId String
    ID of the VPC that the ENI belongs to.
    vswitchId String
    ID of the VSwitch that the ENI is linked to.

    getNetworkInterfaces Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Interfaces List<Pulumi.AliCloud.Ecs.Outputs.GetNetworkInterfacesInterface>
    A list of ENIs. Each element contains the following attributes:
    Names List<string>
    InstanceId string
    ID of the instance that the ENI is attached to.
    Name string
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    NameRegex string
    NetworkInterfaceName string
    OutputFile string
    PrimaryIpAddress string
    PrivateIp string
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    ResourceGroupId string
    The Id of resource group.
    SecurityGroupId string
    ServiceManaged bool
    Status string
    Current status of the ENI.
    Tags Dictionary<string, object>
    A map of tags assigned to the ENI.
    Type string
    VpcId string
    ID of the VPC that the ENI belongs to.
    VswitchId string
    ID of the VSwitch that the ENI is linked to.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Interfaces []GetNetworkInterfacesInterface
    A list of ENIs. Each element contains the following attributes:
    Names []string
    InstanceId string
    ID of the instance that the ENI is attached to.
    Name string
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    NameRegex string
    NetworkInterfaceName string
    OutputFile string
    PrimaryIpAddress string
    PrivateIp string
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    ResourceGroupId string
    The Id of resource group.
    SecurityGroupId string
    ServiceManaged bool
    Status string
    Current status of the ENI.
    Tags map[string]interface{}
    A map of tags assigned to the ENI.
    Type string
    VpcId string
    ID of the VPC that the ENI belongs to.
    VswitchId string
    ID of the VSwitch that the ENI is linked to.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    interfaces List<GetNetworkInterfacesInterface>
    A list of ENIs. Each element contains the following attributes:
    names List<String>
    instanceId String
    ID of the instance that the ENI is attached to.
    name String
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    nameRegex String
    networkInterfaceName String
    outputFile String
    primaryIpAddress String
    privateIp String
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    resourceGroupId String
    The Id of resource group.
    securityGroupId String
    serviceManaged Boolean
    status String
    Current status of the ENI.
    tags Map<String,Object>
    A map of tags assigned to the ENI.
    type String
    vpcId String
    ID of the VPC that the ENI belongs to.
    vswitchId String
    ID of the VSwitch that the ENI is linked to.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    interfaces GetNetworkInterfacesInterface[]
    A list of ENIs. Each element contains the following attributes:
    names string[]
    instanceId string
    ID of the instance that the ENI is attached to.
    name string
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    nameRegex string
    networkInterfaceName string
    outputFile string
    primaryIpAddress string
    privateIp string
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    resourceGroupId string
    The Id of resource group.
    securityGroupId string
    serviceManaged boolean
    status string
    Current status of the ENI.
    tags {[key: string]: any}
    A map of tags assigned to the ENI.
    type string
    vpcId string
    ID of the VPC that the ENI belongs to.
    vswitchId string
    ID of the VSwitch that the ENI is linked to.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    interfaces Sequence[GetNetworkInterfacesInterface]
    A list of ENIs. Each element contains the following attributes:
    names Sequence[str]
    instance_id str
    ID of the instance that the ENI is attached to.
    name str
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    name_regex str
    network_interface_name str
    output_file str
    primary_ip_address str
    private_ip str
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    resource_group_id str
    The Id of resource group.
    security_group_id str
    service_managed bool
    status str
    Current status of the ENI.
    tags Mapping[str, Any]
    A map of tags assigned to the ENI.
    type str
    vpc_id str
    ID of the VPC that the ENI belongs to.
    vswitch_id str
    ID of the VSwitch that the ENI is linked to.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    interfaces List<Property Map>
    A list of ENIs. Each element contains the following attributes:
    names List<String>
    instanceId String
    ID of the instance that the ENI is attached to.
    name String
    Name of the ENI.

    Deprecated: Field 'name' has been deprecated from provider version 1.123.1. New field 'network_interface_name' instead

    nameRegex String
    networkInterfaceName String
    outputFile String
    primaryIpAddress String
    privateIp String
    Primary private IP of the ENI.

    Deprecated: Field 'private_ip' has been deprecated from provider version 1.123.1. New field 'primary_ip_address' instead

    resourceGroupId String
    The Id of resource group.
    securityGroupId String
    serviceManaged Boolean
    status String
    Current status of the ENI.
    tags Map<Any>
    A map of tags assigned to the ENI.
    type String
    vpcId String
    ID of the VPC that the ENI belongs to.
    vswitchId String
    ID of the VSwitch that the ENI is linked to.

    Supporting Types

    GetNetworkInterfacesInterface

    AssociatedPublicIps List<Pulumi.AliCloud.Ecs.Inputs.GetNetworkInterfacesInterfaceAssociatedPublicIp>
    CreationTime string
    Creation time of the ENI.
    Description string
    Description of the ENI.
    Id string
    ID of the ENI.
    InstanceId string
    ID of the instance that the ENI is attached to.
    Mac string
    MAC address of the ENI.
    Name string
    Name of the ENI.
    NetworkInterfaceId string
    NetworkInterfaceName string
    NetworkInterfaceTrafficMode string
    OwnerId string
    PrimaryIpAddress string
    PrivateIp string
    Primary private IP of the ENI.
    PrivateIpAddresses List<string>
    PrivateIps List<string>
    A list of secondary private IP address that is assigned to the ENI.
    QueueNumber int
    ResourceGroupId string
    The Id of resource group.
    SecurityGroupIds List<string>
    SecurityGroups List<string>
    A list of security group that the ENI belongs to.
    ServiceId int
    ServiceManaged bool
    Status string
    Current status of the ENI.
    Tags Dictionary<string, object>
    A map of tags assigned to the ENI.
    Type string
    VpcId string
    ID of the VPC that the ENI belongs to.
    VswitchId string
    ID of the VSwitch that the ENI is linked to.
    ZoneId string
    ID of the availability zone that the ENI belongs to.
    AssociatedPublicIps []GetNetworkInterfacesInterfaceAssociatedPublicIp
    CreationTime string
    Creation time of the ENI.
    Description string
    Description of the ENI.
    Id string
    ID of the ENI.
    InstanceId string
    ID of the instance that the ENI is attached to.
    Mac string
    MAC address of the ENI.
    Name string
    Name of the ENI.
    NetworkInterfaceId string
    NetworkInterfaceName string
    NetworkInterfaceTrafficMode string
    OwnerId string
    PrimaryIpAddress string
    PrivateIp string
    Primary private IP of the ENI.
    PrivateIpAddresses []string
    PrivateIps []string
    A list of secondary private IP address that is assigned to the ENI.
    QueueNumber int
    ResourceGroupId string
    The Id of resource group.
    SecurityGroupIds []string
    SecurityGroups []string
    A list of security group that the ENI belongs to.
    ServiceId int
    ServiceManaged bool
    Status string
    Current status of the ENI.
    Tags map[string]interface{}
    A map of tags assigned to the ENI.
    Type string
    VpcId string
    ID of the VPC that the ENI belongs to.
    VswitchId string
    ID of the VSwitch that the ENI is linked to.
    ZoneId string
    ID of the availability zone that the ENI belongs to.
    associatedPublicIps List<GetNetworkInterfacesInterfaceAssociatedPublicIp>
    creationTime String
    Creation time of the ENI.
    description String
    Description of the ENI.
    id String
    ID of the ENI.
    instanceId String
    ID of the instance that the ENI is attached to.
    mac String
    MAC address of the ENI.
    name String
    Name of the ENI.
    networkInterfaceId String
    networkInterfaceName String
    networkInterfaceTrafficMode String
    ownerId String
    primaryIpAddress String
    privateIp String
    Primary private IP of the ENI.
    privateIpAddresses List<String>
    privateIps List<String>
    A list of secondary private IP address that is assigned to the ENI.
    queueNumber Integer
    resourceGroupId String
    The Id of resource group.
    securityGroupIds List<String>
    securityGroups List<String>
    A list of security group that the ENI belongs to.
    serviceId Integer
    serviceManaged Boolean
    status String
    Current status of the ENI.
    tags Map<String,Object>
    A map of tags assigned to the ENI.
    type String
    vpcId String
    ID of the VPC that the ENI belongs to.
    vswitchId String
    ID of the VSwitch that the ENI is linked to.
    zoneId String
    ID of the availability zone that the ENI belongs to.
    associatedPublicIps GetNetworkInterfacesInterfaceAssociatedPublicIp[]
    creationTime string
    Creation time of the ENI.
    description string
    Description of the ENI.
    id string
    ID of the ENI.
    instanceId string
    ID of the instance that the ENI is attached to.
    mac string
    MAC address of the ENI.
    name string
    Name of the ENI.
    networkInterfaceId string
    networkInterfaceName string
    networkInterfaceTrafficMode string
    ownerId string
    primaryIpAddress string
    privateIp string
    Primary private IP of the ENI.
    privateIpAddresses string[]
    privateIps string[]
    A list of secondary private IP address that is assigned to the ENI.
    queueNumber number
    resourceGroupId string
    The Id of resource group.
    securityGroupIds string[]
    securityGroups string[]
    A list of security group that the ENI belongs to.
    serviceId number
    serviceManaged boolean
    status string
    Current status of the ENI.
    tags {[key: string]: any}
    A map of tags assigned to the ENI.
    type string
    vpcId string
    ID of the VPC that the ENI belongs to.
    vswitchId string
    ID of the VSwitch that the ENI is linked to.
    zoneId string
    ID of the availability zone that the ENI belongs to.
    associated_public_ips Sequence[GetNetworkInterfacesInterfaceAssociatedPublicIp]
    creation_time str
    Creation time of the ENI.
    description str
    Description of the ENI.
    id str
    ID of the ENI.
    instance_id str
    ID of the instance that the ENI is attached to.
    mac str
    MAC address of the ENI.
    name str
    Name of the ENI.
    network_interface_id str
    network_interface_name str
    network_interface_traffic_mode str
    owner_id str
    primary_ip_address str
    private_ip str
    Primary private IP of the ENI.
    private_ip_addresses Sequence[str]
    private_ips Sequence[str]
    A list of secondary private IP address that is assigned to the ENI.
    queue_number int
    resource_group_id str
    The Id of resource group.
    security_group_ids Sequence[str]
    security_groups Sequence[str]
    A list of security group that the ENI belongs to.
    service_id int
    service_managed bool
    status str
    Current status of the ENI.
    tags Mapping[str, Any]
    A map of tags assigned to the ENI.
    type str
    vpc_id str
    ID of the VPC that the ENI belongs to.
    vswitch_id str
    ID of the VSwitch that the ENI is linked to.
    zone_id str
    ID of the availability zone that the ENI belongs to.
    associatedPublicIps List<Property Map>
    creationTime String
    Creation time of the ENI.
    description String
    Description of the ENI.
    id String
    ID of the ENI.
    instanceId String
    ID of the instance that the ENI is attached to.
    mac String
    MAC address of the ENI.
    name String
    Name of the ENI.
    networkInterfaceId String
    networkInterfaceName String
    networkInterfaceTrafficMode String
    ownerId String
    primaryIpAddress String
    privateIp String
    Primary private IP of the ENI.
    privateIpAddresses List<String>
    privateIps List<String>
    A list of secondary private IP address that is assigned to the ENI.
    queueNumber Number
    resourceGroupId String
    The Id of resource group.
    securityGroupIds List<String>
    securityGroups List<String>
    A list of security group that the ENI belongs to.
    serviceId Number
    serviceManaged Boolean
    status String
    Current status of the ENI.
    tags Map<Any>
    A map of tags assigned to the ENI.
    type String
    vpcId String
    ID of the VPC that the ENI belongs to.
    vswitchId String
    ID of the VSwitch that the ENI is linked to.
    zoneId String
    ID of the availability zone that the ENI belongs to.

    GetNetworkInterfacesInterfaceAssociatedPublicIp

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi