Modifies the configuration of a router interface.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the router interface. Call the DescribeRegions operation to query the most recent region list. |
cn-shanghai |
| RouterInterfaceId |
string |
Yes |
The ID of the router interface. |
ri-2zeo3xzyf38r4urz**** |
| Name |
string |
No |
The name of the router interface. The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. |
TEST |
| Description |
string |
No |
The description of the router interface. The value must be 2 to 256 characters in length. It must start with a letter but cannot start with |
路由器接口 |
| OppositeInterfaceId |
string |
No |
The ID of the peer router interface. |
ri-2zeo3xzyf38r4urz**** |
| OppositeRouterId |
string |
No |
The ID of the peer router. |
vrt-bp1jcg5cmxjbl9xgc**** |
| OppositeRouterType |
string |
No |
The type of router to which the peer router interface belongs. Valid values:
|
VBR |
| OppositeInterfaceOwnerId |
integer |
No |
The ID of the Alibaba Cloud account to which the peer router interface belongs. |
28768383240243**** |
| HealthCheckSourceIp |
string |
No |
The source IP address used for health checks. Must be an idle IP address of the local virtual private cloud (VPC). Note
You can set this parameter when an Express Connect circuit is used. |
116.62.XX.XX |
| HealthCheckTargetIp |
string |
No |
The destination IP address used for health checks. Note
This parameter is required when HealthCheckSourceIp is specified. |
116.62.XX.XX |
| HcThreshold |
integer |
No |
The healthy threshold. Unit: packets. Recommended value: 8. Specifies the number of probe packets sent during a health check. |
8 |
| HcRate |
integer |
No |
The health check rate. Unit: milliseconds. Recommended value: 2000. Specifies the interval between probe packets during a health check. For example, if HcThreshold is set to 8 and HcRate is set to 2000, probe packets are sent from HealthCheckSourceIp (source address) to HealthCheckTargetIp (destination address) every 2,000 seconds. If no response is returned for eight consecutive times, the health check fails. |
2000 |
| DeleteHealthCheckIp |
boolean |
No |
Whether to delete the health check IP addresses configured on the router interface. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
Examples
Success response
JSON format
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Forbidden.FinancialLocked | This RouterInterface is financiel locked because of bills outstanding. | |
| 400 | InvalidName.Malformed | The attribute name is illegal. | |
| 400 | InvalidOppositeRouterType.ValueNotSupported | The specified OppositeRouterType is not valid. | The value of the OppositeRouterType parameter is invalid. |
| 400 | InvalidDescription.Malformed | The Description is illegal. | |
| 400 | Forbbiden | The Router instance owner error | |
| 400 | LinkRole.NotSupport | This linkrole is not supported | |
| 400 | Forbbiden.ModifyIdAndType | Opposite is VBR, cannot modify the ID and type | |
| 400 | InvalidParam.ModifyRouterInterface | Modify routerinterface param invalid | |
| 400 | INSTANCE_IN_PROCESSIONG | Instance is in processing,please wait and try again | |
| 400 | IllegalParam.HcThreshold | %s | |
| 400 | IllegalParam.HcRate | %s | |
| 400 | InvalidHealthCheckIP.Malformd | Healthcheck sourceip or targetip is not valid. | |
| 400 | IllegalParam.HcSourceIp | The specified healthCheck Ip is not valid. | The IP address used for health checks is invalid. |
| 400 | OperationFailed.OperationLocked | Operation failed because OperationLocked. | The operation failed because the instance is locked due to O&M. |
| 400 | IncorrectStatus.RouterInterface | This openeration would not be allowed because status of this RouterInterface is not correct. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.