文档

DATASOURCE::EIP::Addresses

更新时间:

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

语法

{
  "Type": "DATASOURCE::EIP::Addresses",
  "Properties": {
    "SegmentInstanceId": String,
    "AddressName": String,
    "ResourceGroupId": String,
    "InstanceId": String,
    "Isp": String,
    "AllocationId": String,
    "PaymentType": String,
    "IpAddress": String,
    "InstanceType": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

SegmentInstanceId

String

连续EIP的实例ID。

AddressName

String

EIP的名称。

长度为1~128个字符,必须以字母或中文开头,可包含数字、下划线(_)和短划线(-)。

ResourceGroupId

String

资源组ID。

InstanceId

String

当前绑定的实例的ID。

Isp

String

线路类型。

取值:

  • BGP

  • BGP_PRO

  • RunShellScript

  • ChinaTelecom

  • ChinaUnicom

  • ChinaMobile

  • ChinaTelecom_L2

  • ChinaUnicom_L2

  • ChinaMobile_L2

AllocationId

String

要查询的EIP实例的ID。

PaymentType

String

EIP的付费模式。

取值:

  • PostPaid:按量计费。

  • PrePaid:包年包月。

IpAddress

String

EIP的IP地址。

InstanceType

String

当前绑定的实例类型。

取值:

  • IpAddress:IP地址。

  • NetworkInterface:辅助弹性网卡。

  • HaVip:高可用虚拟IP。

  • Nat:NAT网关。

  • SlbInstance:VPC类型的SLB实例。

  • EcsInstance:VPC类型的ECS实例。

返回值

Fn::GetAtt

  • Addresses:EIP实例列表。

  • AllocationIds:EIP实例的ID列表。

属性名称

类型

描述

约束

AllocationIds

List

EIP实例的ID列表。

Addresses

List

EIP实例列表。

BusinessStatus

String

EIP实例的业务状态。

ExpiredTime

String

到期时间。

格式为YYYY-MM-DDThh:mm:ssZ

IpAddress

String

EIP的IP地址。

AllocationId

String

EIP实例的ID。

ReservationOrderType

String

续费订单类型。

Status

String

EIP的状态。

EipBandwidth

String

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

单位:Mbps。

BandwidthPackageId

String

加入的共享带宽ID。

Description

String

EIP的描述信息。

Tags

List

EIP的标签列表。

InstanceId

String

当前绑定的实例的ID。

ReservationBandwidth

String

续费带宽。

单位:Mbps。

InstanceRegionId

String

当前绑定的资源的地域ID。

RegionId

String

EIP所在的地域ID。

SegmentInstanceId

String

连续EIP的实例ID。

ResourceGroupId

String

资源组ID。

HasReservationData

String

是否有续费数据。

Netmode

String

网络类型。

取值:public,表示公网。

InstanceType

String

当前绑定的实例类型。

OperationLocks

List

锁定详情。

ReservationInternetChargeType

String

续费付费类型。

Isp

String

线路类型。

DeletionProtection

Boolean

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

取值:

  • true:开启删除保护功能。

  • false:关闭删除保护功能。

BandwidthPackageType

String

带宽的类型。

仅支持返回CommonBandwidthPackage(共享带宽)。

ServiceManaged

Integer

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

取值:

  • 0:非服务账号创建。

  • 1:服务账号创建。

CreateTime

String

创建EIP的时间。

单位:毫秒。

PaymentType

String

EIP的付费模式

Bandwidth

String

EIP的带宽峰值。

单位:Mbps。

HdMonitorStatus

String

EIP是否开启了秒级监控。

取值:

  • true:开启秒级监控。

  • false:关闭秒级监控。

ReservationActiveTime

String

续费生效时间。

格式为YYYY-MM-DDThh:mm:ssZ

SecondLimited

Boolean

是否配置了二级限速。

取值:

  • true:已配置。

  • false:未配置。

AddressName

String

EIP的名称。

BandwidthPackageBandwidth

String

EIP加入的共享带宽的带宽值。

单位:Mbps。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceType:
    Description: 'The type of the current bound instance.
      - EcsInstance: an ECS instance of the VPC type.
      - SlbInstance: an SLB instance of the VPC type.
      - Nat:NAT gateway.
      - HaVip: a highly available virtual IP address.
      - NetworkInterface: Secondary ENI.'
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      InstanceType:
        Ref: InstanceType
    Type: DATASOURCE::EIP::Addresses
Outputs:
  Addresses:
    Description: The details about the EIP
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Addresses
  AllocationIds:
    Description: The list of allocation IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AllocationIds

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceType": {
      "Description": "The type of the current bound instance. - EcsInstance: an ECS instance of the VPC type. - SlbInstance: an SLB instance of the VPC type. - Nat:NAT gateway. - HaVip: a highly available virtual IP address. - NetworkInterface: Secondary ENI.",
      "Type": "String"
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Properties": {
        "InstanceType": {
          "Ref": "InstanceType"
        }
      },
      "Type": "DATASOURCE::EIP::Addresses"
    }
  },
  "Outputs": {
    "Addresses": {
      "Description": "The details about the EIP",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Addresses"
        ]
      }
    },
    "AllocationIds": {
      "Description": "The list of allocation IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AllocationIds"
        ]
      }
    }
  }
}
  • 本页导读 (1)
文档反馈