DATASOURCE::Eipanycast::AnycastEipAddress

DATASOURCE::Eipanycast::AnycastEipAddress类型用于查询指定Anycast EIP实例的具体信息。

语法

{
  "Type": "DATASOURCE::Eipanycast::AnycastEipAddress",
  "Properties": {
    "AnycastId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AnycastId

String

Anycast EIP 实例 ID。

RefreshOptions

String

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

有效值:

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

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

返回值

Fn::GetAtt

  • Status:IP 状态。

  • AnycastEipAddressName:Anycast EIP 实例名称。

  • ServiceLocation:Anycast EIP 实例接入区域。

  • AnycastId:Anycast EIP 实例 ID。

  • Bandwidth:Anycast EIP 实例的带宽峰值,单位:Mbps。

  • CreateTime:Anycast EIP 实例创建时间。

  • PaymentType:Anycast EIP的计费方式。

  • IpAddress:Anycast EIP 实例 IP 地址。

  • Bid:Anycast EIP 实例账号 BID。

  • Tags:标签信息。

  • AliUid:Anycast EIP 实例账号 ID。

  • InternetChargeType:Anycast EIP 实例的计费方式。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AnycastId:
        Type: String
        Description:
          en: The ID of the Anycast EIP.
        Required: true
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::Eipanycast::AnycastEipAddress
        Properties:
          AnycastId:
            Ref: AnycastId
    Outputs:
      Status:
        Description: |-
          The status of the Anycast EIP. Valid values:
          * Associating
          * Unassociating
          * Allocated
          * Associated
          * Modifying
          * Releasing
          * Released
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Status
      AnycastEipAddressName:
        Description: The name of the Anycast EIP.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AnycastEipAddressName
      ServiceLocation:
        Description: The access area of the Anycast EIP. Only international may be returned, which indicates the areas outside the Chinese mainland.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - ServiceLocation
      AnycastId:
        Description: The ID of the Anycast EIP.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AnycastId
      Bandwidth:
        Description: 'The maximum bandwidth of the Anycast EIP. Unit: Mbit/s.'
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Bandwidth
      CreateTime:
        Description: The point in time at which the Anycast EIP was created. The time follows the ISO8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - CreateTime
      PaymentType:
        Description: The billing method of the Anycast EIP.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - PaymentType
      IpAddress:
        Description: The IP address of the Anycast EIP.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - IpAddress
      Bid:
        Description: The BID of the account to which the Anycast EIP belongs.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Bid
      Tags:
        Description: The tags of the EIP.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Tags
      AliUid:
        Description: The ID of the account to which the Anycast EIP belongs.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AliUid
      InternetChargeType:
        Description: The billing method of the Anycast EIP. Only PostPaid may be returned, which indicates the pay-as-you-go billing method.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - InternetChargeType
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AnycastId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the Anycast EIP."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::Eipanycast::AnycastEipAddress",
          "Properties": {
            "AnycastId": {
              "Ref": "AnycastId"
            }
          }
        }
      },
      "Outputs": {
        "Status": {
          "Description": "The status of the Anycast EIP. Valid values:\n* Associating\n* Unassociating\n* Allocated\n* Associated\n* Modifying\n* Releasing\n* Released",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Status"
            ]
          }
        },
        "AnycastEipAddressName": {
          "Description": "The name of the Anycast EIP.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AnycastEipAddressName"
            ]
          }
        },
        "ServiceLocation": {
          "Description": "The access area of the Anycast EIP. Only international may be returned, which indicates the areas outside the Chinese mainland.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ServiceLocation"
            ]
          }
        },
        "AnycastId": {
          "Description": "The ID of the Anycast EIP.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AnycastId"
            ]
          }
        },
        "Bandwidth": {
          "Description": "The maximum bandwidth of the Anycast EIP. Unit: Mbit/s.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Bandwidth"
            ]
          }
        },
        "CreateTime": {
          "Description": "The point in time at which the Anycast EIP was created. The time follows the ISO8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "CreateTime"
            ]
          }
        },
        "PaymentType": {
          "Description": "The billing method of the Anycast EIP.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "PaymentType"
            ]
          }
        },
        "IpAddress": {
          "Description": "The IP address of the Anycast EIP.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "IpAddress"
            ]
          }
        },
        "Bid": {
          "Description": "The BID of the account to which the Anycast EIP belongs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Bid"
            ]
          }
        },
        "Tags": {
          "Description": "The tags of the EIP.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Tags"
            ]
          }
        },
        "AliUid": {
          "Description": "The ID of the account to which the Anycast EIP belongs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AliUid"
            ]
          }
        },
        "InternetChargeType": {
          "Description": "The billing method of the Anycast EIP. Only PostPaid may be returned, which indicates the pay-as-you-go billing method.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "InternetChargeType"
            ]
          }
        }
      }
    }