DATASOURCE::VPC::PublicIpAddressPools is used to query available IP address pools.
Syntax
{
"Type": "DATASOURCE::VPC::PublicIpAddressPools",
"Properties": {
"ResourceGroupId": String,
"PublicIpAddressPoolName": String,
"Isp": String,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ResourceGroupId | String | No | Yes | The ID of the resource group to which the IP address pool belongs. | None. |
PublicIpAddressPoolName | String | No | Yes | The name of the IP address pool. | This property is optional. The name must be 1 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter but cannot start with |
Isp | String | No | Yes | The line type. | Valid values:
For information about BGP (Multi-ISP) and BGP (Multi-ISP) Pro, see What is an Elastic IP Address? If you are allowed to use single-ISP bandwidth, one of the following values may be returned:
If your services are deployed in China East 1 Finance, BGP_FinanceCloud is returned. |
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values
Fn::GetAtt
PublicIpAddressPoolIds: the IDs of the IP address pools.
PublicIpAddressPools: details of the IP address pools.
Property | Type | Description | Constraint |
PublicIpAddressPoolIds | List | The IDs of the IP address pools. | None. |
PublicIpAddressPoolIds | List | Details of the IP address pools. | None. |
Status | String | The status of the IP address pool. | None. |
Isp | String | The line type. | None. |
Description | String | The description of the IP address pool. | None. |
IpAddressRemaining | Boolean | Indicates whether the IP address pool has idle IP addresses. | Valid values:
|
Tags | List | The tags. | None. |
TotalIpNum | Integer | The total number of IP addresses in the public IP address pool. | None. |
PublicIpAddressPoolId | String | The ID of the IP address pool. | None. |
ResourceGroupId | String | The ID of the resource group to which the IP address pool belongs. | None. |
CreateTime | String | The time when the IP address pool was created. | None. |
UsedIpNum | String | The number of occupied IP addresses in the public IP address pool. | None. |
PublicIpAddressPoolName | String | The name of the IP address pool. | None. |
RegionId | String | The ID of the region where the IP address pool resides. | None. |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Isp:
AllowedValues:
- BGP
- BGP_PRO
- ChinaTelecom
- ChinaUnicom
- ChinaMobile
- ChinaTelecom_L2
- ChinaUnicom_L2
- ChinaMobile_L2
Description: "The line type. Valid values:\nBGP (default): BGP (Multi-ISP) lines\n\
BGP_PRO: BGP (Multi-ISP) Pro lines\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, \nthis parameter\
\ is required and you must set the value to BGP_FinanceCloud."
Type: String
Resources:
ExtensionDataSource:
Properties:
Isp:
Ref: Isp
Type: DATASOURCE::VPC::PublicIpAddressPools
Outputs:
PublicIpAddressPoolIds:
Description: The list of public ip address pool IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PublicIpAddressPoolIds
PublicIpAddressPools:
Description: The list of public ip address pools.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PublicIpAddressPools
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Isp": {
"Type": "String",
"Description": "The line type. Valid values:\nBGP (default): BGP (Multi-ISP) lines\nBGP_PRO: BGP (Multi-ISP) Pro lines\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, \nthis parameter is required and you must set the value to BGP_FinanceCloud.",
"AllowedValues": [
"BGP",
"BGP_PRO",
"ChinaTelecom",
"ChinaUnicom",
"ChinaMobile",
"ChinaTelecom_L2",
"ChinaUnicom_L2",
"ChinaMobile_L2"
]
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::VPC::PublicIpAddressPools",
"Properties": {
"Isp": {
"Ref": "Isp"
}
}
}
},
"Outputs": {
"PublicIpAddressPoolIds": {
"Description": "The list of public ip address pool IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PublicIpAddressPoolIds"
]
}
},
"PublicIpAddressPools": {
"Description": "The list of public ip address pools.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PublicIpAddressPools"
]
}
}
}
}