全部产品
Search
文档中心

资源编排:DATASOURCE::VPC::PublicIpAddressPool

更新时间:Aug 12, 2024

DATASOURCE::VPC::PublicIpAddressPool类型用于单个可使用的IP地址池的基本信息。

语法

{
  "Type": "DATASOURCE::VPC::PublicIpAddressPool",
  "Properties": {
    "PublicIpAddressPoolId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

PublicIpAddressPoolId

String

IP 地址池的实例 ID。

返回值

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 的标签列表。

示例

  • YAML格式

    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
    
  • JSON格式

    {
      "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"
            ]
          }
        }
      }
    }