ALIYUN::VPC::PublicIpAddressPool

更新时间:2025-02-28 02:45:01

ALIYUN::VPC::PublicIpAddressPool类型用于创建IP地址池。

语法

{
  "Type": "ALIYUN::VPC::PublicIpAddressPool",
  "Properties": {
    "BizType": String,
    "Description": String,
    "Isp": String,
    "Name": String,
    "ResourceGroupId": String,
    "SecurityProtectionTypes": List,
    "Tags": List,
    "Zones": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

BizType

String

IP地址池的业务类型。

取值:

  • CloudBox:云盒。仅云盒用户支持选择该类型。

  • Default(默认值):默认,表示非特殊类型。

Description

String

地址池实例的描述。

长度为0-256个字符,不能以http://https://开头。

Isp

String

线路类型。

取值:

  • BGP(默认值):BGP(多线)线路。

  • BGP_PRO:BGP(多线)精品线路。

关于BGP(多线)线路和 BGP(多线)_精品线路的更多信息,请参见 什么是弹性公网 IP

  • 如果您是单线带宽的白名单用户,您还可以选择以下类型:

    • ChinaTelecom:中国电信

    • ChinaUnicom:中国联通

    • ChinaMobile:中国移动

    • ChinaTelecom_L2:中国电信 L2

    • ChinaUnicom_L2:中国联通 L2

    • ChinaMobile_L2:中国移动 L2

  • 如果您是杭州金融云用户,该字段必填,取值:BGP_FinanceCloud

Name

String

地址池实例的名称。

ResourceGroupId

String

IP 地址池所属的资源组 ID。

SecurityProtectionTypes

List

安全防护级别。

  • 配置为空时,默认为 DDoS 防护(基础版)。

  • 配置为AntiDDoS_Enhanced时,表示 DDoS 防护(增强版)。

Tags

List

IP地址池绑定的标签列表。

更多信息,请参见Tags属性

Zones

List

IP 地址池的可用区。

BizType 取值为 CloudBox,即 IP 地址池业务类型为云盒时,该参数必填。 目前仅支持传入 1 个可用区。

Tags语法

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

Key

String

标签键。

长度为1~128个字符,不能以aliyunacs:开头,不能包含http://https:// 。

Value

String

标签值。

长度为0~128个字符,不能以aliyunacs:开头,不能包含http://https:// 。

返回值

Fn::GetAtt

PublicIpAddressPoolId:IP 地址池的实例 ID。

示例

YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Isp:
    Type: String
    Description:
      en: |-
        The line type. Valid values:
        BGP (default): BGP (Multi-ISP) lines. All regions support BGP (Multi-ISP) EIPs.
        BGP_PRO: BGP (Multi-ISP) Pro lines. 
        Only the following regions support BGP (Multi-ISP) Pro lines: 
        China (Hong Kong), Singapore, Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok).
        For more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see EIP line types.
        If you are allowed to use single-ISP bandwidth, you can also choose one of the following values:
        ChinaTelecom: China Telecom
        ChinaUnicom: China Unicom
        ChinaMobile: China Mobile
        ChinaTelecom_L2: China Telecom L2
        ChinaUnicom_L2: China Unicom L2
        ChinaMobile_L2: China Mobile L2
        If your services are deployed in China East 1 Finance, you must set this parameter to BGP_FinanceCloud.
    AllowedValues:
      - BGP
      - BGP_PRO
      - RunShellScript
      - ChinaTelecom
      - ChinaUnicom
      - ChinaMobile
      - ChinaTelecom_L2
      - ChinaUnicom_L2
      - ChinaMobile_L2
      - BGP_FinanceCloud
    Required: false
  SecurityProtectionTypes:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        AllowedValues:
          - AntiDDoS_Enhanced
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: |-
        Safety protection level.
        When configured as empty, the default is DDOS protection (basic version).
        When configured as Antiddos_enhanced, it means DDOS protection (enhanced version).
    Required: false
    MinLength: 1
    MaxLength: 100
  BizType:
    Type: String
    Description:
      en: |-
        The business type of IP address pool.Value:
        Cloudbox: Cloud Box.Cloud box users support to select this type.
        Default (default): default, indicating non -special types.
    AllowedValues:
      - CloudBox
    Required: false
  Name:
    Type: String
    Description:
      en: |-
        The name of the address pool instance.
        The length is 0-128 characters, and you cannot start with http: // or https: //.
    Required: false
Resources:
  PublicIpAddressPool:
    Type: ALIYUN::VPC::PublicIpAddressPool
    Properties:
      Isp:
        Ref: Isp
      SecurityProtectionTypes:
        Ref: SecurityProtectionTypes
      BizType:
        Ref: BizType
      Name:
        Ref: Name
Outputs:
  PublicIpAddressPoolId:
    Description: Example ID of the IP address pool.
    Value:
      Fn::GetAtt:
        - PublicIpAddressPool
        - PublicIpAddressPoolId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Isp": {
      "Type": "String",
      "Description": {
        "en": "The line type. Valid values:\nBGP (default): BGP (Multi-ISP) lines. All regions support BGP (Multi-ISP) EIPs.\nBGP_PRO: BGP (Multi-ISP) Pro lines. \nOnly the following regions support BGP (Multi-ISP) Pro lines: \nChina (Hong Kong(China)), Singapore, Malaysia (Kuala Lumpur), Philippines (Manila), Indonesia (Jakarta), and Thailand (Bangkok).\nFor more information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see EIP line types.\nIf you are allowed to use single-ISP bandwidth, you can also choose one of the following values:\nChinaTelecom: China Telecom\nChinaUnicom: China Unicom\nChinaMobile: China Mobile\nChinaTelecom_L2: China Telecom L2\nChinaUnicom_L2: China Unicom L2\nChinaMobile_L2: China Mobile L2\nIf your services are deployed in China East 1 Finance, you must set this parameter to BGP_FinanceCloud."
      },
      "AllowedValues": [
        "BGP",
        "BGP_PRO",
        "RunShellScript",
        "ChinaTelecom",
        "ChinaUnicom",
        "ChinaMobile",
        "ChinaTelecom_L2",
        "ChinaUnicom_L2",
        "ChinaMobile_L2",
        "BGP_FinanceCloud"
      ],
      "Required": false
    },
    "SecurityProtectionTypes": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "AllowedValues": [
            "AntiDDoS_Enhanced"
          ],
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "Safety protection level.\nWhen configured as empty, the default is DDOS protection (basic version).\nWhen configured as Antiddos_enhanced, it means DDOS protection (enhanced version)."
      },
      "Required": false,
      "MinLength": 1,
      "MaxLength": 100
    },
    "BizType": {
      "Type": "String",
      "Description": {
        "en": "The business type of IP address pool.Value:\nCloudbox: Cloud Box.Cloud box users support to select this type.\nDefault (default): default, indicating non -special types."
      },
      "AllowedValues": [
        "CloudBox"
      ],
      "Required": false
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of the address pool instance.\nThe length is 0-128 characters, and you cannot start with http: // or https: //."
      },
      "Required": false
    }
  },
  "Resources": {
    "PublicIpAddressPool": {
      "Type": "ALIYUN::VPC::PublicIpAddressPool",
      "Properties": {
        "Isp": {
          "Ref": "Isp"
        },
        "SecurityProtectionTypes": {
          "Ref": "SecurityProtectionTypes"
        },
        "BizType": {
          "Ref": "BizType"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "PublicIpAddressPoolId": {
      "Description": "Example ID of the IP address pool.",
      "Value": {
        "Fn::GetAtt": [
          "PublicIpAddressPool",
          "PublicIpAddressPoolId"
        ]
      }
    }
  }
}
                        
  • 本页导读 (1)
  • 语法
  • 属性
  • Tags语法
  • Tags属性
  • 返回值
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等