All Products
Search
Document Center

Cloud Enterprise Network:EnableCenVbrHealthCheck

Last Updated:Aug 12, 2026

Enables or modifies the health check configuration for a virtual border router (VBR) to ensure timely detection of faulty Express Connect circuits.

Operation description

You can configure health checks for a VBR instance to monitor the connectivity of the Express Connect circuit between your on-premises data center and Alibaba Cloud, so that issues can be detected promptly.

Before using the health check feature, note the following information:

  • If your VBR instance uses static routing, after you configure the health check, you must add a static route entry in the on-premises data center connected to the VBR instance. The destination CIDR block of the static route is the health check source IP address with a 32-bit subnet mask, and the next hop is the Alibaba Cloud-side IP address of the VBR instance.

  • If your border router instance uses the BGP dynamic routing protocol, you do not need to add a route entry in the on-premises data center.

  • The EnableCenVbrHealthCheck operation is asynchronous. After you invoke this operation, the system returns a RequestId, but the health check instance is not yet created or modified. The creation task or modification task continues to run in the background. You can invoke the DescribeCenVbrHealthCheck operation to query the health check configuration. If the health check configuration is returned, the health check has been created or modified.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cen:EnableCenVbrHealthCheck

update

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

*virtualborderrouter

acs:vpc:*:{#accountId}:virtualborderrouter/{#virtualborderrouterId}

None None

Request parameters

Parameter

Type

Required

Description

Example

CenId

string

Yes

The instance ID of the Cloud Enterprise Network (CEN).

cen-hahhfskfkseig****

VbrInstanceRegionId

string

Yes

The region ID of the VBR instance.

You can call the DescribeChildInstanceRegions operation to query region IDs.

cn-shenzhen

VbrInstanceId

string

Yes

The instance ID of the VBR.

vbr-wz95o9aylj181n5mzk****

HealthCheckSourceIp

string

No

The source IP address for health checks. The following configuration methods are supported:

  • Automatically generated source IP (recommended): The system automatically allocates an IP address from the 100.96.0.0/16 CIDR block.

  • Custom source IP: The source IP address can be any unused IP address within the 10.0.0.0/8, 192.168.0.0/16, or 172.16.0.0/12 CIDR block. The IP address cannot cause an IP address conflict with addresses that need to communicate with each other in the CEN instance, or with the Alibaba Cloud-side or client-side IP address of the VBR instance.

192.XX.XX.1

HealthCheckTargetIp

string

Yes

The destination IP address for health checks.

The destination IP address is the client-side IP address of the VBR instance.

10.XX.XX.1

VbrInstanceOwnerId

integer

No

The ID of the Alibaba Cloud account that owns the VBR instance.

Note

This parameter is required if the VBR instance and the CEN instance belong to different accounts.

1250123456123456

HealthCheckInterval

integer

No

The interval at which health check probe packets are sent. Unit: seconds. Default value: 2. Valid values: 2 to 3.

2

HealthyThreshold

integer

No

The number of probe packets sent during each health check. Unit: packets. Valid values: 3 to 8. Default value: 8.

8

HealthCheckOnly

boolean

No

Specifies whether to enable only the health check detection feature. Valid values:

  • true: Only the detection feature is enabled.

      If only the health check detection feature is enabled, route switchover is not triggered when the health check detects that the link is down.
    
      > Ensure that you have other methods to guarantee link redundancy. Otherwise, enabling this feature may cause link interruptions.
    
  • false (default): The detection-only feature is disabled.

      By default, this feature is disabled. When the health check detects that the link is down, if redundant routes exist in the CEN instance, the health check immediately triggers a route switchover to use an available link.
    

false

Description

string

No

The description.

The description must be 1 to 256 characters in length and cannot start with http:// or https://.

testdesc

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

1F59F19C-EFD2-40B1-94D5-65B40CA8E34A

Examples

Success response

JSON format

{
  "RequestId": "1F59F19C-EFD2-40B1-94D5-65B40CA8E34A"
}

Error codes

HTTP status code

Error code

Error message

Description

400 RouteConflict The specified route already exists. The specified route already exists.
400 Illegal.SourceIpOrTargetIp The specified source IP address or destination IP address is invalid. The error message returned because the specified source or destination IP address is invalid.
400 OperationFailed.StatusNotSupport The VBR or VPC instance to CBN attachment is not in a valid state for the operation. The error message returned because the status of the VBR or VPC does not support this operation. Try again later.
400 OperationFailed.SourceIpUnSupported The specified source IP address is unsupported. The error message returned because the specified source IP address is not supported. Enter a valid IP address and try again.
400 InvalidStatus.HealthCheck Can not modify, please delete health check config first. You must delete the health check configurations before you can make the modifications.
400 OperationFailed.IpAddressExhausted No IP addresses are available for allocation. The operation failed because no IP addresses can be allocated.
400 InvalidParameter Invalid parameter. The error message returned because the parameter is set to an invalid value.
400 Unauthorized The AccessKeyId is unauthorized. The error message returned because you do not have the permissions to perform this operation.
400 InvalidParameter.CenId The specified parameter CenId is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.