全部产品
Search
文档中心

高速通道:ModifyRouterInterfaceAttribute - 修改路由器接口的配置

更新时间:Aug 28, 2026

调用ModifyRouterInterfaceAttribute接口修改路由器接口的配置。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

RegionId

string

路由器接口所在的地域 ID。

您可以通过调用 DescribeRegions 接口获取地域 ID。

cn-shanghai

RouterInterfaceId

string

路由器接口 ID。

ri-2zeo3xzyf38r4urz****

Name

string

路由器接口的名称。

长度为 2~128 个字符,必须以字母或中文开头,可包含数字、下划线(_)和短划线(-)。

TEST

Description

string

路由器接口的描述信息。

长度为 2~256 个字符,必须以字母或中文开头,但不能以http:// https://开头。

路由器接口

OppositeInterfaceId

string

对端路由器接口 ID。

ri-2zeo3xzyf38r4urz****

OppositeRouterId

string

对端路由器 ID。

vrt-bp1jcg5cmxjbl9xgc****

OppositeRouterType

string

要连接的对端路由器接口所属的路由器类型。取值:

  • VRouter:路由器。

  • VBR(默认值):边界路由器。

VBR

OppositeInterfaceOwnerId

integer

对端路由器接口的账号 ID。

28768383240243****

HealthCheckSourceIp

string

健康检查源 IP 地址,必须是本端 VPC 内的一个未被使用的 IP 地址。

说明

物理专线接入场景下可指定该参数。

116.62.XX.XX

HealthCheckTargetIp

string

健康检查目的 IP 地址。

说明

指定 HealthCheckSourceIp 后,该参数为必选。

116.62.XX.XX

HcThreshold

integer

健康检查阈值。单位:个。推荐值为 8。表示指定健康检查时发送探测报文的个数。

8

HcRate

integer

健康检查速率。单位:毫秒。推荐值为 2000。表示指定健康检查时发送连续探测报文的时间间隔。

本示例 HcThreshold 设置为 8HcRate 设置为 2000,即在健康检查时每 2000 毫秒从 HealthCheckSourceIp(健康检查源 IP 地址)向 HealthCheckTargetIp(健康检查目的 IP 地址)发送一次探测报文,如果连续 8 次探测报文都无响应,则健康检查失败。

2000

DeleteHealthCheckIp

boolean

是否删除该路由器接口上配置的健康检查 IP。取值:

  • true:删除健康检查 IP。

  • false(默认值):不删除健康检查 IP。

false

返回参数

名称

类型

描述

示例值

object

请求 ID。

RequestId

string

请求 ID。

4EC47282-1B74-4534-BD0E-403F3EE64CAF

示例

正常返回示例

JSON格式

{
  "RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}

错误码

HTTP status code

错误码

错误信息

描述

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. 参数OppositeRouterType的值不合法。
400 InvalidDescription.Malformed The Description is illegal. 指定的资源描述格式不合法。长度为2-256个字符,不能以http://和https://开头。
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. 健康检查IP不合法。
400 OperationFailed.OperationLocked Operation failed because OperationLocked. 操作失败因为实例已经被运维锁定。
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.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情