VbrHealthCheckArgs

data class VbrHealthCheckArgs(val cenId: Output<String>? = null, val healthCheckInterval: Output<Int>? = null, val healthCheckSourceIp: Output<String>? = null, val healthCheckTargetIp: Output<String>? = null, val healthyThreshold: Output<Int>? = null, val vbrInstanceId: Output<String>? = null, val vbrInstanceOwnerId: Output<Int>? = null, val vbrInstanceRegionId: Output<String>? = null) : ConvertibleToJava<VbrHealthCheckArgs>

This topic describes how to configure the health check feature for a Cloud Enterprise Network (CEN) instance. After you attach a Virtual Border Router (VBR) to the CEN instance and configure the health check feature, you can monitor the network conditions of the on-premises data center connected to the VBR. For information about CEN VBR HealthCheck and how to use it, see Manage CEN VBR HealthCheck.

NOTE: Available in 1.88.0+

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.cen.InstanceAttachment;
import com.pulumi.alicloud.cen.InstanceAttachmentArgs;
import com.pulumi.alicloud.cen.VbrHealthCheck;
import com.pulumi.alicloud.cen.VbrHealthCheckArgs;
import com.pulumi.resources.CustomResourceOptions;
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 defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.cenInstanceName("test_name")
.build());
var defaultInstanceAttachment = new InstanceAttachment("defaultInstanceAttachment", InstanceAttachmentArgs.builder()
.instanceId(defaultInstance.id())
.childInstanceId("vbr-xxxxx")
.childInstanceType("VBR")
.childInstanceRegionId("cn-hangzhou")
.build());
var defaultVbrHealthCheck = new VbrHealthCheck("defaultVbrHealthCheck", VbrHealthCheckArgs.builder()
.cenId(defaultInstance.id())
.healthCheckSourceIp("192.168.1.2")
.healthCheckTargetIp("10.0.0.2")
.vbrInstanceId("vbr-xxxxx")
.vbrInstanceRegionId("cn-hangzhou")
.healthCheckInterval(2)
.healthyThreshold(8)
.build(), CustomResourceOptions.builder()
.dependsOn(defaultInstanceAttachment)
.build());
}
}

Import

CEN VBR HealthCheck can be imported using the id, e.g.

$ pulumi import alicloud:cen/vbrHealthCheck:VbrHealthCheck example vbr-xxxxx:cn-hangzhou

Constructors

Link copied to clipboard
fun VbrHealthCheckArgs(cenId: Output<String>? = null, healthCheckInterval: Output<Int>? = null, healthCheckSourceIp: Output<String>? = null, healthCheckTargetIp: Output<String>? = null, healthyThreshold: Output<Int>? = null, vbrInstanceId: Output<String>? = null, vbrInstanceOwnerId: Output<Int>? = null, vbrInstanceRegionId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): VbrHealthCheckArgs

Properties

Link copied to clipboard
val cenId: Output<String>? = null

The ID of the CEN instance.

Link copied to clipboard
val healthCheckInterval: Output<Int>? = null

Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.

Link copied to clipboard
val healthCheckSourceIp: Output<String>? = null

The source IP address of health checks.

Link copied to clipboard
val healthCheckTargetIp: Output<String>? = null

The destination IP address of health checks.

Link copied to clipboard
val healthyThreshold: Output<Int>? = null

Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.

Link copied to clipboard
val vbrInstanceId: Output<String>? = null

The ID of the VBR.

Link copied to clipboard
val vbrInstanceOwnerId: Output<Int>? = null

The ID of the account to which the VBR belongs.

Link copied to clipboard
val vbrInstanceRegionId: Output<String>? = null

The ID of the region to which the VBR belongs.