All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::VPC::VpcIpv6CidrAllocation

Last Updated:Oct 24, 2024

ALIYUN::VPC::VpcIpv6CidrAllocation is used to reserve an IPv6 CIDR block.

Syntax

{
  "Type": "ALIYUN::VPC::VpcIpv6CidrAllocation",
  "Properties": {
    "AddressPoolType": String,
    "Ipv6Isp": String,
    "Ipv6CidrBlock": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

AddressPoolType

String

No

No

The type of the IPv6 address pool.

Valid values:

  • aliyun (default): system IPv6 CIDR block

  • custom: custom IPv6 CIDR block

Ipv6Isp

String

No

No

The IPv6 CIDR block type of the virtual private cloud (VPC).

Valid values:

  • BGP (default): BGP (multi-ISP)

  • BGP_International: BGP (multi-ISP) International

  • ChinaMobile: China Mobile (single line)

  • ChinaUnicom: China Unicom (single line)

  • ChinaTelecom: China Telecom (single line)

  • ChinaMobile_L2: China Mobile (single ISP)_L2

  • ChinaUnicom_L2: China Unicom (single ISP)_L2

  • ChinaTelecom_L2: China Telecom (single ISP)_L2

Note

If your account is included in the whitelist, you can set this property to one of the following values: ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, and BGP_International.

You can reserve only one IPv6 CIDR block of each type. After a reserved IPv6 CIDR block of a type is allocated to a VPC, you can reserve another IPv6 CIDR block of the type.

Ipv6CidrBlock

String

No

No

The IPv6 CIDR block that you want to reserve.

None.

Return values

Fn::GetAtt

Ipv6CidrBlock: the IPv6 CIDR block that you want to reserve.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Ipv6CidrBlock:
    Type: String
    Description:
      en: The IPv6 CIDR block that you want to reserve.
    Required: false
Resources:
  VpcIpv6CidrAllocation:
    Type: ALIYUN::VPC::VpcIpv6CidrAllocation
    Properties:
      Ipv6CidrBlock:
        Ref: Ipv6CidrBlock
Outputs:
  Ipv6CidrBlock:
    Description: The IPv6 CIDR block that is reserved.
    Value:
      Fn::GetAtt:
        - VpcIpv6CidrAllocation
        - Ipv6CidrBlock

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Ipv6CidrBlock": {
      "Type": "String",
      "Description": {
        "en": "The IPv6 CIDR block that you want to reserve."
      },
      "Required": false
    }
  },
  "Resources": {
    "VpcIpv6CidrAllocation": {
      "Type": "ALIYUN::VPC::VpcIpv6CidrAllocation",
      "Properties": {
        "Ipv6CidrBlock": {
          "Ref": "Ipv6CidrBlock"
        }
      }
    }
  },
  "Outputs": {
    "Ipv6CidrBlock": {
      "Description": "The IPv6 CIDR block that is reserved.",
      "Value": {
        "Fn::GetAtt": [
          "VpcIpv6CidrAllocation",
          "Ipv6CidrBlock"
        ]
      }
    }
  }
}