alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.vpc.HAVip

Import

The havip can be imported using the id, e.g.

 $ pulumi import alicloud:vpc/hAVip:HAVip foo havip-abc123456

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var foo = new AliCloud.Vpc.HAVip("foo", new()
    {
        Description = "test_havip",
        VswitchId = "vsw-fakeid",
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpc.NewHAVip(ctx, "foo", &vpc.HAVipArgs{
			Description: pulumi.String("test_havip"),
			VswitchId:   pulumi.String("vsw-fakeid"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
        var foo = new HAVip("foo", HAVipArgs.builder()        
            .description("test_havip")
            .vswitchId("vsw-fakeid")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

foo = alicloud.vpc.HAVip("foo",
    description="test_havip",
    vswitch_id="vsw-fakeid")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const foo = new alicloud.vpc.HAVip("foo", {
    description: "test_havip",
    vswitchId: "vsw-fakeid",
});
resources:
  foo:
    type: alicloud:vpc:HAVip
    properties:
      description: test_havip
      vswitchId: vsw-fakeid

Create HAVip Resource

new HAVip(name: string, args: HAVipArgs, opts?: CustomResourceOptions);
@overload
def HAVip(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          description: Optional[str] = None,
          havip_name: Optional[str] = None,
          ip_address: Optional[str] = None,
          vswitch_id: Optional[str] = None)
@overload
def HAVip(resource_name: str,
          args: HAVipArgs,
          opts: Optional[ResourceOptions] = 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.

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.

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 instance.

IpAddress string

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

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 instance.

IpAddress string

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

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 instance.

ipAddress String

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

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 instance.

ipAddress string

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

vswitch_id str

The vswitch_id of the HaVip, the field can't be changed.

description str

The description of the HaVip instance.

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.

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 instance.

ipAddress String

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Status string

(Available in v1.120.0+) The status of the HaVip instance.

Id string

The provider-assigned unique ID for this managed resource.

Status string

(Available in v1.120.0+) The status of the HaVip instance.

id String

The provider-assigned unique ID for this managed resource.

status String

(Available in v1.120.0+) The status of the HaVip instance.

id string

The provider-assigned unique ID for this managed resource.

status string

(Available in v1.120.0+) The status of the HaVip instance.

id str

The provider-assigned unique ID for this managed resource.

status str

(Available in v1.120.0+) The status of the HaVip instance.

id String

The provider-assigned unique ID for this managed resource.

status String

(Available in v1.120.0+) The status of the HaVip instance.

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,
        description: Optional[str] = None,
        havip_name: Optional[str] = None,
        ip_address: Optional[str] = None,
        status: 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:
Description string

The description of the HaVip instance.

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.

Status string

(Available in v1.120.0+) The status of the HaVip instance.

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 instance.

IpAddress string

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

Status string

(Available in v1.120.0+) The status of the HaVip instance.

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 instance.

ipAddress String

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

status String

(Available in v1.120.0+) The status of the HaVip instance.

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 instance.

ipAddress string

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

status string

(Available in v1.120.0+) The status of the HaVip instance.

vswitchId string

The vswitch_id of the HaVip, the field can't be changed.

description str

The description of the HaVip instance.

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.

status str

(Available in v1.120.0+) The status of the HaVip instance.

vswitch_id str

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 instance.

ipAddress String

The ip address of the HaVip. If not filled, the default will be assigned one from the vswitch.

status String

(Available in v1.120.0+) The status of the HaVip instance.

vswitchId String

The vswitch_id of the HaVip, the field can't be changed.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.