1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. EniIpv4Address
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.EniIpv4Address

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a vpc eni ipv4 address

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        availabilityZone: "ap-guangzhou-6",
        vpcId: vpc.vpcId,
        cidrBlock: "10.0.0.0/16",
        isMulticast: false,
    });
    const exampleSecurityGroup = new tencentcloud.SecurityGroup("exampleSecurityGroup", {
        description: "sg desc.",
        projectId: 0,
        tags: {
            createBy: "Terraform",
        },
    });
    const exampleEni = new tencentcloud.Eni("exampleEni", {
        vpcId: vpc.vpcId,
        subnetId: subnet.subnetId,
        description: "eni desc.",
        ipv4Count: 1,
        securityGroups: [exampleSecurityGroup.securityGroupId],
    });
    const exampleEniIpv4Address = new tencentcloud.EniIpv4Address("exampleEniIpv4Address", {
        networkInterfaceId: exampleEni.eniId,
        qosLevel: "DEFAULT",
        secondaryPrivateIpAddressCount: 3,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        availability_zone="ap-guangzhou-6",
        vpc_id=vpc.vpc_id,
        cidr_block="10.0.0.0/16",
        is_multicast=False)
    example_security_group = tencentcloud.SecurityGroup("exampleSecurityGroup",
        description="sg desc.",
        project_id=0,
        tags={
            "createBy": "Terraform",
        })
    example_eni = tencentcloud.Eni("exampleEni",
        vpc_id=vpc.vpc_id,
        subnet_id=subnet.subnet_id,
        description="eni desc.",
        ipv4_count=1,
        security_groups=[example_security_group.security_group_id])
    example_eni_ipv4_address = tencentcloud.EniIpv4Address("exampleEniIpv4Address",
        network_interface_id=example_eni.eni_id,
        qos_level="DEFAULT",
        secondary_private_ip_address_count=3)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			AvailabilityZone: pulumi.String("ap-guangzhou-6"),
    			VpcId:            vpc.VpcId,
    			CidrBlock:        pulumi.String("10.0.0.0/16"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSecurityGroup, err := tencentcloud.NewSecurityGroup(ctx, "exampleSecurityGroup", &tencentcloud.SecurityGroupArgs{
    			Description: pulumi.String("sg desc."),
    			ProjectId:   pulumi.Float64(0),
    			Tags: pulumi.StringMap{
    				"createBy": pulumi.String("Terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleEni, err := tencentcloud.NewEni(ctx, "exampleEni", &tencentcloud.EniArgs{
    			VpcId:       vpc.VpcId,
    			SubnetId:    subnet.SubnetId,
    			Description: pulumi.String("eni desc."),
    			Ipv4Count:   pulumi.Float64(1),
    			SecurityGroups: pulumi.StringArray{
    				exampleSecurityGroup.SecurityGroupId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewEniIpv4Address(ctx, "exampleEniIpv4Address", &tencentcloud.EniIpv4AddressArgs{
    			NetworkInterfaceId:             exampleEni.EniId,
    			QosLevel:                       pulumi.String("DEFAULT"),
    			SecondaryPrivateIpAddressCount: pulumi.Float64(3),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            AvailabilityZone = "ap-guangzhou-6",
            VpcId = vpc.VpcId,
            CidrBlock = "10.0.0.0/16",
            IsMulticast = false,
        });
    
        var exampleSecurityGroup = new Tencentcloud.SecurityGroup("exampleSecurityGroup", new()
        {
            Description = "sg desc.",
            ProjectId = 0,
            Tags = 
            {
                { "createBy", "Terraform" },
            },
        });
    
        var exampleEni = new Tencentcloud.Eni("exampleEni", new()
        {
            VpcId = vpc.VpcId,
            SubnetId = subnet.SubnetId,
            Description = "eni desc.",
            Ipv4Count = 1,
            SecurityGroups = new[]
            {
                exampleSecurityGroup.SecurityGroupId,
            },
        });
    
        var exampleEniIpv4Address = new Tencentcloud.EniIpv4Address("exampleEniIpv4Address", new()
        {
            NetworkInterfaceId = exampleEni.EniId,
            QosLevel = "DEFAULT",
            SecondaryPrivateIpAddressCount = 3,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.SecurityGroup;
    import com.pulumi.tencentcloud.SecurityGroupArgs;
    import com.pulumi.tencentcloud.Eni;
    import com.pulumi.tencentcloud.EniArgs;
    import com.pulumi.tencentcloud.EniIpv4Address;
    import com.pulumi.tencentcloud.EniIpv4AddressArgs;
    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) {
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .availabilityZone("ap-guangzhou-6")
                .vpcId(vpc.vpcId())
                .cidrBlock("10.0.0.0/16")
                .isMulticast(false)
                .build());
    
            var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
                .description("sg desc.")
                .projectId(0)
                .tags(Map.of("createBy", "Terraform"))
                .build());
    
            var exampleEni = new Eni("exampleEni", EniArgs.builder()
                .vpcId(vpc.vpcId())
                .subnetId(subnet.subnetId())
                .description("eni desc.")
                .ipv4Count(1)
                .securityGroups(exampleSecurityGroup.securityGroupId())
                .build());
    
            var exampleEniIpv4Address = new EniIpv4Address("exampleEniIpv4Address", EniIpv4AddressArgs.builder()
                .networkInterfaceId(exampleEni.eniId())
                .qosLevel("DEFAULT")
                .secondaryPrivateIpAddressCount(3)
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          availabilityZone: ap-guangzhou-6
          vpcId: ${vpc.vpcId}
          cidrBlock: 10.0.0.0/16
          isMulticast: false
      exampleSecurityGroup:
        type: tencentcloud:SecurityGroup
        properties:
          description: sg desc.
          projectId: 0
          tags:
            createBy: Terraform
      exampleEni:
        type: tencentcloud:Eni
        properties:
          vpcId: ${vpc.vpcId}
          subnetId: ${subnet.subnetId}
          description: eni desc.
          ipv4Count: 1
          securityGroups:
            - ${exampleSecurityGroup.securityGroupId}
      exampleEniIpv4Address:
        type: tencentcloud:EniIpv4Address
        properties:
          networkInterfaceId: ${exampleEni.eniId}
          qosLevel: DEFAULT
          secondaryPrivateIpAddressCount: 3
    

    Or

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.EniIpv4Address("example", {
        networkInterfaceId: tencentcloud_eni.example.id,
        privateIpAddresses: [
            {
                isWanIpBlocked: false,
                privateIpAddress: "10.0.0.15",
                qosLevel: "DEFAULT",
            },
            {
                isWanIpBlocked: false,
                privateIpAddress: "10.0.0.4",
                qosLevel: "DEFAULT",
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.EniIpv4Address("example",
        network_interface_id=tencentcloud_eni["example"]["id"],
        private_ip_addresses=[
            {
                "is_wan_ip_blocked": False,
                "private_ip_address": "10.0.0.15",
                "qos_level": "DEFAULT",
            },
            {
                "is_wan_ip_blocked": False,
                "private_ip_address": "10.0.0.4",
                "qos_level": "DEFAULT",
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewEniIpv4Address(ctx, "example", &tencentcloud.EniIpv4AddressArgs{
    			NetworkInterfaceId: pulumi.Any(tencentcloud_eni.Example.Id),
    			PrivateIpAddresses: tencentcloud.EniIpv4AddressPrivateIpAddressArray{
    				&tencentcloud.EniIpv4AddressPrivateIpAddressArgs{
    					IsWanIpBlocked:   pulumi.Bool(false),
    					PrivateIpAddress: pulumi.String("10.0.0.15"),
    					QosLevel:         pulumi.String("DEFAULT"),
    				},
    				&tencentcloud.EniIpv4AddressPrivateIpAddressArgs{
    					IsWanIpBlocked:   pulumi.Bool(false),
    					PrivateIpAddress: pulumi.String("10.0.0.4"),
    					QosLevel:         pulumi.String("DEFAULT"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.EniIpv4Address("example", new()
        {
            NetworkInterfaceId = tencentcloud_eni.Example.Id,
            PrivateIpAddresses = new[]
            {
                new Tencentcloud.Inputs.EniIpv4AddressPrivateIpAddressArgs
                {
                    IsWanIpBlocked = false,
                    PrivateIpAddress = "10.0.0.15",
                    QosLevel = "DEFAULT",
                },
                new Tencentcloud.Inputs.EniIpv4AddressPrivateIpAddressArgs
                {
                    IsWanIpBlocked = false,
                    PrivateIpAddress = "10.0.0.4",
                    QosLevel = "DEFAULT",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.EniIpv4Address;
    import com.pulumi.tencentcloud.EniIpv4AddressArgs;
    import com.pulumi.tencentcloud.inputs.EniIpv4AddressPrivateIpAddressArgs;
    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) {
            var example = new EniIpv4Address("example", EniIpv4AddressArgs.builder()
                .networkInterfaceId(tencentcloud_eni.example().id())
                .privateIpAddresses(            
                    EniIpv4AddressPrivateIpAddressArgs.builder()
                        .isWanIpBlocked(false)
                        .privateIpAddress("10.0.0.15")
                        .qosLevel("DEFAULT")
                        .build(),
                    EniIpv4AddressPrivateIpAddressArgs.builder()
                        .isWanIpBlocked(false)
                        .privateIpAddress("10.0.0.4")
                        .qosLevel("DEFAULT")
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:EniIpv4Address
        properties:
          networkInterfaceId: ${tencentcloud_eni.example.id}
          privateIpAddresses:
            - isWanIpBlocked: false
              privateIpAddress: 10.0.0.15
              qosLevel: DEFAULT
            - isWanIpBlocked: false
              privateIpAddress: 10.0.0.4
              qosLevel: DEFAULT
    

    Create EniIpv4Address Resource

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

    Constructor syntax

    new EniIpv4Address(name: string, args: EniIpv4AddressArgs, opts?: CustomResourceOptions);
    @overload
    def EniIpv4Address(resource_name: str,
                       args: EniIpv4AddressArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def EniIpv4Address(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       network_interface_id: Optional[str] = None,
                       eni_ipv4_address_id: Optional[str] = None,
                       private_ip_addresses: Optional[Sequence[EniIpv4AddressPrivateIpAddressArgs]] = None,
                       qos_level: Optional[str] = None,
                       secondary_private_ip_address_count: Optional[float] = None)
    func NewEniIpv4Address(ctx *Context, name string, args EniIpv4AddressArgs, opts ...ResourceOption) (*EniIpv4Address, error)
    public EniIpv4Address(string name, EniIpv4AddressArgs args, CustomResourceOptions? opts = null)
    public EniIpv4Address(String name, EniIpv4AddressArgs args)
    public EniIpv4Address(String name, EniIpv4AddressArgs args, CustomResourceOptions options)
    
    type: tencentcloud:EniIpv4Address
    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 EniIpv4AddressArgs
    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 EniIpv4AddressArgs
    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 EniIpv4AddressArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EniIpv4AddressArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EniIpv4AddressArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EniIpv4Address Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EniIpv4Address resource accepts the following input properties:

    NetworkInterfaceId string
    The ID of the ENI instance, such as eni-m6dyj72l.
    EniIpv4AddressId string
    ID of the resource.
    PrivateIpAddresses List<EniIpv4AddressPrivateIpAddress>
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    QosLevel string
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    SecondaryPrivateIpAddressCount double
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    NetworkInterfaceId string
    The ID of the ENI instance, such as eni-m6dyj72l.
    EniIpv4AddressId string
    ID of the resource.
    PrivateIpAddresses []EniIpv4AddressPrivateIpAddressArgs
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    QosLevel string
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    SecondaryPrivateIpAddressCount float64
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    networkInterfaceId String
    The ID of the ENI instance, such as eni-m6dyj72l.
    eniIpv4AddressId String
    ID of the resource.
    privateIpAddresses List<EniIpv4AddressPrivateIpAddress>
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    qosLevel String
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    secondaryPrivateIpAddressCount Double
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    networkInterfaceId string
    The ID of the ENI instance, such as eni-m6dyj72l.
    eniIpv4AddressId string
    ID of the resource.
    privateIpAddresses EniIpv4AddressPrivateIpAddress[]
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    qosLevel string
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    secondaryPrivateIpAddressCount number
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    network_interface_id str
    The ID of the ENI instance, such as eni-m6dyj72l.
    eni_ipv4_address_id str
    ID of the resource.
    private_ip_addresses Sequence[EniIpv4AddressPrivateIpAddressArgs]
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    qos_level str
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    secondary_private_ip_address_count float
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    networkInterfaceId String
    The ID of the ENI instance, such as eni-m6dyj72l.
    eniIpv4AddressId String
    ID of the resource.
    privateIpAddresses List<Property Map>
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    qosLevel String
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    secondaryPrivateIpAddressCount Number
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EniIpv4Address Resource

    Get an existing EniIpv4Address 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?: EniIpv4AddressState, opts?: CustomResourceOptions): EniIpv4Address
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            eni_ipv4_address_id: Optional[str] = None,
            network_interface_id: Optional[str] = None,
            private_ip_addresses: Optional[Sequence[EniIpv4AddressPrivateIpAddressArgs]] = None,
            qos_level: Optional[str] = None,
            secondary_private_ip_address_count: Optional[float] = None) -> EniIpv4Address
    func GetEniIpv4Address(ctx *Context, name string, id IDInput, state *EniIpv4AddressState, opts ...ResourceOption) (*EniIpv4Address, error)
    public static EniIpv4Address Get(string name, Input<string> id, EniIpv4AddressState? state, CustomResourceOptions? opts = null)
    public static EniIpv4Address get(String name, Output<String> id, EniIpv4AddressState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:EniIpv4Address    get:      id: ${id}
    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:
    EniIpv4AddressId string
    ID of the resource.
    NetworkInterfaceId string
    The ID of the ENI instance, such as eni-m6dyj72l.
    PrivateIpAddresses List<EniIpv4AddressPrivateIpAddress>
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    QosLevel string
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    SecondaryPrivateIpAddressCount double
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    EniIpv4AddressId string
    ID of the resource.
    NetworkInterfaceId string
    The ID of the ENI instance, such as eni-m6dyj72l.
    PrivateIpAddresses []EniIpv4AddressPrivateIpAddressArgs
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    QosLevel string
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    SecondaryPrivateIpAddressCount float64
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    eniIpv4AddressId String
    ID of the resource.
    networkInterfaceId String
    The ID of the ENI instance, such as eni-m6dyj72l.
    privateIpAddresses List<EniIpv4AddressPrivateIpAddress>
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    qosLevel String
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    secondaryPrivateIpAddressCount Double
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    eniIpv4AddressId string
    ID of the resource.
    networkInterfaceId string
    The ID of the ENI instance, such as eni-m6dyj72l.
    privateIpAddresses EniIpv4AddressPrivateIpAddress[]
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    qosLevel string
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    secondaryPrivateIpAddressCount number
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    eni_ipv4_address_id str
    ID of the resource.
    network_interface_id str
    The ID of the ENI instance, such as eni-m6dyj72l.
    private_ip_addresses Sequence[EniIpv4AddressPrivateIpAddressArgs]
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    qos_level str
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    secondary_private_ip_address_count float
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.
    eniIpv4AddressId String
    ID of the resource.
    networkInterfaceId String
    The ID of the ENI instance, such as eni-m6dyj72l.
    privateIpAddresses List<Property Map>
    The information on private IP addresses, of which you can specify a maximum of 10 at a time. You should provide either this parameter or SecondaryPrivateIpAddressCount, or both.
    qosLevel String
    IP service level. It is used together with SecondaryPrivateIpAddressCount. Values: PT(Gold), AU(Silver), AG `(Bronze) and DEFAULT (Default).
    secondaryPrivateIpAddressCount Number
    The number of newly-applied private IP addresses. You should provide either this parameter or PrivateIpAddresses, or both. The total number of private IP addresses cannot exceed the quota.

    Supporting Types

    EniIpv4AddressPrivateIpAddress, EniIpv4AddressPrivateIpAddressArgs

    PrivateIpAddress string
    Private IP address.
    AddressId string
    EIP instance ID, such as eip-11112222.
    Description string
    Private IP description.
    IsWanIpBlocked bool
    Whether the public IP is blocked.
    Primary bool
    Whether it is a primary IP.
    PublicIpAddress string
    Public IP address.
    QosLevel string
    IP service level. Values: PT(Gold),AU(Silver),AG (Bronze) and DEFAULT (Default).
    State string
    IP status: PENDING: Creating, MIGRATING: Migrating, DELETING: Deleting, AVAILABLE: Available.
    PrivateIpAddress string
    Private IP address.
    AddressId string
    EIP instance ID, such as eip-11112222.
    Description string
    Private IP description.
    IsWanIpBlocked bool
    Whether the public IP is blocked.
    Primary bool
    Whether it is a primary IP.
    PublicIpAddress string
    Public IP address.
    QosLevel string
    IP service level. Values: PT(Gold),AU(Silver),AG (Bronze) and DEFAULT (Default).
    State string
    IP status: PENDING: Creating, MIGRATING: Migrating, DELETING: Deleting, AVAILABLE: Available.
    privateIpAddress String
    Private IP address.
    addressId String
    EIP instance ID, such as eip-11112222.
    description String
    Private IP description.
    isWanIpBlocked Boolean
    Whether the public IP is blocked.
    primary Boolean
    Whether it is a primary IP.
    publicIpAddress String
    Public IP address.
    qosLevel String
    IP service level. Values: PT(Gold),AU(Silver),AG (Bronze) and DEFAULT (Default).
    state String
    IP status: PENDING: Creating, MIGRATING: Migrating, DELETING: Deleting, AVAILABLE: Available.
    privateIpAddress string
    Private IP address.
    addressId string
    EIP instance ID, such as eip-11112222.
    description string
    Private IP description.
    isWanIpBlocked boolean
    Whether the public IP is blocked.
    primary boolean
    Whether it is a primary IP.
    publicIpAddress string
    Public IP address.
    qosLevel string
    IP service level. Values: PT(Gold),AU(Silver),AG (Bronze) and DEFAULT (Default).
    state string
    IP status: PENDING: Creating, MIGRATING: Migrating, DELETING: Deleting, AVAILABLE: Available.
    private_ip_address str
    Private IP address.
    address_id str
    EIP instance ID, such as eip-11112222.
    description str
    Private IP description.
    is_wan_ip_blocked bool
    Whether the public IP is blocked.
    primary bool
    Whether it is a primary IP.
    public_ip_address str
    Public IP address.
    qos_level str
    IP service level. Values: PT(Gold),AU(Silver),AG (Bronze) and DEFAULT (Default).
    state str
    IP status: PENDING: Creating, MIGRATING: Migrating, DELETING: Deleting, AVAILABLE: Available.
    privateIpAddress String
    Private IP address.
    addressId String
    EIP instance ID, such as eip-11112222.
    description String
    Private IP description.
    isWanIpBlocked Boolean
    Whether the public IP is blocked.
    primary Boolean
    Whether it is a primary IP.
    publicIpAddress String
    Public IP address.
    qosLevel String
    IP service level. Values: PT(Gold),AU(Silver),AG (Bronze) and DEFAULT (Default).
    state String
    IP status: PENDING: Creating, MIGRATING: Migrating, DELETING: Deleting, AVAILABLE: Available.

    Import

    vpc eni ipv4 address can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/eniIpv4Address:EniIpv4Address example eni-65369ozn
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack