1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpc
  5. HAVip
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.vpc.HAVip

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    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, Any]] = None)
    func NewHAVip(ctx *Context, name string, args HAVipArgs, opts ...ResourceOption) (*HAVip, error)
    public HAVip(string name, HAVipArgs args, CustomResourceOptions? opts = null)
    public HAVip(String name, HAVipArgs args)
    public HAVip(String name, HAVipArgs args, CustomResourceOptions options)
    
    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", "any" },
        },
    });
    
    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.Map{
    		"string": pulumi.Any("any"),
    	},
    })
    
    var havipResource = new HAVip("havipResource", HAVipArgs.builder()
        .vswitchId("string")
        .description("string")
        .haVipName("string")
        .ipAddress("string")
        .resourceGroupId("string")
        .tags(Map.of("string", "any"))
        .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": "any",
        })
    
    const havipResource = new alicloud.vpc.HAVip("havipResource", {
        vswitchId: "string",
        description: "string",
        haVipName: "string",
        ipAddress: "string",
        resourceGroupId: "string",
        tags: {
            string: "any",
        },
    });
    
    type: alicloud:vpc:HAVip
    properties:
        description: string
        haVipName: string
        ipAddress: string
        resourceGroupId: string
        tags:
            string: any
        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.
    HaVipName string
    The name of the HAVIP.
    HavipName string
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    IpAddress string
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    ResourceGroupId string
    The ID of the resource group to which the HAVIP belongs.
    Tags Dictionary<string, object>
    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.
    HaVipName string
    The name of the HAVIP.
    HavipName string
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    IpAddress string
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    ResourceGroupId string
    The ID of the resource group to which the HAVIP belongs.
    Tags map[string]interface{}
    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.
    haVipName String
    The name of the HAVIP.
    havipName String
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    ipAddress String
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    resourceGroupId String
    The ID of the resource group to which the HAVIP belongs.
    tags Map<String,Object>
    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.
    haVipName string
    The name of the HAVIP.
    havipName string
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    ipAddress string
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    resourceGroupId string
    The ID of the resource group to which the HAVIP belongs.
    tags {[key: string]: any}
    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_name str
    The name of the HAVIP.
    havip_name str
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    ip_address str
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    resource_group_id str
    The ID of the resource group to which the HAVIP belongs.
    tags Mapping[str, Any]
    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.
    haVipName String
    The name of the HAVIP.
    havipName String
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    ipAddress String
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    resourceGroupId String
    The ID of the resource group to which the HAVIP belongs.
    tags Map<Any>
    The list of tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HAVip resource produces the following output properties:

    AssociatedEipAddresses List<string>
    The elastic IP address (EIP) associated with the HAVIP.
    AssociatedInstanceType string
    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.
    HaVipId string
    The ID of the HAVIP.
    Id string
    The provider-assigned unique ID for this managed resource.
    MasterInstanceId string
    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.
    AssociatedEipAddresses []string
    The elastic IP address (EIP) associated with the HAVIP.
    AssociatedInstanceType string
    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.
    HaVipId string
    The ID of the HAVIP.
    Id string
    The provider-assigned unique ID for this managed resource.
    MasterInstanceId string
    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.
    associatedEipAddresses List<String>
    The elastic IP address (EIP) associated with the HAVIP.
    associatedInstanceType String
    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.
    haVipId String
    The ID of the HAVIP.
    id String
    The provider-assigned unique ID for this managed resource.
    masterInstanceId String
    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.
    associatedEipAddresses string[]
    The elastic IP address (EIP) associated with the HAVIP.
    associatedInstanceType string
    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.
    haVipId string
    The ID of the HAVIP.
    id string
    The provider-assigned unique ID for this managed resource.
    masterInstanceId string
    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_addresses Sequence[str]
    The elastic IP address (EIP) associated with the HAVIP.
    associated_instance_type str
    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_id str
    The ID of the HAVIP.
    id str
    The provider-assigned unique ID for this managed resource.
    master_instance_id str
    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.
    associatedEipAddresses List<String>
    The elastic IP address (EIP) associated with the HAVIP.
    associatedInstanceType String
    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.
    haVipId String
    The ID of the HAVIP.
    id String
    The provider-assigned unique ID for this managed resource.
    masterInstanceId String
    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, Any]] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None) -> HAVip
    func 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.
    The following state arguments are supported:
    AssociatedEipAddresses List<string>
    The elastic IP address (EIP) associated with the HAVIP.
    AssociatedInstanceType string
    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.
    HaVipId string
    The ID of the HAVIP.
    HaVipName string
    The name of the HAVIP.
    HavipName string
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    IpAddress string
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    MasterInstanceId string
    The ID of the active instance that is associated with the HAVIP.
    ResourceGroupId string
    The ID of the resource group to which the HAVIP belongs.
    Status string
    (Available in v1.120.0+) The status of the HaVip instance.
    Tags Dictionary<string, object>
    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.
    AssociatedEipAddresses []string
    The elastic IP address (EIP) associated with the HAVIP.
    AssociatedInstanceType string
    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.
    HaVipId string
    The ID of the HAVIP.
    HaVipName string
    The name of the HAVIP.
    HavipName string
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    IpAddress string
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    MasterInstanceId string
    The ID of the active instance that is associated with the HAVIP.
    ResourceGroupId string
    The ID of the resource group to which the HAVIP belongs.
    Status string
    (Available in v1.120.0+) The status of the HaVip instance.
    Tags map[string]interface{}
    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.
    associatedEipAddresses List<String>
    The elastic IP address (EIP) associated with the HAVIP.
    associatedInstanceType String
    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.
    haVipId String
    The ID of the HAVIP.
    haVipName String
    The name of the HAVIP.
    havipName String
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    ipAddress String
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    masterInstanceId String
    The ID of the active instance that is associated with the HAVIP.
    resourceGroupId String
    The ID of the resource group to which the HAVIP belongs.
    status String
    (Available in v1.120.0+) The status of the HaVip instance.
    tags Map<String,Object>
    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.
    associatedEipAddresses string[]
    The elastic IP address (EIP) associated with the HAVIP.
    associatedInstanceType string
    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.
    haVipId string
    The ID of the HAVIP.
    haVipName string
    The name of the HAVIP.
    havipName string
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    ipAddress string
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    masterInstanceId string
    The ID of the active instance that is associated with the HAVIP.
    resourceGroupId string
    The ID of the resource group to which the HAVIP belongs.
    status string
    (Available in v1.120.0+) The status of the HaVip instance.
    tags {[key: string]: any}
    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_addresses Sequence[str]
    The elastic IP address (EIP) associated with the HAVIP.
    associated_instance_type str
    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_id str
    The ID of the HAVIP.
    ha_vip_name str
    The name of the HAVIP.
    havip_name str
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    ip_address str
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    master_instance_id str
    The ID of the active instance that is associated with the HAVIP.
    resource_group_id str
    The ID of the resource group to which the HAVIP belongs.
    status str
    (Available in v1.120.0+) The status of the HaVip instance.
    tags Mapping[str, Any]
    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.
    associatedEipAddresses List<String>
    The elastic IP address (EIP) associated with the HAVIP.
    associatedInstanceType String
    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.
    haVipId String
    The ID of the HAVIP.
    haVipName String
    The name of the HAVIP.
    havipName String
    The name of the HaVip instance.

    Deprecated: Field 'havip_name' has been deprecated from provider version 1.205.0. New field 'ha_vip_name' instead.

    ipAddress String
    The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.
    masterInstanceId String
    The ID of the active instance that is associated with the HAVIP.
    resourceGroupId String
    The ID of the resource group to which the HAVIP belongs.
    status String
    (Available in v1.120.0+) The status of the HaVip instance.
    tags Map<Any>
    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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi