» alicloud_cen_vbr_health_check

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.

» Example Usage

Basic Usage

# Create a cen vbr HealrhCheck resource and use it.

resource "alicloud_cen_instance" "default" {
    name = "test_name"
}
resource "alicloud_cen_instance_attachment" "default" {
    instance_id = "${alicloud_cen_instance.default.id}"
    child_instance_id = "vbr-xxxxx"
    child_instance_region_id = "cn-hangzhou"
}
resource "alicloud_cen_vbr_health_check" "default" {
    cen_id = "${alicloud_cen_instance.default.id}"
    health_check_source_ip = "192.168.1.2"
    health_check_target_ip = "10.0.0.2"
    vbr_instance_id = "vbr-xxxxx"
    vbr_instance_region_id = "cn-hangzhou"
    health_check_interval = 2
    healthy_threshold = 8
    depends_on = ["alicloud_cen_instance_attachment.default"]
}

» Argument Reference

The following arguments are supported:

  • cen_id - (Required, ForceNew) The ID of the CEN instance.
  • health_check_interval - (Optional, Default) Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
  • health_check_source_ip - (Optional) The source IP address of health checks.
  • health_check_target_ip - (Required) The destination IP address of health checks.
  • healthy_threshold - (Optional, Default) Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
  • vbr_instance_id - (Required, ForceNew) The ID of the VBR.
  • vbr_instance_owner_id - (Optional) The ID of the account to which the VBR belongs.
  • vbr_instance_region_id - (Required, ForceNew) The ID of the region to which the VBR belongs.

» Attributes Reference

The following attributes are exported:

  • id - ID of the resource, formatted as <vbr_instance_id>:<vbr_instance_region_id>.

» Import

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

$ terraform import alicloud_cen_vbr_health_check.example vbr-xxxxx:cn-hangzhou