DATASOURCE::VPC::PublicIpAddressPool类型用于单个可使用的IP地址池的基本信息。
语法
{
"Type": "DATASOURCE::VPC::PublicIpAddressPool",
"Properties": {
"PublicIpAddressPoolId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
PublicIpAddressPoolId | String | 是 | 是 | IP 地址池的实例 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
UsedIpNum:IP 地址池中 IP 地址网段的可用 IP 地址总数。.
Description:IP地址池的描述信息。
ResourceGroupId:资源组ID。
TotalIpNum:IP 地址池中 IP 地址网段的已用 IP 地址数。
PublicIpAddressPoolName:IP地址池的名称。
Isp:线路类型。
CreateTime:IP地址池的创建时间。
IpAddressRemaining:是否有空闲的IP地址。
PublicIpAddressPoolId:要查询的 EIP 所属 IP 地址池 ID。
Tags:EIP 的标签列表。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PublicIpAddressPoolId:
Type: String
Description:
en: The first ID of the resource.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::VPC::PublicIpAddressPool
Properties:
PublicIpAddressPoolId:
Ref: PublicIpAddressPoolId
Outputs:
UsedIpNum:
Description: Used ip number of PublicIpAddressPool.
Value:
Fn::GetAtt:
- ExtensionDataSource
- UsedIpNum
Description:
Description: Description.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
ResourceGroupId:
Description: The ID of the resource group to which the VPC belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
TotalIpNum:
Description: Total ip number of PublicIpAddressPool.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TotalIpNum
PublicIpAddressPoolName:
Description: The name of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PublicIpAddressPoolName
Isp:
Description: Service providers.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Isp
CreateTime:
Description: The creation time of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
IpAddressRemaining:
Description: Whether there is a free IP address.
Value:
Fn::GetAtt:
- ExtensionDataSource
- IpAddressRemaining
PublicIpAddressPoolId:
Description: The first ID of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PublicIpAddressPoolId
Tags:
Description: The tags of PrefixList.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PublicIpAddressPoolId": {
"Type": "String",
"Description": {
"en": "The first ID of the resource."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::VPC::PublicIpAddressPool",
"Properties": {
"PublicIpAddressPoolId": {
"Ref": "PublicIpAddressPoolId"
}
}
}
},
"Outputs": {
"UsedIpNum": {
"Description": "Used ip number of PublicIpAddressPool.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UsedIpNum"
]
}
},
"Description": {
"Description": "Description.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group to which the VPC belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"TotalIpNum": {
"Description": "Total ip number of PublicIpAddressPool.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TotalIpNum"
]
}
},
"PublicIpAddressPoolName": {
"Description": "The name of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PublicIpAddressPoolName"
]
}
},
"Isp": {
"Description": "Service providers.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Isp"
]
}
},
"CreateTime": {
"Description": "The creation time of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"IpAddressRemaining": {
"Description": "Whether there is a free IP address.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"IpAddressRemaining"
]
}
},
"PublicIpAddressPoolId": {
"Description": "The first ID of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PublicIpAddressPoolId"
]
}
},
"Tags": {
"Description": "The tags of PrefixList.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
}
}
}
文档内容是否对您有帮助?