VbrHealthCheck

class VbrHealthCheck : KotlinCustomResource

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 since v1.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.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionsArgs;
import com.pulumi.random.RandomInteger;
import com.pulumi.random.RandomIntegerArgs;
import com.pulumi.alicloud.expressconnect.VirtualBorderRouter;
import com.pulumi.alicloud.expressconnect.VirtualBorderRouterArgs;
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 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("terraform-example");
final var defaultRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
final var defaultPhysicalConnections = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
.nameRegex("^preserved-NODELETING")
.build());
var vlanId = new RandomInteger("vlanId", RandomIntegerArgs.builder()
.max(2999)
.min(1)
.build());
var exampleVirtualBorderRouter = new VirtualBorderRouter("exampleVirtualBorderRouter", VirtualBorderRouterArgs.builder()
.localGatewayIp("10.0.0.1")
.peerGatewayIp("10.0.0.2")
.peeringSubnetMask("255.255.255.252")
.physicalConnectionId(defaultPhysicalConnections.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[0].id()))
.virtualBorderRouterName(name)
.vlanId(vlanId.id())
.minRxInterval(1000)
.minTxInterval(1000)
.detectMultiplier(10)
.build());
var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.cenInstanceName(name)
.protectionLevel("REDUCED")
.build());
var exampleInstanceAttachment = new InstanceAttachment("exampleInstanceAttachment", InstanceAttachmentArgs.builder()
.instanceId(exampleInstance.id())
.childInstanceId(exampleVirtualBorderRouter.id())
.childInstanceType("VBR")
.childInstanceRegionId(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
.build());
var exampleVbrHealthCheck = new VbrHealthCheck("exampleVbrHealthCheck", VbrHealthCheckArgs.builder()
.cenId(exampleInstance.id())
.healthCheckSourceIp("192.168.1.2")
.healthCheckTargetIp("10.0.0.2")
.vbrInstanceId(exampleVirtualBorderRouter.id())
.vbrInstanceRegionId(exampleInstanceAttachment.childInstanceRegionId())
.healthCheckInterval(2)
.healthyThreshold(8)
.build());
}
}

Import

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

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

Properties

Link copied to clipboard
val cenId: Output<String>

The ID of the CEN instance.

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

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

Link copied to clipboard

The source IP address of health checks.

Link copied to clipboard

The destination IP address of health checks.

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vbrInstanceId: Output<String>

The ID of the VBR.

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

The ID of the account to which the VBR belongs.

Link copied to clipboard

The ID of the region to which the VBR belongs. ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.