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地址池的业务类型。 | 取值:
|
Description | String | 否 | 是 | 地址池实例的描述。 | 长度为0-256个字符,不能以 |
Isp | String | 否 | 否 | 线路类型。 | 取值:
关于BGP(多线)线路和 BGP(多线)_精品线路的更多信息,请参见 什么是弹性公网 IP。
|
Name | String | 否 | 是 | 地址池实例的名称。 | 无 |
ResourceGroupId | String | 否 | 是 | IP 地址池所属的资源组 ID。 | 无 |
SecurityProtectionTypes | List | 否 | 否 | 安全防护级别。 |
|
Tags | List | 否 | 否 | IP地址池绑定的标签列表。 | 更多信息,请参见Tags属性。 |
Zones | List | 否 | 否 | IP 地址池的可用区。 | BizType 取值为 CloudBox,即 IP 地址池业务类型为云盒时,该参数必填。 目前仅支持传入 1 个可用区。 |
Tags语法
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Key | String | 是 | 否 | 标签键。 | 长度为1~128个字符,不能以 |
Value | String | 否 | 否 | 标签值。 | 长度为0~128个字符,不能以 |
返回值
Fn::GetAtt
PublicIpAddressPoolId:IP 地址池的实例 ID。
示例
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属性
- 返回值
- 示例