Vbr Health Check Args
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());
}
}
Content copied to clipboard
Import
CEN VBR HealthCheck can be imported using the id, e.g.
$ pulumi import alicloud:cen/vbrHealthCheck:VbrHealthCheck example vbr-xxxxx:cn-hangzhou
Content copied to clipboard
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)