alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.ecs.EcsNetworkInterface

Explore with Pulumi AI

Provides a ECS Network Interface resource.

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

NOTE: Available in 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

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-testAcc";
    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 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-testAcc"
		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.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("Test"),
			},
			ResourceGroupId: *pulumi.String(defaultResourceGroups.Ids[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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-testAcc");
        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());

    }
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-testAcc"
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])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tf-testAcc";
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]),
});
configuration:
  name:
    type: string
    default: tf-testAcc
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

new EcsNetworkInterface(name: string, args: EcsNetworkInterfaceArgs, opts?: CustomResourceOptions);
@overload
def EcsNetworkInterface(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        description: Optional[str] = None,
                        ipv6_address_count: Optional[int] = None,
                        ipv6_addresses: Optional[Sequence[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,
                        tags: Optional[Mapping[str, Any]] = None,
                        vswitch_id: Optional[str] = None)
@overload
def EcsNetworkInterface(resource_name: str,
                        args: EcsNetworkInterfaceArgs,
                        opts: Optional[ResourceOptions] = 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.

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.

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://.

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://.

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://.

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://.

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://.

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://.

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,
        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://.

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://.

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://.

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://.

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://.

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://.

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.