全部产品
Search
文档中心

资源编排:DATASOURCE::EIP::Address

更新时间:Oct 29, 2024

DATASOURCE::EIP::Address类型用于查询单个已创建的EIP的基本信息。

语法

{
  "Type": "DATASOURCE::EIP::Address",
  "Properties": {
    "AllocationId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AllocationId

String

要查询的EIP实例的ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • Description:EIP的描述信息。

  • ResourceGroupId:资源组ID。

  • ServiceManaged:是否为服务账号创建的资源。

  • AllocationId:EIP实例的ID。

  • SecondLimited:是否配置了二级限速。

  • BusinessStatus:EIP实例的业务状态。

  • ReservationOrderType:续费订单类型。

  • SegmentInstanceId:连续EIP的实例ID。

  • InstanceRegionId:当前绑定的资源的地域ID。

  • ExpiredTime:到期时间。

  • Bandwidth:EIP的带宽峰值。

  • BandwidthPackageId:加入的共享带宽ID。

  • PaymentType:EIP的付费模式

  • InstanceType:当前绑定的实例类型。

  • ReservationActiveTime:续费生效时间。

  • ReservationBandwidth:续费带宽。

  • Tags:EIP的标签列表。

  • InstanceId:当前绑定的实例的ID。

  • Isp:线路类型。

  • CreateTime:创建EIP的时间。

  • HasReservationData:是否有续费数据。

  • PublicIpAddressPoolId:EIP所在的IP地址池ID。 

  • DeletionProtection:是否开启了删除保护功能。

  • BandwidthPackageType:带宽的类型。

  • OperationLocks:锁定详情。

  • BandwidthPackageBandwidth:EIP加入的共享带宽的带宽值。

  • ReservationInternetChargeType:续费付费类型。

  • AddressName:EIP的名称。

  • EipBandwidth:EIP加入共享带宽之前或退出共享带宽之后的带宽。

  • Netmode:网络类型。

  • SecurityProtectionTypes:安全防护级别。

  • IpAddress:EIP的IP地址。

  • HdMonitorStatus:EIP是否开启了秒级监控。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AllocationId:
    Description:
      en: The ID of the EIP instance.
    Required: true
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      AllocationId:
        Ref: AllocationId
    Type: DATASOURCE::EIP::Address
Outputs:
  AddressName:
    Description: The name of the EIP.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AddressName
  AllocationId:
    Description: The ID of the EIP instance.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AllocationId
  Bandwidth:
    Description: 'The peak bandwidth of the EIP. Unit: Mbps.'
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Bandwidth
  BandwidthPackageBandwidth:
    Description: The bandwidth value of the Internet shared bandwidth added to the
      EIP. The unit is Mbps.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BandwidthPackageBandwidth
  BandwidthPackageId:
    Description: The ID of the added shared bandwidth.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BandwidthPackageId
  BandwidthPackageType:
    Description: The type of bandwidth. Only **CommonBandwidthPackage** (shared bandwidth)
      is supported.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BandwidthPackageType
  BusinessStatus:
    Description: The business status of the EIP instance.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BusinessStatus
  CreateTime:
    Description: The time when the EIP was created.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  DeletionProtection:
    Description: Whether the delete protection function is turned on.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DeletionProtection
  Description:
    Description: The description of the EIP instance.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Description
  EipBandwidth:
    Description: AN EIP is added to an Internet shared bandwidth before or exit purchase
      an Internet shared bandwidth instance after the bandwidth Mbps Set for the bandwidth.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - EipBandwidth
  ExpiredTime:
    Description: Expiration time, format' YYYY-MM-DDThh:mm:ssZ '.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ExpiredTime
  HasReservationData:
    Description: Whether there is renewal data.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - HasReservationData
  HdMonitorStatus:
    Description: Whether the second-level monitoring is enabled for the EIP.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - HdMonitorStatus
  InstanceId:
    Description: The ID of the current bound instance.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - InstanceId
  InstanceRegionId:
    Description: The region ID of the currently bound resource.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - InstanceRegionId
  InstanceType:
    Description: The type of the current bound instance.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - InstanceType
  IpAddress:
    Description: The IP address of the EIP.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - IpAddress
  Isp:
    Description: Service providers.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Isp
  Netmode:
    Description: Network type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Netmode
  OperationLocks:
    Description: Lock details.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - OperationLocks
  PaymentType:
    Description: The billing method of the EIP.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PaymentType
  PublicIpAddressPoolId:
    Description: The ID of the IP address pool to which the EIP belongs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PublicIpAddressPoolId
  ReservationActiveTime:
    Description: The effective time of the renewal fee, in the format of 'YYYY-MM-DDThh:mm:ssZ'.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ReservationActiveTime
  ReservationBandwidth:
    Description: Renewal bandwidth, in Mbps.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ReservationBandwidth
  ReservationInternetChargeType:
    Description: Renewal Payment type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ReservationInternetChargeType
  ReservationOrderType:
    Description: Renewal order type.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ReservationOrderType
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ResourceGroupId
  SecondLimited:
    Description: Whether a secondary speed limit is configured.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SecondLimited
  SecurityProtectionTypes:
    Description: Security protection level.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SecurityProtectionTypes
  SegmentInstanceId:
    Description: The ID of the consecutive EIPs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SegmentInstanceId
  ServiceManaged:
    Description: Indicates the resource created for the service account.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - ServiceManaged
  Tags:
    Description: The tag of the resource.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Tags
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AllocationId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the EIP instance."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::EIP::Address",
      "Properties": {
        "AllocationId": {
          "Ref": "AllocationId"
        }
      }
    }
  },
  "Outputs": {
    "Description": {
      "Description": "The description of the EIP instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "ServiceManaged": {
      "Description": "Indicates the resource created for the service account.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ServiceManaged"
        ]
      }
    },
    "AllocationId": {
      "Description": "The ID of the EIP instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AllocationId"
        ]
      }
    },
    "SecondLimited": {
      "Description": "Whether a secondary speed limit is configured.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SecondLimited"
        ]
      }
    },
    "BusinessStatus": {
      "Description": "The business status of the EIP instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BusinessStatus"
        ]
      }
    },
    "ReservationOrderType": {
      "Description": "Renewal order type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ReservationOrderType"
        ]
      }
    },
    "SegmentInstanceId": {
      "Description": "The ID of the consecutive EIPs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SegmentInstanceId"
        ]
      }
    },
    "InstanceRegionId": {
      "Description": "The region ID of the currently bound resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceRegionId"
        ]
      }
    },
    "ExpiredTime": {
      "Description": "Expiration time, format' YYYY-MM-DDThh:mm:ssZ '.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ExpiredTime"
        ]
      }
    },
    "Bandwidth": {
      "Description": "The peak bandwidth of the EIP. Unit: Mbps.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Bandwidth"
        ]
      }
    },
    "BandwidthPackageId": {
      "Description": "The ID of the added shared bandwidth.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BandwidthPackageId"
        ]
      }
    },
    "PaymentType": {
      "Description": "The billing method of the EIP.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PaymentType"
        ]
      }
    },
    "InstanceType": {
      "Description": "The type of the current bound instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceType"
        ]
      }
    },
    "ReservationActiveTime": {
      "Description": "The effective time of the renewal fee, in the format of 'YYYY-MM-DDThh:mm:ssZ'.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ReservationActiveTime"
        ]
      }
    },
    "ReservationBandwidth": {
      "Description": "Renewal bandwidth, in Mbps.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ReservationBandwidth"
        ]
      }
    },
    "Tags": {
      "Description": "The tag of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "InstanceId": {
      "Description": "The ID of the current bound instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceId"
        ]
      }
    },
    "Isp": {
      "Description": "Service providers.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Isp"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the EIP was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "HasReservationData": {
      "Description": "Whether there is renewal data.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "HasReservationData"
        ]
      }
    },
    "PublicIpAddressPoolId": {
      "Description": "The ID of the IP address pool to which the EIP belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PublicIpAddressPoolId"
        ]
      }
    },
    "DeletionProtection": {
      "Description": "Whether the delete protection function is turned on.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DeletionProtection"
        ]
      }
    },
    "BandwidthPackageType": {
      "Description": "The type of bandwidth. Only **CommonBandwidthPackage** (shared bandwidth) is supported.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BandwidthPackageType"
        ]
      }
    },
    "OperationLocks": {
      "Description": "Lock details.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "OperationLocks"
        ]
      }
    },
    "BandwidthPackageBandwidth": {
      "Description": "The bandwidth value of the Internet shared bandwidth added to the EIP. The unit is Mbps.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BandwidthPackageBandwidth"
        ]
      }
    },
    "ReservationInternetChargeType": {
      "Description": "Renewal Payment type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ReservationInternetChargeType"
        ]
      }
    },
    "AddressName": {
      "Description": "The name of the EIP.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AddressName"
        ]
      }
    },
    "EipBandwidth": {
      "Description": "AN EIP is added to an Internet shared bandwidth before or exit purchase an Internet shared bandwidth instance after the bandwidth Mbps Set for the bandwidth.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EipBandwidth"
        ]
      }
    },
    "Netmode": {
      "Description": "Network type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Netmode"
        ]
      }
    },
    "SecurityProtectionTypes": {
      "Description": "Security protection level.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SecurityProtectionTypes"
        ]
      }
    },
    "IpAddress": {
      "Description": "The IP address of the EIP.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IpAddress"
        ]
      }
    },
    "HdMonitorStatus": {
      "Description": "Whether the second-level monitoring is enabled for the EIP.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "HdMonitorStatus"
        ]
      }
    }
  }
}