DATASOURCE::VPC::HaVip

DATASOURCE::VPC::HaVip类型用于查询单个高可用虚拟IP地址。

语法

{
  "Type": "DATASOURCE::VPC::HaVip",
  "Properties": {
    "HaVipId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

HaVipId

String

HaVip 实例 ID。

RefreshOptions

String

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

有效值:

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

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

返回值

Fn::GetAtt

  • AssociatedInstances:与 HaVip 绑定的实例信息。

  • Description:HaVip实例的描述。

  • VpcId:HaVip实例所属的专有网络ID。

  • AssociatedEipAddresses:与 HaVip 绑定的 EIP 列表。

  • MasterInstanceId:与 HaVip 绑定的主实例 ID。

  • VSwitchId:HaVip 实例所属的交换机 ID。

  • CreateTime:HaVip 的创建时间。

  • HaVipName:HaVip 实例的名称。

  • IpAddress:HaVip 的私网 IP 地址。

  • HaVipId:HaVip 实例 ID。

  • AssociatedInstanceType:与 HaVip 绑定的实例类型。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  HaVipId:
    Type: String
    Description:
      en: The  ID of the resource.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::VPC::HaVip
    Properties:
      HaVipId:
        Ref: HaVipId
Outputs:
  AssociatedInstances:
    Description: An ECS instance that is bound to HaVip.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AssociatedInstances
  Description:
    Description: Dependence of a HaVip instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  VpcId:
    Description: The VPC ID to which the HaVip instance belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VpcId
  AssociatedEipAddresses:
    Description: EIP bound to HaVip.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AssociatedEipAddresses
  MasterInstanceId:
    Description: The primary instance ID bound to HaVip.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - MasterInstanceId
  VSwitchId:
    Description: The switch ID to which the HaVip instance belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VSwitchId
  CreateTime:
    Description: The creation time of the  resource.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  HaVipName:
    Description: The name of the HaVip instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - HaVipName
  IpAddress:
    Description: IP address of private network.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - IpAddress
  HaVipId:
    Description: The  ID of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - HaVipId
  AssociatedInstanceType:
    Description: The type of the instance that is bound to the VIIP.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AssociatedInstanceType
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "HaVipId": {
      "Type": "String",
      "Description": {
        "en": "The  ID of the resource."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VPC::HaVip",
      "Properties": {
        "HaVipId": {
          "Ref": "HaVipId"
        }
      }
    }
  },
  "Outputs": {
    "AssociatedInstances": {
      "Description": "An ECS instance that is bound to HaVip.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AssociatedInstances"
        ]
      }
    },
    "Description": {
      "Description": "Dependence of a HaVip instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "VpcId": {
      "Description": "The VPC ID to which the HaVip instance belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcId"
        ]
      }
    },
    "AssociatedEipAddresses": {
      "Description": "EIP bound to HaVip.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AssociatedEipAddresses"
        ]
      }
    },
    "MasterInstanceId": {
      "Description": "The primary instance ID bound to HaVip.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "MasterInstanceId"
        ]
      }
    },
    "VSwitchId": {
      "Description": "The switch ID to which the HaVip instance belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VSwitchId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the  resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "HaVipName": {
      "Description": "The name of the HaVip instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "HaVipName"
        ]
      }
    },
    "IpAddress": {
      "Description": "IP address of private network.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "IpAddress"
        ]
      }
    },
    "HaVipId": {
      "Description": "The  ID of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "HaVipId"
        ]
      }
    },
    "AssociatedInstanceType": {
      "Description": "The type of the instance that is bound to the VIIP.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AssociatedInstanceType"
        ]
      }
    }
  }
}