1. Packages
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. vpc
  6. Ipv6CidrBlock
Viewing docs for Alibaba Cloud v3.105.0
published on Thursday, Jul 16, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.105.0
published on Thursday, Jul 16, 2026 by Pulumi

    Provides a VPC Ipv6 Cidr Block resource.

    VPC IPv6 additional CIDR block.

    For information about VPC Ipv6 Cidr Block and how to use it, see What is Ipv6 Cidr Block.

    NOTE: Available since v1.280.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const defaultIpam = new alicloud.vpc.IpamIpam("defaultIpam", {operatingRegionLists: ["cn-hangzhou"]});
    const defaultIpv6Pool = new alicloud.vpc.IpamIpamPool("defaultIpv6Pool", {
        ipamScopeId: defaultIpam.publicDefaultScopeId,
        poolRegionId: defaultIpam.regionId,
        ipVersion: "IPv6",
        ipv6Isp: "BGP",
    });
    const defaultIpv6PoolCidr = new alicloud.vpc.IpamIpamPoolCidr("defaultIpv6PoolCidr", {
        ipamPoolId: defaultIpv6Pool.id,
        netmaskLength: 56,
    });
    const defaultVpc = new alicloud.vpc.Network("defaultVpc", {
        cidrBlock: "10.0.0.0/8",
        vpcName: "example-ipv6-cidr-block",
    });
    const _default = new alicloud.vpc.Ipv6CidrBlock("default", {
        ipv6IpamPoolId: defaultIpv6Pool.id,
        vpcId: defaultVpc.id,
        ipv6CidrMask: 56,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default_ipam = alicloud.vpc.IpamIpam("defaultIpam", operating_region_lists=["cn-hangzhou"])
    default_ipv6_pool = alicloud.vpc.IpamIpamPool("defaultIpv6Pool",
        ipam_scope_id=default_ipam.public_default_scope_id,
        pool_region_id=default_ipam.region_id,
        ip_version="IPv6",
        ipv6_isp="BGP")
    default_ipv6_pool_cidr = alicloud.vpc.IpamIpamPoolCidr("defaultIpv6PoolCidr",
        ipam_pool_id=default_ipv6_pool.id,
        netmask_length=56)
    default_vpc = alicloud.vpc.Network("defaultVpc",
        cidr_block="10.0.0.0/8",
        vpc_name="example-ipv6-cidr-block")
    default = alicloud.vpc.Ipv6CidrBlock("default",
        ipv6_ipam_pool_id=default_ipv6_pool.id,
        vpc_id=default_vpc.id,
        ipv6_cidr_mask=56)
    
    package main
    
    import (
    	"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 := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultIpam, err := vpc.NewIpamIpam(ctx, "defaultIpam", &vpc.IpamIpamArgs{
    			OperatingRegionLists: pulumi.StringArray{
    				pulumi.String("cn-hangzhou"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultIpv6Pool, err := vpc.NewIpamIpamPool(ctx, "defaultIpv6Pool", &vpc.IpamIpamPoolArgs{
    			IpamScopeId:  defaultIpam.PublicDefaultScopeId,
    			PoolRegionId: defaultIpam.RegionId,
    			IpVersion:    pulumi.String("IPv6"),
    			Ipv6Isp:      pulumi.String("BGP"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewIpamIpamPoolCidr(ctx, "defaultIpv6PoolCidr", &vpc.IpamIpamPoolCidrArgs{
    			IpamPoolId:    defaultIpv6Pool.ID(),
    			NetmaskLength: pulumi.Int(56),
    		})
    		if err != nil {
    			return err
    		}
    		defaultVpc, err := vpc.NewNetwork(ctx, "defaultVpc", &vpc.NetworkArgs{
    			CidrBlock: pulumi.String("10.0.0.0/8"),
    			VpcName:   pulumi.String("example-ipv6-cidr-block"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewIpv6CidrBlock(ctx, "default", &vpc.Ipv6CidrBlockArgs{
    			Ipv6IpamPoolId: defaultIpv6Pool.ID(),
    			VpcId:          defaultVpc.ID(),
    			Ipv6CidrMask:   pulumi.Int(56),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var defaultIpam = new AliCloud.Vpc.IpamIpam("defaultIpam", new()
        {
            OperatingRegionLists = new[]
            {
                "cn-hangzhou",
            },
        });
    
        var defaultIpv6Pool = new AliCloud.Vpc.IpamIpamPool("defaultIpv6Pool", new()
        {
            IpamScopeId = defaultIpam.PublicDefaultScopeId,
            PoolRegionId = defaultIpam.RegionId,
            IpVersion = "IPv6",
            Ipv6Isp = "BGP",
        });
    
        var defaultIpv6PoolCidr = new AliCloud.Vpc.IpamIpamPoolCidr("defaultIpv6PoolCidr", new()
        {
            IpamPoolId = defaultIpv6Pool.Id,
            NetmaskLength = 56,
        });
    
        var defaultVpc = new AliCloud.Vpc.Network("defaultVpc", new()
        {
            CidrBlock = "10.0.0.0/8",
            VpcName = "example-ipv6-cidr-block",
        });
    
        var @default = new AliCloud.Vpc.Ipv6CidrBlock("default", new()
        {
            Ipv6IpamPoolId = defaultIpv6Pool.Id,
            VpcId = defaultVpc.Id,
            Ipv6CidrMask = 56,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.vpc.IpamIpam;
    import com.pulumi.alicloud.vpc.IpamIpamArgs;
    import com.pulumi.alicloud.vpc.IpamIpamPool;
    import com.pulumi.alicloud.vpc.IpamIpamPoolArgs;
    import com.pulumi.alicloud.vpc.IpamIpamPoolCidr;
    import com.pulumi.alicloud.vpc.IpamIpamPoolCidrArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Ipv6CidrBlock;
    import com.pulumi.alicloud.vpc.Ipv6CidrBlockArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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("terraform-example");
            var defaultIpam = new IpamIpam("defaultIpam", IpamIpamArgs.builder()
                .operatingRegionLists("cn-hangzhou")
                .build());
    
            var defaultIpv6Pool = new IpamIpamPool("defaultIpv6Pool", IpamIpamPoolArgs.builder()
                .ipamScopeId(defaultIpam.publicDefaultScopeId())
                .poolRegionId(defaultIpam.regionId())
                .ipVersion("IPv6")
                .ipv6Isp("BGP")
                .build());
    
            var defaultIpv6PoolCidr = new IpamIpamPoolCidr("defaultIpv6PoolCidr", IpamIpamPoolCidrArgs.builder()
                .ipamPoolId(defaultIpv6Pool.id())
                .netmaskLength(56)
                .build());
    
            var defaultVpc = new Network("defaultVpc", NetworkArgs.builder()
                .cidrBlock("10.0.0.0/8")
                .vpcName("example-ipv6-cidr-block")
                .build());
    
            var default_ = new Ipv6CidrBlock("default", Ipv6CidrBlockArgs.builder()
                .ipv6IpamPoolId(defaultIpv6Pool.id())
                .vpcId(defaultVpc.id())
                .ipv6CidrMask(56)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultIpam:
        type: alicloud:vpc:IpamIpam
        properties:
          operatingRegionLists:
            - cn-hangzhou
      defaultIpv6Pool:
        type: alicloud:vpc:IpamIpamPool
        properties:
          ipamScopeId: ${defaultIpam.publicDefaultScopeId}
          poolRegionId: ${defaultIpam.regionId}
          ipVersion: IPv6
          ipv6Isp: BGP
      defaultIpv6PoolCidr:
        type: alicloud:vpc:IpamIpamPoolCidr
        properties:
          ipamPoolId: ${defaultIpv6Pool.id}
          netmaskLength: 56
      defaultVpc:
        type: alicloud:vpc:Network
        properties:
          cidrBlock: 10.0.0.0/8
          vpcName: example-ipv6-cidr-block
      default:
        type: alicloud:vpc:Ipv6CidrBlock
        properties:
          ipv6IpamPoolId: ${defaultIpv6Pool.id}
          vpcId: ${defaultVpc.id}
          ipv6CidrMask: 56
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    resource "alicloud_vpc_ipamipam" "defaultIpam" {
      operating_region_lists = ["cn-hangzhou"]
    }
    resource "alicloud_vpc_ipamipampool" "defaultIpv6Pool" {
      ipam_scope_id  = alicloud_vpc_ipamipam.defaultIpam.public_default_scope_id
      pool_region_id = alicloud_vpc_ipamipam.defaultIpam.region_id
      ip_version     = "IPv6"
      ipv6_isp       = "BGP"
    }
    resource "alicloud_vpc_ipamipampoolcidr" "defaultIpv6PoolCidr" {
      ipam_pool_id   = alicloud_vpc_ipamipampool.defaultIpv6Pool.id
      netmask_length = 56
    }
    resource "alicloud_vpc_network" "defaultVpc" {
      cidr_block = "10.0.0.0/8"
      vpc_name   = "example-ipv6-cidr-block"
    }
    resource "alicloud_vpc_ipv6cidrblock" "default" {
      ipv6_ipam_pool_id = alicloud_vpc_ipamipampool.defaultIpv6Pool.id
      vpc_id            = alicloud_vpc_network.defaultVpc.id
      ipv6_cidr_mask    = 56
    }
    variable "name" {
      type    = string
      default = "terraform-example"
    }
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create Ipv6CidrBlock Resource

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

    Constructor syntax

    new Ipv6CidrBlock(name: string, args: Ipv6CidrBlockArgs, opts?: CustomResourceOptions);
    @overload
    def Ipv6CidrBlock(resource_name: str,
                      args: Ipv6CidrBlockArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ipv6CidrBlock(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      vpc_id: Optional[str] = None,
                      ipv6_cidr_block: Optional[str] = None,
                      ipv6_cidr_mask: Optional[int] = None,
                      ipv6_ipam_pool_id: Optional[str] = None)
    func NewIpv6CidrBlock(ctx *Context, name string, args Ipv6CidrBlockArgs, opts ...ResourceOption) (*Ipv6CidrBlock, error)
    public Ipv6CidrBlock(string name, Ipv6CidrBlockArgs args, CustomResourceOptions? opts = null)
    public Ipv6CidrBlock(String name, Ipv6CidrBlockArgs args)
    public Ipv6CidrBlock(String name, Ipv6CidrBlockArgs args, CustomResourceOptions options)
    
    type: alicloud:vpc:Ipv6CidrBlock
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_vpc_ipv6_cidr_block" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args Ipv6CidrBlockArgs
    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 Ipv6CidrBlockArgs
    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 Ipv6CidrBlockArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Ipv6CidrBlockArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Ipv6CidrBlockArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var ipv6CidrBlockResource = new AliCloud.Vpc.Ipv6CidrBlock("ipv6CidrBlockResource", new()
    {
        VpcId = "string",
        CidrBlock = "string",
        Ipv6CidrMask = 0,
        Ipv6IpamPoolId = "string",
    });
    
    example, err := vpc.NewIpv6CidrBlock(ctx, "ipv6CidrBlockResource", &vpc.Ipv6CidrBlockArgs{
    	VpcId:          pulumi.String("string"),
    	Ipv6CidrBlock:  pulumi.String("string"),
    	Ipv6CidrMask:   pulumi.Int(0),
    	Ipv6IpamPoolId: pulumi.String("string"),
    })
    
    resource "alicloud_vpc_ipv6_cidr_block" "ipv6CidrBlockResource" {
      lifecycle {
        create_before_destroy = true
      }
      vpc_id            = "string"
      ipv6_cidr_block   = "string"
      ipv6_cidr_mask    = 0
      ipv6_ipam_pool_id = "string"
    }
    
    var ipv6CidrBlockResource = new Ipv6CidrBlock("ipv6CidrBlockResource", Ipv6CidrBlockArgs.builder()
        .vpcId("string")
        .ipv6CidrBlock("string")
        .ipv6CidrMask(0)
        .ipv6IpamPoolId("string")
        .build());
    
    ipv6_cidr_block_resource = alicloud.vpc.Ipv6CidrBlock("ipv6CidrBlockResource",
        vpc_id="string",
        ipv6_cidr_block="string",
        ipv6_cidr_mask=0,
        ipv6_ipam_pool_id="string")
    
    const ipv6CidrBlockResource = new alicloud.vpc.Ipv6CidrBlock("ipv6CidrBlockResource", {
        vpcId: "string",
        ipv6CidrBlock: "string",
        ipv6CidrMask: 0,
        ipv6IpamPoolId: "string",
    });
    
    type: alicloud:vpc:Ipv6CidrBlock
    properties:
        ipv6CidrBlock: string
        ipv6CidrMask: 0
        ipv6IpamPoolId: string
        vpcId: string
    

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

    VpcId string
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    CidrBlock string

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    Ipv6CidrMask int

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    Ipv6IpamPoolId string

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    VpcId string
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    Ipv6CidrBlock string

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    Ipv6CidrMask int

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    Ipv6IpamPoolId string

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpc_id string
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6_cidr_block string

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6_cidr_mask number

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6_ipam_pool_id string

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpcId String
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6CidrBlock String

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6CidrMask Integer

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6IpamPoolId String

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpcId string
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6CidrBlock string

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6CidrMask number

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6IpamPoolId string

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpc_id str
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6_cidr_block str

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6_cidr_mask int

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6_ipam_pool_id str

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpcId String
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6CidrBlock String

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6CidrMask Number

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6IpamPoolId String

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    Outputs

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

    Get an existing Ipv6CidrBlock 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?: Ipv6CidrBlockState, opts?: CustomResourceOptions): Ipv6CidrBlock
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ipv6_cidr_block: Optional[str] = None,
            ipv6_cidr_mask: Optional[int] = None,
            ipv6_ipam_pool_id: Optional[str] = None,
            vpc_id: Optional[str] = None) -> Ipv6CidrBlock
    func GetIpv6CidrBlock(ctx *Context, name string, id IDInput, state *Ipv6CidrBlockState, opts ...ResourceOption) (*Ipv6CidrBlock, error)
    public static Ipv6CidrBlock Get(string name, Input<string> id, Ipv6CidrBlockState? state, CustomResourceOptions? opts = null)
    public static Ipv6CidrBlock get(String name, Output<String> id, Ipv6CidrBlockState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:vpc:Ipv6CidrBlock    get:      id: ${id}
    import {
      to = alicloud_vpc_ipv6_cidr_block.example
      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:
    CidrBlock string

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    Ipv6CidrMask int

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    Ipv6IpamPoolId string

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    VpcId string
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    Ipv6CidrBlock string

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    Ipv6CidrMask int

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    Ipv6IpamPoolId string

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    VpcId string
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6_cidr_block string

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6_cidr_mask number

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6_ipam_pool_id string

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpc_id string
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6CidrBlock String

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6CidrMask Integer

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6IpamPoolId String

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpcId String
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6CidrBlock string

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6CidrMask number

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6IpamPoolId string

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpcId string
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6_cidr_block str

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6_cidr_mask int

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6_ipam_pool_id str

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpc_id str
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).
    ipv6CidrBlock String

    The additional IPv6 CIDR block. Both ipv6CidrBlock and ipv6CidrMask are optional and can be left empty. If neither is specified, the system automatically allocates a /56 IPv6 CIDR block to the VPC from the Alibaba Cloud GUA address pool.

    NOTE: If you specify ipv6CidrBlock, the CIDR block must be reserved beforehand by calling the AllocateVpcIpv6Cidr operation, or you can specify ipv6IpamPoolId instead. If you specify ipv6CidrMask, you must also specify ipv6IpamPoolId.

    ipv6CidrMask Number

    The IPv6 CIDR mask used to allocate an IPv6 CIDR block from the IPAM address pool to the VPC.

    NOTE: When assigning an additional IPv6 CIDR block from an IPAM address pool to a VPC, you must specify at least one of the Ipv6CidrBlock or Ipv6CidrMask properties.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    ipv6IpamPoolId String

    The ID of the IPAM IPv6 address pool instance.

    NOTE: This parameter is immutable. Changing it after creation has no effect.

    vpcId String
    The ID of the VPC. You can specify up to 20 VPC IDs, separated by commas (,).

    Import

    VPC Ipv6 Cidr Block can be imported using the id, e.g.

    $ pulumi import alicloud:vpc/ipv6CidrBlock:Ipv6CidrBlock example <vpc_id>#<ipv6_cidr_block>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.105.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial