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

alicloud.ecs.EcsNetworkInterface

Explore with Pulumi AI

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

    Provides a ECS Network Interface resource.

    For information about ECS Network Interface and how to use it, see What is Network Interface.

    NOTE: Available since v1.123.1.

    NOTE Only one of private_ip_addresses or secondary_private_ip_address_count can be specified when assign private IPs.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "192.168.0.0/24",
    });
    const defaultZones = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: name,
        cidrBlock: "192.168.0.0/24",
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
        vpcId: defaultNetwork.id,
    });
    const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetwork.id});
    const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
        status: "OK",
    });
    const defaultEcsNetworkInterface = new alicloud.ecs.EcsNetworkInterface("defaultEcsNetworkInterface", {
        networkInterfaceName: name,
        vswitchId: defaultSwitch.id,
        securityGroupIds: [defaultSecurityGroup.id],
        description: "Basic test",
        primaryIpAddress: "192.168.0.2",
        tags: {
            Created: "TF",
            For: "Test",
        },
        resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.ids?.[0]),
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="192.168.0.0/24")
    default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name=name,
        cidr_block="192.168.0.0/24",
        zone_id=default_zones.zones[0].id,
        vpc_id=default_network.id)
    default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_network.id)
    default_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
    default_ecs_network_interface = alicloud.ecs.EcsNetworkInterface("defaultEcsNetworkInterface",
        network_interface_name=name,
        vswitch_id=default_switch.id,
        security_group_ids=[default_security_group.id],
        description="Basic test",
        primary_ip_address="192.168.0.2",
        tags={
            "Created": "TF",
            "For": "Test",
        },
        resource_group_id=default_resource_groups.ids[0])
    
    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/resourcemanager"
    	"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 := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("192.168.0.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("192.168.0.0/24"),
    			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
    			VpcId:       defaultNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
    			VpcId: defaultNetwork.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
    			Status: pulumi.StringRef("OK"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ecs.NewEcsNetworkInterface(ctx, "defaultEcsNetworkInterface", &ecs.EcsNetworkInterfaceArgs{
    			NetworkInterfaceName: pulumi.String(name),
    			VswitchId:            defaultSwitch.ID(),
    			SecurityGroupIds: pulumi.StringArray{
    				defaultSecurityGroup.ID(),
    			},
    			Description:      pulumi.String("Basic test"),
    			PrimaryIpAddress: pulumi.String("192.168.0.2"),
    			Tags: pulumi.Map{
    				"Created": pulumi.Any("TF"),
    				"For":     pulumi.Any("Test"),
    			},
    			ResourceGroupId: pulumi.String(defaultResourceGroups.Ids[0]),
    		})
    		if err != nil {
    			return err
    		}
    		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") ?? "tf-example";
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "192.168.0.0/24",
        });
    
        var defaultZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = name,
            CidrBlock = "192.168.0.0/24",
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            VpcId = defaultNetwork.Id,
        });
    
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
        {
            VpcId = defaultNetwork.Id,
        });
    
        var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
        {
            Status = "OK",
        });
    
        var defaultEcsNetworkInterface = new AliCloud.Ecs.EcsNetworkInterface("defaultEcsNetworkInterface", new()
        {
            NetworkInterfaceName = name,
            VswitchId = defaultSwitch.Id,
            SecurityGroupIds = new[]
            {
                defaultSecurityGroup.Id,
            },
            Description = "Basic test",
            PrimaryIpAddress = "192.168.0.2",
            Tags = 
            {
                { "Created", "TF" },
                { "For", "Test" },
            },
            ResourceGroupId = defaultResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0]),
        });
    
    });
    
    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.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.ecs.EcsNetworkInterface;
    import com.pulumi.alicloud.ecs.EcsNetworkInterfaceArgs;
    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("tf-example");
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("192.168.0.0/24")
                .build());
    
            final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vswitchName(name)
                .cidrBlock("192.168.0.0/24")
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .vpcId(defaultNetwork.id())
                .build());
    
            var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
                .vpcId(defaultNetwork.id())
                .build());
    
            final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
                .status("OK")
                .build());
    
            var defaultEcsNetworkInterface = new EcsNetworkInterface("defaultEcsNetworkInterface", EcsNetworkInterfaceArgs.builder()        
                .networkInterfaceName(name)
                .vswitchId(defaultSwitch.id())
                .securityGroupIds(defaultSecurityGroup.id())
                .description("Basic test")
                .primaryIpAddress("192.168.0.2")
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "Test")
                ))
                .resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.ids()[0]))
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 192.168.0.0/24
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 192.168.0.0/24
          zoneId: ${defaultZones.zones[0].id}
          vpcId: ${defaultNetwork.id}
      defaultSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        properties:
          vpcId: ${defaultNetwork.id}
      defaultEcsNetworkInterface:
        type: alicloud:ecs:EcsNetworkInterface
        properties:
          networkInterfaceName: ${name}
          vswitchId: ${defaultSwitch.id}
          securityGroupIds:
            - ${defaultSecurityGroup.id}
          description: Basic test
          primaryIpAddress: 192.168.0.2
          tags:
            Created: TF
            For: Test
          resourceGroupId: ${defaultResourceGroups.ids[0]}
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
      defaultResourceGroups:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments:
            status: OK
    

    Create EcsNetworkInterface Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EcsNetworkInterface(name: string, args: EcsNetworkInterfaceArgs, opts?: CustomResourceOptions);
    @overload
    def EcsNetworkInterface(resource_name: str,
                            args: EcsNetworkInterfaceArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def EcsNetworkInterface(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            vswitch_id: Optional[str] = None,
                            private_ip: Optional[str] = None,
                            ipv6_address_count: Optional[int] = None,
                            private_ips: Optional[Sequence[str]] = None,
                            private_ips_count: Optional[int] = None,
                            name: Optional[str] = None,
                            network_interface_name: Optional[str] = None,
                            primary_ip_address: Optional[str] = None,
                            description: Optional[str] = None,
                            ipv4_prefix_count: Optional[int] = None,
                            ipv4_prefixes: Optional[Sequence[str]] = None,
                            ipv6_addresses: Optional[Sequence[str]] = None,
                            queue_number: Optional[int] = None,
                            resource_group_id: Optional[str] = None,
                            secondary_private_ip_address_count: Optional[int] = None,
                            security_group_ids: Optional[Sequence[str]] = None,
                            security_groups: Optional[Sequence[str]] = None,
                            tags: Optional[Mapping[str, Any]] = None,
                            private_ip_addresses: Optional[Sequence[str]] = None)
    func NewEcsNetworkInterface(ctx *Context, name string, args EcsNetworkInterfaceArgs, opts ...ResourceOption) (*EcsNetworkInterface, error)
    public EcsNetworkInterface(string name, EcsNetworkInterfaceArgs args, CustomResourceOptions? opts = null)
    public EcsNetworkInterface(String name, EcsNetworkInterfaceArgs args)
    public EcsNetworkInterface(String name, EcsNetworkInterfaceArgs args, CustomResourceOptions options)
    
    type: alicloud:ecs:EcsNetworkInterface
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EcsNetworkInterfaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EcsNetworkInterfaceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EcsNetworkInterfaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EcsNetworkInterfaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EcsNetworkInterfaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var ecsNetworkInterfaceResource = new AliCloud.Ecs.EcsNetworkInterface("ecsNetworkInterfaceResource", new()
    {
        VswitchId = "string",
        Ipv6AddressCount = 0,
        NetworkInterfaceName = "string",
        PrimaryIpAddress = "string",
        Description = "string",
        Ipv4PrefixCount = 0,
        Ipv4Prefixes = new[]
        {
            "string",
        },
        Ipv6Addresses = new[]
        {
            "string",
        },
        QueueNumber = 0,
        ResourceGroupId = "string",
        SecondaryPrivateIpAddressCount = 0,
        SecurityGroupIds = new[]
        {
            "string",
        },
        Tags = 
        {
            { "string", "any" },
        },
        PrivateIpAddresses = new[]
        {
            "string",
        },
    });
    
    example, err := ecs.NewEcsNetworkInterface(ctx, "ecsNetworkInterfaceResource", &ecs.EcsNetworkInterfaceArgs{
    	VswitchId:            pulumi.String("string"),
    	Ipv6AddressCount:     pulumi.Int(0),
    	NetworkInterfaceName: pulumi.String("string"),
    	PrimaryIpAddress:     pulumi.String("string"),
    	Description:          pulumi.String("string"),
    	Ipv4PrefixCount:      pulumi.Int(0),
    	Ipv4Prefixes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Ipv6Addresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	QueueNumber:                    pulumi.Int(0),
    	ResourceGroupId:                pulumi.String("string"),
    	SecondaryPrivateIpAddressCount: pulumi.Int(0),
    	SecurityGroupIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Tags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	PrivateIpAddresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var ecsNetworkInterfaceResource = new EcsNetworkInterface("ecsNetworkInterfaceResource", EcsNetworkInterfaceArgs.builder()        
        .vswitchId("string")
        .ipv6AddressCount(0)
        .networkInterfaceName("string")
        .primaryIpAddress("string")
        .description("string")
        .ipv4PrefixCount(0)
        .ipv4Prefixes("string")
        .ipv6Addresses("string")
        .queueNumber(0)
        .resourceGroupId("string")
        .secondaryPrivateIpAddressCount(0)
        .securityGroupIds("string")
        .tags(Map.of("string", "any"))
        .privateIpAddresses("string")
        .build());
    
    ecs_network_interface_resource = alicloud.ecs.EcsNetworkInterface("ecsNetworkInterfaceResource",
        vswitch_id="string",
        ipv6_address_count=0,
        network_interface_name="string",
        primary_ip_address="string",
        description="string",
        ipv4_prefix_count=0,
        ipv4_prefixes=["string"],
        ipv6_addresses=["string"],
        queue_number=0,
        resource_group_id="string",
        secondary_private_ip_address_count=0,
        security_group_ids=["string"],
        tags={
            "string": "any",
        },
        private_ip_addresses=["string"])
    
    const ecsNetworkInterfaceResource = new alicloud.ecs.EcsNetworkInterface("ecsNetworkInterfaceResource", {
        vswitchId: "string",
        ipv6AddressCount: 0,
        networkInterfaceName: "string",
        primaryIpAddress: "string",
        description: "string",
        ipv4PrefixCount: 0,
        ipv4Prefixes: ["string"],
        ipv6Addresses: ["string"],
        queueNumber: 0,
        resourceGroupId: "string",
        secondaryPrivateIpAddressCount: 0,
        securityGroupIds: ["string"],
        tags: {
            string: "any",
        },
        privateIpAddresses: ["string"],
    });
    
    type: alicloud:ecs:EcsNetworkInterface
    properties:
        description: string
        ipv4PrefixCount: 0
        ipv4Prefixes:
            - string
        ipv6AddressCount: 0
        ipv6Addresses:
            - string
        networkInterfaceName: string
        primaryIpAddress: string
        privateIpAddresses:
            - string
        queueNumber: 0
        resourceGroupId: string
        secondaryPrivateIpAddressCount: 0
        securityGroupIds:
            - string
        tags:
            string: any
        vswitchId: string
    

    EcsNetworkInterface Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The EcsNetworkInterface resource accepts the following input properties:

    VswitchId string
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    Description string
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    Ipv4PrefixCount int
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    Ipv4Prefixes List<string>
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    Ipv6AddressCount int
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    Ipv6Addresses List<string>
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    Name string
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    NetworkInterfaceName string
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    PrimaryIpAddress string
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    PrivateIp string
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    PrivateIpAddresses List<string>
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    PrivateIps List<string>
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    PrivateIpsCount int
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    QueueNumber int
    The queue number of the ENI.
    ResourceGroupId string
    The resource group id.
    SecondaryPrivateIpAddressCount int
    The number of private IP addresses that can be automatically created by ECS.
    SecurityGroupIds List<string>
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    SecurityGroups List<string>
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    VswitchId string
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    Description string
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    Ipv4PrefixCount int
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    Ipv4Prefixes []string
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    Ipv6AddressCount int
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    Ipv6Addresses []string
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    Name string
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    NetworkInterfaceName string
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    PrimaryIpAddress string
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    PrivateIp string
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    PrivateIpAddresses []string
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    PrivateIps []string
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    PrivateIpsCount int
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    QueueNumber int
    The queue number of the ENI.
    ResourceGroupId string
    The resource group id.
    SecondaryPrivateIpAddressCount int
    The number of private IP addresses that can be automatically created by ECS.
    SecurityGroupIds []string
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    SecurityGroups []string
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    vswitchId String
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    description String
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    ipv4PrefixCount Integer
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    ipv4Prefixes List<String>
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    ipv6AddressCount Integer
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    ipv6Addresses List<String>
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    name String
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    networkInterfaceName String
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    primaryIpAddress String
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    privateIp String
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    privateIpAddresses List<String>
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    privateIps List<String>
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    privateIpsCount Integer
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    queueNumber Integer
    The queue number of the ENI.
    resourceGroupId String
    The resource group id.
    secondaryPrivateIpAddressCount Integer
    The number of private IP addresses that can be automatically created by ECS.
    securityGroupIds List<String>
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    securityGroups List<String>
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    vswitchId string
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    description string
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    ipv4PrefixCount number
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    ipv4Prefixes string[]
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    ipv6AddressCount number
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    ipv6Addresses string[]
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    name string
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    networkInterfaceName string
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    primaryIpAddress string
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    privateIp string
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    privateIpAddresses string[]
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    privateIps string[]
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    privateIpsCount number
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    queueNumber number
    The queue number of the ENI.
    resourceGroupId string
    The resource group id.
    secondaryPrivateIpAddressCount number
    The number of private IP addresses that can be automatically created by ECS.
    securityGroupIds string[]
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    securityGroups string[]
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    vswitch_id str
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    description str
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    ipv4_prefix_count int
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    ipv4_prefixes Sequence[str]
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    ipv6_address_count int
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    ipv6_addresses Sequence[str]
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    name str
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    network_interface_name str
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    primary_ip_address str
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    private_ip str
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    private_ip_addresses Sequence[str]
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    private_ips Sequence[str]
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    private_ips_count int
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    queue_number int
    The queue number of the ENI.
    resource_group_id str
    The resource group id.
    secondary_private_ip_address_count int
    The number of private IP addresses that can be automatically created by ECS.
    security_group_ids Sequence[str]
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    security_groups Sequence[str]
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    vswitchId String
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    description String
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    ipv4PrefixCount Number
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    ipv4Prefixes List<String>
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    ipv6AddressCount Number
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    ipv6Addresses List<String>
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    name String
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    networkInterfaceName String
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    primaryIpAddress String
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    privateIp String
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    privateIpAddresses List<String>
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    privateIps List<String>
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    privateIpsCount Number
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    queueNumber Number
    The queue number of the ENI.
    resourceGroupId String
    The resource group id.
    secondaryPrivateIpAddressCount Number
    The number of private IP addresses that can be automatically created by ECS.
    securityGroupIds List<String>
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    securityGroups List<String>
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    tags Map<Any>
    A mapping of tags to assign to the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EcsNetworkInterface resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Mac string
    The MAC address of the ENI.
    Status string
    The status of the ENI.
    Id string
    The provider-assigned unique ID for this managed resource.
    Mac string
    The MAC address of the ENI.
    Status string
    The status of the ENI.
    id String
    The provider-assigned unique ID for this managed resource.
    mac String
    The MAC address of the ENI.
    status String
    The status of the ENI.
    id string
    The provider-assigned unique ID for this managed resource.
    mac string
    The MAC address of the ENI.
    status string
    The status of the ENI.
    id str
    The provider-assigned unique ID for this managed resource.
    mac str
    The MAC address of the ENI.
    status str
    The status of the ENI.
    id String
    The provider-assigned unique ID for this managed resource.
    mac String
    The MAC address of the ENI.
    status String
    The status of the ENI.

    Look up Existing EcsNetworkInterface Resource

    Get an existing EcsNetworkInterface resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EcsNetworkInterfaceState, opts?: CustomResourceOptions): EcsNetworkInterface
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            ipv4_prefix_count: Optional[int] = None,
            ipv4_prefixes: Optional[Sequence[str]] = None,
            ipv6_address_count: Optional[int] = None,
            ipv6_addresses: Optional[Sequence[str]] = None,
            mac: Optional[str] = None,
            name: Optional[str] = None,
            network_interface_name: Optional[str] = None,
            primary_ip_address: Optional[str] = None,
            private_ip: Optional[str] = None,
            private_ip_addresses: Optional[Sequence[str]] = None,
            private_ips: Optional[Sequence[str]] = None,
            private_ips_count: Optional[int] = None,
            queue_number: Optional[int] = None,
            resource_group_id: Optional[str] = None,
            secondary_private_ip_address_count: Optional[int] = None,
            security_group_ids: Optional[Sequence[str]] = None,
            security_groups: Optional[Sequence[str]] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, Any]] = None,
            vswitch_id: Optional[str] = None) -> EcsNetworkInterface
    func GetEcsNetworkInterface(ctx *Context, name string, id IDInput, state *EcsNetworkInterfaceState, opts ...ResourceOption) (*EcsNetworkInterface, error)
    public static EcsNetworkInterface Get(string name, Input<string> id, EcsNetworkInterfaceState? state, CustomResourceOptions? opts = null)
    public static EcsNetworkInterface get(String name, Output<String> id, EcsNetworkInterfaceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    Ipv4PrefixCount int
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    Ipv4Prefixes List<string>
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    Ipv6AddressCount int
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    Ipv6Addresses List<string>
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    Mac string
    The MAC address of the ENI.
    Name string
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    NetworkInterfaceName string
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    PrimaryIpAddress string
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    PrivateIp string
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    PrivateIpAddresses List<string>
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    PrivateIps List<string>
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    PrivateIpsCount int
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    QueueNumber int
    The queue number of the ENI.
    ResourceGroupId string
    The resource group id.
    SecondaryPrivateIpAddressCount int
    The number of private IP addresses that can be automatically created by ECS.
    SecurityGroupIds List<string>
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    SecurityGroups List<string>
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    Status string
    The status of the ENI.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    VswitchId string
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    Description string
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    Ipv4PrefixCount int
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    Ipv4Prefixes []string
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    Ipv6AddressCount int
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    Ipv6Addresses []string
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    Mac string
    The MAC address of the ENI.
    Name string
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    NetworkInterfaceName string
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    PrimaryIpAddress string
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    PrivateIp string
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    PrivateIpAddresses []string
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    PrivateIps []string
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    PrivateIpsCount int
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    QueueNumber int
    The queue number of the ENI.
    ResourceGroupId string
    The resource group id.
    SecondaryPrivateIpAddressCount int
    The number of private IP addresses that can be automatically created by ECS.
    SecurityGroupIds []string
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    SecurityGroups []string
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    Status string
    The status of the ENI.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    VswitchId string
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    description String
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    ipv4PrefixCount Integer
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    ipv4Prefixes List<String>
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    ipv6AddressCount Integer
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    ipv6Addresses List<String>
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    mac String
    The MAC address of the ENI.
    name String
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    networkInterfaceName String
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    primaryIpAddress String
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    privateIp String
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    privateIpAddresses List<String>
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    privateIps List<String>
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    privateIpsCount Integer
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    queueNumber Integer
    The queue number of the ENI.
    resourceGroupId String
    The resource group id.
    secondaryPrivateIpAddressCount Integer
    The number of private IP addresses that can be automatically created by ECS.
    securityGroupIds List<String>
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    securityGroups List<String>
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    status String
    The status of the ENI.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    vswitchId String
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    description string
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    ipv4PrefixCount number
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    ipv4Prefixes string[]
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    ipv6AddressCount number
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    ipv6Addresses string[]
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    mac string
    The MAC address of the ENI.
    name string
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    networkInterfaceName string
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    primaryIpAddress string
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    privateIp string
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    privateIpAddresses string[]
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    privateIps string[]
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    privateIpsCount number
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    queueNumber number
    The queue number of the ENI.
    resourceGroupId string
    The resource group id.
    secondaryPrivateIpAddressCount number
    The number of private IP addresses that can be automatically created by ECS.
    securityGroupIds string[]
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    securityGroups string[]
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    status string
    The status of the ENI.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    vswitchId string
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    description str
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    ipv4_prefix_count int
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    ipv4_prefixes Sequence[str]
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    ipv6_address_count int
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    ipv6_addresses Sequence[str]
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    mac str
    The MAC address of the ENI.
    name str
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    network_interface_name str
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    primary_ip_address str
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    private_ip str
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    private_ip_addresses Sequence[str]
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    private_ips Sequence[str]
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    private_ips_count int
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    queue_number int
    The queue number of the ENI.
    resource_group_id str
    The resource group id.
    secondary_private_ip_address_count int
    The number of private IP addresses that can be automatically created by ECS.
    security_group_ids Sequence[str]
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    security_groups Sequence[str]
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    status str
    The status of the ENI.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    vswitch_id str
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.
    description String
    The description of the ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
    ipv4PrefixCount Number
    The number of IPv4 prefixes that can be automatically created by ECS. Valid values: 1 to 10. NOTE: You cannot specify both the ipv4_prefixes and ipv4_prefix_count parameters.
    ipv4Prefixes List<String>
    A list of IPv4 prefixes to be assigned to the ENI. Support up to 10.
    ipv6AddressCount Number
    The number of IPv6 addresses to randomly generate for the primary ENI. Valid values: 1 to 10. NOTE: You cannot specify both the ipv6_addresses and ipv6_address_count parameters.
    ipv6Addresses List<String>
    A list of IPv6 address to be assigned to the primary ENI. Support up to 10.
    mac String
    The MAC address of the ENI.
    name String
    Field name has been deprecated from provider version 1.123.1. New field network_interface_name instead

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

    networkInterfaceName String
    The name of the ENI. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
    primaryIpAddress String
    The primary private IP address of the ENI. The specified IP address must be available within the CIDR block of the VSwitch. If this parameter is not specified, an available IP address is assigned from the VSwitch CIDR block at random.
    privateIp String
    Field private_ip has been deprecated from provider version 1.123.1. New field primary_ip_address instead

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

    privateIpAddresses List<String>
    Specifies secondary private IP address N of the ENI. This IP address must be an available IP address within the CIDR block of the VSwitch to which the ENI belongs.
    privateIps List<String>
    Field private_ips has been deprecated from provider version 1.123.1. New field private_ip_addresses instead

    Deprecated: Field 'private_ips' has been deprecated from provider version 1.123.1. New field 'private_ip_addresses' instead

    privateIpsCount Number
    Field private_ips_count has been deprecated from provider version 1.123.1. New field secondary_private_ip_address_count instead

    Deprecated: Field 'private_ips_count' has been deprecated from provider version 1.123.1. New field 'secondary_private_ip_address_count' instead

    queueNumber Number
    The queue number of the ENI.
    resourceGroupId String
    The resource group id.
    secondaryPrivateIpAddressCount Number
    The number of private IP addresses that can be automatically created by ECS.
    securityGroupIds List<String>
    The ID of security group N. The security groups and the ENI must belong to the same VPC. The valid values of N are based on the maximum number of security groups to which an ENI can be added.
    securityGroups List<String>
    Field security_groups has been deprecated from provider version 1.123.1. New field security_group_ids instead

    Deprecated: Field 'security_groups' has been deprecated from provider version 1.123.1. New field 'security_group_ids' instead

    status String
    The status of the ENI.
    tags Map<Any>
    A mapping of tags to assign to the resource.
    vswitchId String
    The ID of the VSwitch in the specified VPC. The private IP addresses assigned to the ENI must be available IP addresses within the CIDR block of the VSwitch.

    Import

    ECS Network Interface can be imported using the id, e.g.

    $ pulumi import alicloud:ecs/ecsNetworkInterface:EcsNetworkInterface example eni-abcd12345
    

    To learn more about importing existing cloud resources, see Importing resources.

    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