DATASOURCE::VPC::HaVips is used to query the high-availability virtual IP addresses (HAVIPs) in a specified region.

Syntax

{
  "Type": "DATASOURCE::VPC::HaVips",
  "Properties": {
    "HaVipId": String
  }
}

Properties

Property Type Required Editable Description Constraint
HaVipId String No Yes The ID of the HAVIP. None.

Return values (Fn::GetAtt)

  • HaVipIds: the IDs of the HAVIPs.
  • HaVips: details of the HAVIPs.
Property Type Description Constraint
HaVipIds List The IDs of the HAVIPs. None.
HaVips List Details of the HAVIPs. None.
Status String The state of the HAVIP. Valid values:
  • Creating: The HAVIP is being created.
  • Available: The HAVIP is available.
  • Deleting: The HAVIP is being deleted.
VpcId String The ID of the virtual private cloud (VPC) to which the HAVIP belongs. None.
Description String The description of the HAVIP. None.
AssociatedEipAddresses String The elastic IP addresses (EIPs) that are associated with the HAVIP. None.
RegionId String The ID of the region to which the HAVIP belongs. None.
MasterInstanceId String The ID of the primary instance with which the HAVIP is associated. None.
HaVipName String The name of the HAVIP. None.
VSwitchId String The ID of the vSwitch to which the HAVIP belongs. None.
HaVipId String The ID of the HAVIP. None.
AssociatedInstanceType String The type of the instance with which the HAVIP is associated. Valid values:
  • EcsInstance: Elastic Compute Service (ECS) instance
  • NetworkInterface: elastic network interface (ENI)
IpAddress String The private IP address of the HAVIP. None.
CreateTime String The time when the HAVIP was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format.
AssociatedInstances String The IDs of the instances with which the HAVIP is associated. None.

Examples

  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "HaVipId": {
          "Type": "String",
          "Description": "The  ID of the resource"
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::VPC::HaVips",
          "Properties": {
            "HaVipId": {
              "Ref": "HaVipId"
            }
          }
        }
      },
      "Outputs": {
        "HaVips": {
          "Description": "The list of ha vips.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "HaVips"
            ]
          }
        },
        "HaVipIds": {
          "Description": "The list of ha vip IDs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "HaVipIds"
            ]
          }
        }
      }
    }
  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      HaVipId:
        Type: String
        Description: The  ID of the resource
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::VPC::HaVips
        Properties:
          HaVipId:
            Ref: HaVipId
    Outputs:
      HaVips:
        Description: The list of ha vips.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - HaVips
      HaVipIds:
        Description: The list of ha vip IDs.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - HaVipIds