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

tencentcloud.VpcIpv6EniAddress

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 ipv6_eni_address

    NOTE: It has been deprecated and replaced by tencentcloud.EniIpv6Address.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const zones = tencentcloud.getAvailabilityZones({});
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
        vpcId: vpc.vpcId,
        cidrBlock: "10.0.0.0/16",
        isMulticast: false,
    });
    const eni = new tencentcloud.Eni("eni", {
        vpcId: vpc.vpcId,
        subnetId: subnet.subnetId,
        description: "eni desc.",
        ipv4Count: 1,
    });
    const example = new tencentcloud.VpcIpv6CidrBlock("example", {vpcId: vpc.vpcId});
    const ipv6EniAddress = new tencentcloud.VpcIpv6EniAddress("ipv6EniAddress", {
        vpcId: vpc.vpcId,
        networkInterfaceId: eni.eniId,
        ipv6Addresses: [{
            address: "xxxxxxxxxxxxxx",
            description: "desc.",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    zones = tencentcloud.get_availability_zones()
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        availability_zone=zones.zones[0].name,
        vpc_id=vpc.vpc_id,
        cidr_block="10.0.0.0/16",
        is_multicast=False)
    eni = tencentcloud.Eni("eni",
        vpc_id=vpc.vpc_id,
        subnet_id=subnet.subnet_id,
        description="eni desc.",
        ipv4_count=1)
    example = tencentcloud.VpcIpv6CidrBlock("example", vpc_id=vpc.vpc_id)
    ipv6_eni_address = tencentcloud.VpcIpv6EniAddress("ipv6EniAddress",
        vpc_id=vpc.vpc_id,
        network_interface_id=eni.eni_id,
        ipv6_addresses=[{
            "address": "xxxxxxxxxxxxxx",
            "description": "desc.",
        }])
    
    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 {
    		zones, err := tencentcloud.GetAvailabilityZones(ctx, &tencentcloud.GetAvailabilityZonesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		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(zones.Zones[0].Name),
    			VpcId:            vpc.VpcId,
    			CidrBlock:        pulumi.String("10.0.0.0/16"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		eni, err := tencentcloud.NewEni(ctx, "eni", &tencentcloud.EniArgs{
    			VpcId:       vpc.VpcId,
    			SubnetId:    subnet.SubnetId,
    			Description: pulumi.String("eni desc."),
    			Ipv4Count:   pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewVpcIpv6CidrBlock(ctx, "example", &tencentcloud.VpcIpv6CidrBlockArgs{
    			VpcId: vpc.VpcId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewVpcIpv6EniAddress(ctx, "ipv6EniAddress", &tencentcloud.VpcIpv6EniAddressArgs{
    			VpcId:              vpc.VpcId,
    			NetworkInterfaceId: eni.EniId,
    			Ipv6Addresses: tencentcloud.VpcIpv6EniAddressIpv6AddressArray{
    				&tencentcloud.VpcIpv6EniAddressIpv6AddressArgs{
    					Address:     pulumi.String("xxxxxxxxxxxxxx"),
    					Description: pulumi.String("desc."),
    				},
    			},
    		})
    		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 zones = Tencentcloud.GetAvailabilityZones.Invoke();
    
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            AvailabilityZone = zones.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Zones[0]?.Name),
            VpcId = vpc.VpcId,
            CidrBlock = "10.0.0.0/16",
            IsMulticast = false,
        });
    
        var eni = new Tencentcloud.Eni("eni", new()
        {
            VpcId = vpc.VpcId,
            SubnetId = subnet.SubnetId,
            Description = "eni desc.",
            Ipv4Count = 1,
        });
    
        var example = new Tencentcloud.VpcIpv6CidrBlock("example", new()
        {
            VpcId = vpc.VpcId,
        });
    
        var ipv6EniAddress = new Tencentcloud.VpcIpv6EniAddress("ipv6EniAddress", new()
        {
            VpcId = vpc.VpcId,
            NetworkInterfaceId = eni.EniId,
            Ipv6Addresses = new[]
            {
                new Tencentcloud.Inputs.VpcIpv6EniAddressIpv6AddressArgs
                {
                    Address = "xxxxxxxxxxxxxx",
                    Description = "desc.",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesArgs;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.Eni;
    import com.pulumi.tencentcloud.EniArgs;
    import com.pulumi.tencentcloud.VpcIpv6CidrBlock;
    import com.pulumi.tencentcloud.VpcIpv6CidrBlockArgs;
    import com.pulumi.tencentcloud.VpcIpv6EniAddress;
    import com.pulumi.tencentcloud.VpcIpv6EniAddressArgs;
    import com.pulumi.tencentcloud.inputs.VpcIpv6EniAddressIpv6AddressArgs;
    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 zones = TencentcloudFunctions.getAvailabilityZones();
    
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .availabilityZone(zones.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.zones()[0].name()))
                .vpcId(vpc.vpcId())
                .cidrBlock("10.0.0.0/16")
                .isMulticast(false)
                .build());
    
            var eni = new Eni("eni", EniArgs.builder()
                .vpcId(vpc.vpcId())
                .subnetId(subnet.subnetId())
                .description("eni desc.")
                .ipv4Count(1)
                .build());
    
            var example = new VpcIpv6CidrBlock("example", VpcIpv6CidrBlockArgs.builder()
                .vpcId(vpc.vpcId())
                .build());
    
            var ipv6EniAddress = new VpcIpv6EniAddress("ipv6EniAddress", VpcIpv6EniAddressArgs.builder()
                .vpcId(vpc.vpcId())
                .networkInterfaceId(eni.eniId())
                .ipv6Addresses(VpcIpv6EniAddressIpv6AddressArgs.builder()
                    .address("xxxxxxxxxxxxxx")
                    .description("desc.")
                    .build())
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          availabilityZone: ${zones.zones[0].name}
          vpcId: ${vpc.vpcId}
          cidrBlock: 10.0.0.0/16
          isMulticast: false
      eni:
        type: tencentcloud:Eni
        properties:
          vpcId: ${vpc.vpcId}
          subnetId: ${subnet.subnetId}
          description: eni desc.
          ipv4Count: 1
      example:
        type: tencentcloud:VpcIpv6CidrBlock
        properties:
          vpcId: ${vpc.vpcId}
      ipv6EniAddress:
        type: tencentcloud:VpcIpv6EniAddress
        properties:
          vpcId: ${vpc.vpcId}
          networkInterfaceId: ${eni.eniId}
          ipv6Addresses:
            - address: xxxxxxxxxxxxxx
              description: desc.
    variables:
      zones:
        fn::invoke:
          function: tencentcloud:getAvailabilityZones
          arguments: {}
    

    Create VpcIpv6EniAddress Resource

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

    Constructor syntax

    new VpcIpv6EniAddress(name: string, args: VpcIpv6EniAddressArgs, opts?: CustomResourceOptions);
    @overload
    def VpcIpv6EniAddress(resource_name: str,
                          args: VpcIpv6EniAddressArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcIpv6EniAddress(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          network_interface_id: Optional[str] = None,
                          vpc_id: Optional[str] = None,
                          ipv6_addresses: Optional[Sequence[VpcIpv6EniAddressIpv6AddressArgs]] = None,
                          vpc_ipv6_eni_address_id: Optional[str] = None)
    func NewVpcIpv6EniAddress(ctx *Context, name string, args VpcIpv6EniAddressArgs, opts ...ResourceOption) (*VpcIpv6EniAddress, error)
    public VpcIpv6EniAddress(string name, VpcIpv6EniAddressArgs args, CustomResourceOptions? opts = null)
    public VpcIpv6EniAddress(String name, VpcIpv6EniAddressArgs args)
    public VpcIpv6EniAddress(String name, VpcIpv6EniAddressArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VpcIpv6EniAddress
    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 VpcIpv6EniAddressArgs
    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 VpcIpv6EniAddressArgs
    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 VpcIpv6EniAddressArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcIpv6EniAddressArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcIpv6EniAddressArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VpcIpv6EniAddress 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 VpcIpv6EniAddress resource accepts the following input properties:

    NetworkInterfaceId string
    ENI instance ID, in the form of eni-m6dyj72l.
    VpcId string
    VPC ID, in the form of vpc-m6dyj72l.
    Ipv6Addresses List<VpcIpv6EniAddressIpv6Address>
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    VpcIpv6EniAddressId string
    ID of the resource.
    NetworkInterfaceId string
    ENI instance ID, in the form of eni-m6dyj72l.
    VpcId string
    VPC ID, in the form of vpc-m6dyj72l.
    Ipv6Addresses []VpcIpv6EniAddressIpv6AddressArgs
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    VpcIpv6EniAddressId string
    ID of the resource.
    networkInterfaceId String
    ENI instance ID, in the form of eni-m6dyj72l.
    vpcId String
    VPC ID, in the form of vpc-m6dyj72l.
    ipv6Addresses List<VpcIpv6EniAddressIpv6Address>
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    vpcIpv6EniAddressId String
    ID of the resource.
    networkInterfaceId string
    ENI instance ID, in the form of eni-m6dyj72l.
    vpcId string
    VPC ID, in the form of vpc-m6dyj72l.
    ipv6Addresses VpcIpv6EniAddressIpv6Address[]
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    vpcIpv6EniAddressId string
    ID of the resource.
    network_interface_id str
    ENI instance ID, in the form of eni-m6dyj72l.
    vpc_id str
    VPC ID, in the form of vpc-m6dyj72l.
    ipv6_addresses Sequence[VpcIpv6EniAddressIpv6AddressArgs]
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    vpc_ipv6_eni_address_id str
    ID of the resource.
    networkInterfaceId String
    ENI instance ID, in the form of eni-m6dyj72l.
    vpcId String
    VPC ID, in the form of vpc-m6dyj72l.
    ipv6Addresses List<Property Map>
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    vpcIpv6EniAddressId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcIpv6EniAddress 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 VpcIpv6EniAddress Resource

    Get an existing VpcIpv6EniAddress 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?: VpcIpv6EniAddressState, opts?: CustomResourceOptions): VpcIpv6EniAddress
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ipv6_addresses: Optional[Sequence[VpcIpv6EniAddressIpv6AddressArgs]] = None,
            network_interface_id: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vpc_ipv6_eni_address_id: Optional[str] = None) -> VpcIpv6EniAddress
    func GetVpcIpv6EniAddress(ctx *Context, name string, id IDInput, state *VpcIpv6EniAddressState, opts ...ResourceOption) (*VpcIpv6EniAddress, error)
    public static VpcIpv6EniAddress Get(string name, Input<string> id, VpcIpv6EniAddressState? state, CustomResourceOptions? opts = null)
    public static VpcIpv6EniAddress get(String name, Output<String> id, VpcIpv6EniAddressState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VpcIpv6EniAddress    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:
    Ipv6Addresses List<VpcIpv6EniAddressIpv6Address>
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    NetworkInterfaceId string
    ENI instance ID, in the form of eni-m6dyj72l.
    VpcId string
    VPC ID, in the form of vpc-m6dyj72l.
    VpcIpv6EniAddressId string
    ID of the resource.
    Ipv6Addresses []VpcIpv6EniAddressIpv6AddressArgs
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    NetworkInterfaceId string
    ENI instance ID, in the form of eni-m6dyj72l.
    VpcId string
    VPC ID, in the form of vpc-m6dyj72l.
    VpcIpv6EniAddressId string
    ID of the resource.
    ipv6Addresses List<VpcIpv6EniAddressIpv6Address>
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    networkInterfaceId String
    ENI instance ID, in the form of eni-m6dyj72l.
    vpcId String
    VPC ID, in the form of vpc-m6dyj72l.
    vpcIpv6EniAddressId String
    ID of the resource.
    ipv6Addresses VpcIpv6EniAddressIpv6Address[]
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    networkInterfaceId string
    ENI instance ID, in the form of eni-m6dyj72l.
    vpcId string
    VPC ID, in the form of vpc-m6dyj72l.
    vpcIpv6EniAddressId string
    ID of the resource.
    ipv6_addresses Sequence[VpcIpv6EniAddressIpv6AddressArgs]
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    network_interface_id str
    ENI instance ID, in the form of eni-m6dyj72l.
    vpc_id str
    VPC ID, in the form of vpc-m6dyj72l.
    vpc_ipv6_eni_address_id str
    ID of the resource.
    ipv6Addresses List<Property Map>
    The specified IPv6 address list, up to 10 can be specified at a time. Combined with the input parameter Ipv6AddressCount to calculate the quota. Mandatory one with Ipv6AddressCount.
    networkInterfaceId String
    ENI instance ID, in the form of eni-m6dyj72l.
    vpcId String
    VPC ID, in the form of vpc-m6dyj72l.
    vpcIpv6EniAddressId String
    ID of the resource.

    Supporting Types

    VpcIpv6EniAddressIpv6Address, VpcIpv6EniAddressIpv6AddressArgs

    Address string
    IPv6 address, in the form of: 3402:4e00:20:100:0:8cd9:2a67:71f3.
    AddressId string
    EIP instance ID, such as:eip-hxlqja90.
    Description string
    Description.
    IsWanIpBlocked bool
    Whether the public network IP is blocked.
    Primary bool
    Whether to master IP.
    State string
    IPv6 address status: PENDING: pending, MIGRATING: migrating, DELETING: deleting, AVAILABLE: available.
    Address string
    IPv6 address, in the form of: 3402:4e00:20:100:0:8cd9:2a67:71f3.
    AddressId string
    EIP instance ID, such as:eip-hxlqja90.
    Description string
    Description.
    IsWanIpBlocked bool
    Whether the public network IP is blocked.
    Primary bool
    Whether to master IP.
    State string
    IPv6 address status: PENDING: pending, MIGRATING: migrating, DELETING: deleting, AVAILABLE: available.
    address String
    IPv6 address, in the form of: 3402:4e00:20:100:0:8cd9:2a67:71f3.
    addressId String
    EIP instance ID, such as:eip-hxlqja90.
    description String
    Description.
    isWanIpBlocked Boolean
    Whether the public network IP is blocked.
    primary Boolean
    Whether to master IP.
    state String
    IPv6 address status: PENDING: pending, MIGRATING: migrating, DELETING: deleting, AVAILABLE: available.
    address string
    IPv6 address, in the form of: 3402:4e00:20:100:0:8cd9:2a67:71f3.
    addressId string
    EIP instance ID, such as:eip-hxlqja90.
    description string
    Description.
    isWanIpBlocked boolean
    Whether the public network IP is blocked.
    primary boolean
    Whether to master IP.
    state string
    IPv6 address status: PENDING: pending, MIGRATING: migrating, DELETING: deleting, AVAILABLE: available.
    address str
    IPv6 address, in the form of: 3402:4e00:20:100:0:8cd9:2a67:71f3.
    address_id str
    EIP instance ID, such as:eip-hxlqja90.
    description str
    Description.
    is_wan_ip_blocked bool
    Whether the public network IP is blocked.
    primary bool
    Whether to master IP.
    state str
    IPv6 address status: PENDING: pending, MIGRATING: migrating, DELETING: deleting, AVAILABLE: available.
    address String
    IPv6 address, in the form of: 3402:4e00:20:100:0:8cd9:2a67:71f3.
    addressId String
    EIP instance ID, such as:eip-hxlqja90.
    description String
    Description.
    isWanIpBlocked Boolean
    Whether the public network IP is blocked.
    primary Boolean
    Whether to master IP.
    state String
    IPv6 address status: PENDING: pending, MIGRATING: migrating, DELETING: deleting, AVAILABLE: available.

    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