alicloud.vpc.HAVip
Explore with Pulumi AI
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const default = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const example = new alicloud.vpc.Network("example", {
    vpcName: name,
    cidrBlock: "10.4.0.0/16",
});
const exampleSwitch = new alicloud.vpc.Switch("example", {
    vswitchName: name,
    cidrBlock: "10.4.0.0/24",
    vpcId: example.id,
    zoneId: _default.then(_default => _default.zones?.[0]?.id),
});
const exampleHAVip = new alicloud.vpc.HAVip("example", {
    vswitchId: exampleSwitch.id,
    description: name,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-example"
default = alicloud.get_zones(available_resource_creation="VSwitch")
example = alicloud.vpc.Network("example",
    vpc_name=name,
    cidr_block="10.4.0.0/16")
example_switch = alicloud.vpc.Switch("example",
    vswitch_name=name,
    cidr_block="10.4.0.0/24",
    vpc_id=example.id,
    zone_id=default.zones[0].id)
example_ha_vip = alicloud.vpc.HAVip("example",
    vswitch_id=example_switch.id,
    description=name)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		example, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("10.4.0.0/16"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
			VswitchName: pulumi.String(name),
			CidrBlock:   pulumi.String("10.4.0.0/24"),
			VpcId:       example.ID(),
			ZoneId:      pulumi.String(_default.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		_, err = vpc.NewHAVip(ctx, "example", &vpc.HAVipArgs{
			VswitchId:   exampleSwitch.ID(),
			Description: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "tf-example";
    var @default = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "VSwitch",
    });
    var example = new AliCloud.Vpc.Network("example", new()
    {
        VpcName = name,
        CidrBlock = "10.4.0.0/16",
    });
    var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
    {
        VswitchName = name,
        CidrBlock = "10.4.0.0/24",
        VpcId = example.Id,
        ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
    });
    var exampleHAVip = new AliCloud.Vpc.HAVip("example", new()
    {
        VswitchId = exampleSwitch.Id,
        Description = name,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.vpc.HAVip;
import com.pulumi.alicloud.vpc.HAVipArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("tf-example");
        final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("VSwitch")
            .build());
        var example = new Network("example", NetworkArgs.builder()
            .vpcName(name)
            .cidrBlock("10.4.0.0/16")
            .build());
        var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
            .vswitchName(name)
            .cidrBlock("10.4.0.0/24")
            .vpcId(example.id())
            .zoneId(default_.zones()[0].id())
            .build());
        var exampleHAVip = new HAVip("exampleHAVip", HAVipArgs.builder()
            .vswitchId(exampleSwitch.id())
            .description(name)
            .build());
    }
}
configuration:
  name:
    type: string
    default: tf-example
resources:
  example:
    type: alicloud:vpc:Network
    properties:
      vpcName: ${name}
      cidrBlock: 10.4.0.0/16
  exampleSwitch:
    type: alicloud:vpc:Switch
    name: example
    properties:
      vswitchName: ${name}
      cidrBlock: 10.4.0.0/24
      vpcId: ${example.id}
      zoneId: ${default.zones[0].id}
  exampleHAVip:
    type: alicloud:vpc:HAVip
    name: example
    properties:
      vswitchId: ${exampleSwitch.id}
      description: ${name}
variables:
  default:
    fn::invoke:
      Function: alicloud:getZones
      Arguments:
        availableResourceCreation: VSwitch
Create HAVip Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HAVip(name: string, args: HAVipArgs, opts?: CustomResourceOptions);@overload
def HAVip(resource_name: str,
          args: HAVipArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def HAVip(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          vswitch_id: Optional[str] = None,
          description: Optional[str] = None,
          ha_vip_name: Optional[str] = None,
          havip_name: Optional[str] = None,
          ip_address: Optional[str] = None,
          resource_group_id: Optional[str] = None,
          tags: Optional[Mapping[str, str]] = None)func NewHAVip(ctx *Context, name string, args HAVipArgs, opts ...ResourceOption) (*HAVip, error)public HAVip(string name, HAVipArgs args, CustomResourceOptions? opts = null)type: alicloud:vpc:HAVip
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HAVipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HAVipArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HAVipArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HAVipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HAVipArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var havipResource = new AliCloud.Vpc.HAVip("havipResource", new()
{
    VswitchId = "string",
    Description = "string",
    HaVipName = "string",
    IpAddress = "string",
    ResourceGroupId = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := vpc.NewHAVip(ctx, "havipResource", &vpc.HAVipArgs{
	VswitchId:       pulumi.String("string"),
	Description:     pulumi.String("string"),
	HaVipName:       pulumi.String("string"),
	IpAddress:       pulumi.String("string"),
	ResourceGroupId: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var havipResource = new HAVip("havipResource", HAVipArgs.builder()
    .vswitchId("string")
    .description("string")
    .haVipName("string")
    .ipAddress("string")
    .resourceGroupId("string")
    .tags(Map.of("string", "string"))
    .build());
havip_resource = alicloud.vpc.HAVip("havipResource",
    vswitch_id="string",
    description="string",
    ha_vip_name="string",
    ip_address="string",
    resource_group_id="string",
    tags={
        "string": "string",
    })
const havipResource = new alicloud.vpc.HAVip("havipResource", {
    vswitchId: "string",
    description: "string",
    haVipName: "string",
    ipAddress: "string",
    resourceGroupId: "string",
    tags: {
        string: "string",
    },
});
type: alicloud:vpc:HAVip
properties:
    description: string
    haVipName: string
    ipAddress: string
    resourceGroupId: string
    tags:
        string: string
    vswitchId: string
HAVip Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The HAVip resource accepts the following input properties:
- VswitchId string
- The vswitch_id of the HaVip, the field can't be changed.
- Description string
- The description of the HaVip instance.
- HaVip stringName 
- The name of the HAVIP.
- HavipName string
- The name of the HaVip instance.
- IpAddress string
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- ResourceGroup stringId 
- The ID of the resource group to which the HAVIP belongs.
- Dictionary<string, string>
- The list of tags.
- VswitchId string
- The vswitch_id of the HaVip, the field can't be changed.
- Description string
- The description of the HaVip instance.
- HaVip stringName 
- The name of the HAVIP.
- HavipName string
- The name of the HaVip instance.
- IpAddress string
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- ResourceGroup stringId 
- The ID of the resource group to which the HAVIP belongs.
- map[string]string
- The list of tags.
- vswitchId String
- The vswitch_id of the HaVip, the field can't be changed.
- description String
- The description of the HaVip instance.
- haVip StringName 
- The name of the HAVIP.
- havipName String
- The name of the HaVip instance.
- ipAddress String
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- resourceGroup StringId 
- The ID of the resource group to which the HAVIP belongs.
- Map<String,String>
- The list of tags.
- vswitchId string
- The vswitch_id of the HaVip, the field can't be changed.
- description string
- The description of the HaVip instance.
- haVip stringName 
- The name of the HAVIP.
- havipName string
- The name of the HaVip instance.
- ipAddress string
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- resourceGroup stringId 
- The ID of the resource group to which the HAVIP belongs.
- {[key: string]: string}
- The list of tags.
- vswitch_id str
- The vswitch_id of the HaVip, the field can't be changed.
- description str
- The description of the HaVip instance.
- ha_vip_ strname 
- The name of the HAVIP.
- havip_name str
- The name of the HaVip instance.
- ip_address str
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- resource_group_ strid 
- The ID of the resource group to which the HAVIP belongs.
- Mapping[str, str]
- The list of tags.
- vswitchId String
- The vswitch_id of the HaVip, the field can't be changed.
- description String
- The description of the HaVip instance.
- haVip StringName 
- The name of the HAVIP.
- havipName String
- The name of the HaVip instance.
- ipAddress String
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- resourceGroup StringId 
- The ID of the resource group to which the HAVIP belongs.
- Map<String>
- The list of tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the HAVip resource produces the following output properties:
- AssociatedEip List<string>Addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- AssociatedInstance stringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- AssociatedInstances List<string>
- The ID of the instance with which the HAVIP is associated.
- CreateTime string
- The time when the HAVIP was created.
- HaVip stringId 
- The ID of the HAVIP.
- Id string
- The provider-assigned unique ID for this managed resource.
- MasterInstance stringId 
- The ID of the active instance that is associated with the HAVIP.
- Status string
- (Available in v1.120.0+) The status of the HaVip instance.
- VpcId string
- The ID of the VPC to which the HAVIP belongs.
- AssociatedEip []stringAddresses 
- The elastic IP address (EIP) associated with the HAVIP.
- AssociatedInstance stringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- AssociatedInstances []string
- The ID of the instance with which the HAVIP is associated.
- CreateTime string
- The time when the HAVIP was created.
- HaVip stringId 
- The ID of the HAVIP.
- Id string
- The provider-assigned unique ID for this managed resource.
- MasterInstance stringId 
- The ID of the active instance that is associated with the HAVIP.
- Status string
- (Available in v1.120.0+) The status of the HaVip instance.
- VpcId string
- The ID of the VPC to which the HAVIP belongs.
- associatedEip List<String>Addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- associatedInstance StringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- associatedInstances List<String>
- The ID of the instance with which the HAVIP is associated.
- createTime String
- The time when the HAVIP was created.
- haVip StringId 
- The ID of the HAVIP.
- id String
- The provider-assigned unique ID for this managed resource.
- masterInstance StringId 
- The ID of the active instance that is associated with the HAVIP.
- status String
- (Available in v1.120.0+) The status of the HaVip instance.
- vpcId String
- The ID of the VPC to which the HAVIP belongs.
- associatedEip string[]Addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- associatedInstance stringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- associatedInstances string[]
- The ID of the instance with which the HAVIP is associated.
- createTime string
- The time when the HAVIP was created.
- haVip stringId 
- The ID of the HAVIP.
- id string
- The provider-assigned unique ID for this managed resource.
- masterInstance stringId 
- The ID of the active instance that is associated with the HAVIP.
- status string
- (Available in v1.120.0+) The status of the HaVip instance.
- vpcId string
- The ID of the VPC to which the HAVIP belongs.
- associated_eip_ Sequence[str]addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- associated_instance_ strtype 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- associated_instances Sequence[str]
- The ID of the instance with which the HAVIP is associated.
- create_time str
- The time when the HAVIP was created.
- ha_vip_ strid 
- The ID of the HAVIP.
- id str
- The provider-assigned unique ID for this managed resource.
- master_instance_ strid 
- The ID of the active instance that is associated with the HAVIP.
- status str
- (Available in v1.120.0+) The status of the HaVip instance.
- vpc_id str
- The ID of the VPC to which the HAVIP belongs.
- associatedEip List<String>Addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- associatedInstance StringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- associatedInstances List<String>
- The ID of the instance with which the HAVIP is associated.
- createTime String
- The time when the HAVIP was created.
- haVip StringId 
- The ID of the HAVIP.
- id String
- The provider-assigned unique ID for this managed resource.
- masterInstance StringId 
- The ID of the active instance that is associated with the HAVIP.
- status String
- (Available in v1.120.0+) The status of the HaVip instance.
- vpcId String
- The ID of the VPC to which the HAVIP belongs.
Look up Existing HAVip Resource
Get an existing HAVip resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HAVipState, opts?: CustomResourceOptions): HAVip@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        associated_eip_addresses: Optional[Sequence[str]] = None,
        associated_instance_type: Optional[str] = None,
        associated_instances: Optional[Sequence[str]] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        ha_vip_id: Optional[str] = None,
        ha_vip_name: Optional[str] = None,
        havip_name: Optional[str] = None,
        ip_address: Optional[str] = None,
        master_instance_id: Optional[str] = None,
        resource_group_id: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        vpc_id: Optional[str] = None,
        vswitch_id: Optional[str] = None) -> HAVipfunc GetHAVip(ctx *Context, name string, id IDInput, state *HAVipState, opts ...ResourceOption) (*HAVip, error)public static HAVip Get(string name, Input<string> id, HAVipState? state, CustomResourceOptions? opts = null)public static HAVip get(String name, Output<String> id, HAVipState state, CustomResourceOptions options)Resource lookup is not supported in YAML- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AssociatedEip List<string>Addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- AssociatedInstance stringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- AssociatedInstances List<string>
- The ID of the instance with which the HAVIP is associated.
- CreateTime string
- The time when the HAVIP was created.
- Description string
- The description of the HaVip instance.
- HaVip stringId 
- The ID of the HAVIP.
- HaVip stringName 
- The name of the HAVIP.
- HavipName string
- The name of the HaVip instance.
- IpAddress string
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- MasterInstance stringId 
- The ID of the active instance that is associated with the HAVIP.
- ResourceGroup stringId 
- The ID of the resource group to which the HAVIP belongs.
- Status string
- (Available in v1.120.0+) The status of the HaVip instance.
- Dictionary<string, string>
- The list of tags.
- VpcId string
- The ID of the VPC to which the HAVIP belongs.
- VswitchId string
- The vswitch_id of the HaVip, the field can't be changed.
- AssociatedEip []stringAddresses 
- The elastic IP address (EIP) associated with the HAVIP.
- AssociatedInstance stringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- AssociatedInstances []string
- The ID of the instance with which the HAVIP is associated.
- CreateTime string
- The time when the HAVIP was created.
- Description string
- The description of the HaVip instance.
- HaVip stringId 
- The ID of the HAVIP.
- HaVip stringName 
- The name of the HAVIP.
- HavipName string
- The name of the HaVip instance.
- IpAddress string
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- MasterInstance stringId 
- The ID of the active instance that is associated with the HAVIP.
- ResourceGroup stringId 
- The ID of the resource group to which the HAVIP belongs.
- Status string
- (Available in v1.120.0+) The status of the HaVip instance.
- map[string]string
- The list of tags.
- VpcId string
- The ID of the VPC to which the HAVIP belongs.
- VswitchId string
- The vswitch_id of the HaVip, the field can't be changed.
- associatedEip List<String>Addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- associatedInstance StringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- associatedInstances List<String>
- The ID of the instance with which the HAVIP is associated.
- createTime String
- The time when the HAVIP was created.
- description String
- The description of the HaVip instance.
- haVip StringId 
- The ID of the HAVIP.
- haVip StringName 
- The name of the HAVIP.
- havipName String
- The name of the HaVip instance.
- ipAddress String
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- masterInstance StringId 
- The ID of the active instance that is associated with the HAVIP.
- resourceGroup StringId 
- The ID of the resource group to which the HAVIP belongs.
- status String
- (Available in v1.120.0+) The status of the HaVip instance.
- Map<String,String>
- The list of tags.
- vpcId String
- The ID of the VPC to which the HAVIP belongs.
- vswitchId String
- The vswitch_id of the HaVip, the field can't be changed.
- associatedEip string[]Addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- associatedInstance stringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- associatedInstances string[]
- The ID of the instance with which the HAVIP is associated.
- createTime string
- The time when the HAVIP was created.
- description string
- The description of the HaVip instance.
- haVip stringId 
- The ID of the HAVIP.
- haVip stringName 
- The name of the HAVIP.
- havipName string
- The name of the HaVip instance.
- ipAddress string
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- masterInstance stringId 
- The ID of the active instance that is associated with the HAVIP.
- resourceGroup stringId 
- The ID of the resource group to which the HAVIP belongs.
- status string
- (Available in v1.120.0+) The status of the HaVip instance.
- {[key: string]: string}
- The list of tags.
- vpcId string
- The ID of the VPC to which the HAVIP belongs.
- vswitchId string
- The vswitch_id of the HaVip, the field can't be changed.
- associated_eip_ Sequence[str]addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- associated_instance_ strtype 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- associated_instances Sequence[str]
- The ID of the instance with which the HAVIP is associated.
- create_time str
- The time when the HAVIP was created.
- description str
- The description of the HaVip instance.
- ha_vip_ strid 
- The ID of the HAVIP.
- ha_vip_ strname 
- The name of the HAVIP.
- havip_name str
- The name of the HaVip instance.
- ip_address str
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- master_instance_ strid 
- The ID of the active instance that is associated with the HAVIP.
- resource_group_ strid 
- The ID of the resource group to which the HAVIP belongs.
- status str
- (Available in v1.120.0+) The status of the HaVip instance.
- Mapping[str, str]
- The list of tags.
- vpc_id str
- The ID of the VPC to which the HAVIP belongs.
- vswitch_id str
- The vswitch_id of the HaVip, the field can't be changed.
- associatedEip List<String>Addresses 
- The elastic IP address (EIP) associated with the HAVIP.
- associatedInstance StringType 
- The type of the instance with which the HAVIP is associated. Valid values:- EcsInstance: an ECS instance.
- NetworkInterface: an ENI.
 
- associatedInstances List<String>
- The ID of the instance with which the HAVIP is associated.
- createTime String
- The time when the HAVIP was created.
- description String
- The description of the HaVip instance.
- haVip StringId 
- The ID of the HAVIP.
- haVip StringName 
- The name of the HAVIP.
- havipName String
- The name of the HaVip instance.
- ipAddress String
- The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
- masterInstance StringId 
- The ID of the active instance that is associated with the HAVIP.
- resourceGroup StringId 
- The ID of the resource group to which the HAVIP belongs.
- status String
- (Available in v1.120.0+) The status of the HaVip instance.
- Map<String>
- The list of tags.
- vpcId String
- The ID of the VPC to which the HAVIP belongs.
- vswitchId String
- The vswitch_id of the HaVip, the field can't be changed.
Import
The havip can be imported using the id, e.g.
$ pulumi import alicloud:vpc/hAVip:HAVip foo havip-abc123456
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.