Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::VPC::HaVip

Última atualização: Jun 27, 2026

Use o tipo ALIYUN::VPC::HaVip para solicitar um endereço IP virtual de alta disponibilidade (HAVIP).

Importante

Cada VPC suporta até cinco HAVIPs.

Sintaxe

{
  "Type": "ALIYUN::VPC::HaVip",
  "Properties": {
    "VSwitchId":  String,
    "IpAddress":  String,
    "Description": String,
    "Tags": List,
    "Name": String,
    "ResourceGroupId": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

VSwitchId

String

Sim

Não

ID do vSwitch.

Nenhuma.

IpAddress

String

Não

Não

Endereço IP do HAVIP.

Se não especificado, o sistema atribui aleatoriamente um endereço IP do vSwitch indicado.

Nenhuma.

Description

String

Não

Sim

Descrição do HAVIP.

Até 256 caracteres. Não pode começar com http:// ou https://.

Name

String

Não

Sim

Nome do HAVIP.

De 1 a 128 caracteres. Não pode começar com http:// ou https://.

ResourceGroupId

String

Não

Sim

ID do grupo de recursos.

Nenhuma.

Tags

List

Não

Sim

Tags a adicionar ao HAVIP.

Consulte a seção "Propriedades de Tags".

Sintaxe de Tags

"Tags": [
  {
    "Key": String,
    "Value": String
  }
]

Propriedades de Tags

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Key

String

Sim

Não

Chave da tag.

De 1 a 128 caracteres. Não pode conter http:// ou https://. Não pode começar com aliyun ou acs:.

Value

String

Não

Não

Valor da tag.

Até 128 caracteres. Não pode conter http:// ou https://. Não pode começar com aliyun ou acs:.

Valores de retorno

Fn::GetAtt

  • HaVipId: ID do HAVIP.

  • IpAddress: endereço IP do HAVIP.

  • Arn: Alibaba Cloud Resource Name (ARN).

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ZoneId:
    Type: String
    Description: Create an Availability Zone for an instance to ensure that the Availability Zone supports the creation of Memcache resource specifications.
    AssociationProperty: ALIYUN::ECS::Instance::ZoneId
    Label: Zone ID
  VSwitch:
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    Type: String
    Description: Please search the business VSwitch ID starts with(vsw-xxx)from console-Virtual Private Cloud-VSwitches
    Label: Existing VSwitch ID
    AssociationPropertyMetadata:
      ZoneId: ZoneId
Resources:
  HaVip:
    Type: ALIYUN::VPC::HaVip
    Properties:
      VSwitchId:
        Ref: VSwitch
Outputs:
  HaVipId:
    Value:
      Fn::GetAtt:
        - HaVip
        - HaVipId

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ZoneId": {
      "Type": "String",
      "Description": "Create an Availability Zone for an instance to ensure that the Availability Zone supports the creation of Memcache resource specifications.",
      "AssociationProperty": "ALIYUN::ECS::Instance::ZoneId",
      "Label": "Zone ID"
    },
    "VSwitch": {
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "Type": "String",
      "Description": "Please search the business VSwitch ID starts with(vsw-xxx)from console-Virtual Private Cloud-VSwitches",
      "Label": "Existing VSwitch ID",
      "AssociationPropertyMetadata": {
        "ZoneId": "ZoneId"
      }
    }
  },
  "Resources": {
    "HaVip": {
      "Type": "ALIYUN::VPC::HaVip",
      "Properties": {
        "VSwitchId": {
          "Ref": "VSwitch"
        }
      }
    }
  },
  "Outputs": {
    "HaVipId": {
      "Value": {
        "Fn::GetAtt": [
          "HaVip",
          "HaVipId"
        ]
      }
    }
  }
}