日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

alicloud_cen_vbr_health_check

更新時(shí)間:

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


provider "alicloud" {
  region = "cn-hangzhou"
}
variable "name" {
  default = "terraform-example"
}
data "alicloud_regions" "default" {
  current = true
}
data "alicloud_express_connect_physical_connections" "default" {
  name_regex = "^preserved-NODELETING"
}
resource "random_integer" "vlan_id" {
  max = 2999
  min = 1
}
resource "alicloud_express_connect_virtual_border_router" "example" {
  local_gateway_ip           = "10.0.0.1"
  peer_gateway_ip            = "10.0.0.2"
  peering_subnet_mask        = "255.255.255.252"
  physical_connection_id     = data.alicloud_express_connect_physical_connections.default.connections.0.id
  virtual_border_router_name = var.name
  vlan_id                    = random_integer.vlan_id.id
  min_rx_interval            = 1000
  min_tx_interval            = 1000
  detect_multiplier          = 10
}
resource "alicloud_cen_instance" "example" {
  cen_instance_name = var.name
  protection_level  = "REDUCED"
}
resource "alicloud_cen_instance_attachment" "example" {
  instance_id              = alicloud_cen_instance.example.id
  child_instance_id        = alicloud_express_connect_virtual_border_router.example.id
  child_instance_type      = "VBR"
  child_instance_region_id = data.alicloud_regions.default.regions.0.id
}
resource "alicloud_cen_vbr_health_check" "example" {
  cen_id                 = alicloud_cen_instance.example.id
  health_check_source_ip = "192.168.1.2"
  health_check_target_ip = "10.0.0.2"
  vbr_instance_id        = alicloud_express_connect_virtual_border_router.example.id
  vbr_instance_region_id = alicloud_cen_instance_attachment.example.child_instance_region_id
  health_check_interval  = 2
  healthy_threshold      = 8
}

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.

->NOTE: The alicloud_cen_vbr_health_check resource depends on the related alicloud_cen_instance_attachment resource.

Attributes Reference

The following attributes are exported:

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

Timeouts

-> NOTE: Available in 1.98.0+.

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 6 mins) Used when create the CEN VBR Health Check. (until it reaches the available status).
  • update - (Defaults to 6 mins) Used when update the CEN VBR Health Check.
  • delete - (Defaults to 6 mins) Used when delete the CEN VBR Health Check.

Import

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

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