HAVip

class HAVip : KotlinCustomResource

Example Usage

Basic Usage

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 exampleNetwork = new Network("exampleNetwork", 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(exampleNetwork.id())
.zoneId(default_.zones()[0].id())
.build());
var exampleHAVip = new HAVip("exampleHAVip", HAVipArgs.builder()
.vswitchId(exampleSwitch.id())
.description(name)
.build());
}
}

Import

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

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

Properties

Link copied to clipboard

The elastic IP address (EIP) associated with the HAVIP.

Link copied to clipboard

The ID of the instance with which the HAVIP is associated.

Link copied to clipboard

The type of the instance with which the HAVIP is associated. Valid values:

Link copied to clipboard
val createTime: Output<String>

The time when the HAVIP was created.

Link copied to clipboard
val description: Output<String>?

The description of the HaVip instance.

Link copied to clipboard
val haVipId: Output<String>

The ID of the HAVIP.

Link copied to clipboard
val haVipName: Output<String>

The name of the HAVIP.

Link copied to clipboard
val havipName: Output<String>

The name of the HaVip instance.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipAddress: Output<String>

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

Link copied to clipboard

The ID of the active instance that is associated with the HAVIP.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<String>

The ID of the resource group to which the HAVIP belongs.

Link copied to clipboard
val status: Output<String>

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

Link copied to clipboard
val tags: Output<Map<String, Any>>?

The list of tags.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

The ID of the VPC to which the HAVIP belongs.

Link copied to clipboard
val vswitchId: Output<String>

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