All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::VPC::PublicIpAddressPool

更新時間:Sep 10, 2024

DATASOURCE::VPC::PublicIpAddressPool is used to query the basic information about an available IP address pool.

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

PublicIpAddressPoolId

String

Yes

Yes

The ID of the IP address pool.

None.

Return values

Fn::GetAtt

  • UsedIpNum: the total number of available IP addresses in the IP address pool.

  • Description: the description of the IP address pool.

  • ResourceGroupId: the ID of the resource group.

  • TotalIpNum: the number of used IP addresses in the IP address pool.

  • PublicIpAddressPoolName: the name of the IP address pool.

  • Isp: the line type.

  • CreateTime: the time when the IP address pool was created.

  • IpAddressRemaining: indicates whether idle IP addresses exist.

  • PublicIpAddressPoolId: the ID of the IP address pool to which the elastic IP address (EIP) belongs.

  • Tags: the tags of the EIP.

Examples

  • YAML format

    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 format

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