全部产品
Search
文档中心

专有网络 VPC:ModifyRouterInterfaceSpec - 修改路由器接口的规格

更新时间:Aug 27, 2026

调用ModifyRouterInterfaceSpec接口修改路由器接口的规格。

接口说明

调用本接口后,路由器接口进入激活中(Activating)状态,激活成功后进入已激活(Active)状态。

说明

无法修改处于欠费状态的路由器接口的规格。

调试

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

调试

授权信息

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

请求参数

名称

类型

必填

描述

示例值

RegionId

string

是

路由器接口所在的地域。

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

cn-hangzhou

RouterInterfaceId

string

是

路由器接口的 ID。

ri-2zeo3xzyf38r4urzd****

Spec

string

是

路由器接口的规格。可用的规格和对应的带宽如下:

  • Mini.2:2Mbps

  • Mini.5:5Mbps

  • Small.1:10Mbps

  • Small.2:20Mbps

  • Small.5:50Mbps

  • Middle.1:100Mbps

  • Middle.2:200Mbps

  • Middle.5:500Mbps

  • Large.1:1000 Mbps

  • Large.2:2000Mbps

  • Large.5:5000 Mbps

  • Xlarge.1:10000Mbps

说明

当 Role 为 AcceptingSide(连接接收端)时,Spec 取值为 Negative。

Small.1

ClientToken

string

否

客户端 Token,用于保证请求的幂等性。

从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。

说明

若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。

02fb3da4-130e-11e9-8e44-0016e04115b

返回参数

名称

类型

描述

示例值

object

路由器接口规格。

Spec

string

路由器接口的规格。取值:

  • Mini.2:2Mbps

  • Mini.5:5Mbps

  • Small.1:10Mbps

  • Small.2:20Mbps

  • Small.5:50Mbps

  • Middle.1:100Mbps

  • Middle.2:200Mbps

  • Middle.5:500Mbps

  • Large.1:1000 Mbps

  • Large.2:2000Mbps

  • Large.5:5000 Mbps

  • Xlarge.1:10000Mbps

Small.1

RequestId

string

请求 ID。

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

示例

正常返回示例

JSON格式

{
  "Spec": "Small.1",
  "RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}

错误码

HTTP status code

错误码

错误信息

描述

400 Forbidden.FinancialLocked RouterInterface can not be operated by this action when it?s FinancialLocked.
400 InvalidParam.NotFound Parameter must not be null,uid, bid,regionNo, remoteRegionNo or routerId
400 InvalidOppositeRegionId.NotFound The OppositeRegionId provided does not exist in our records.
400 InvalidInstanceOwner.Error The router instance owner error. 实例owner错误
400 InvalidRouterInterfaceSpec.Malformed Specified RouterInterface spec is not valid. 指定的RouterInterface Spec无效。
400 IllegalParam.chargeType RouterInterface chargeType different.
400 ResourceQueryError The specified resource is queried error. 查询指定的资源时出错。
400 InvalidSpec.ValueNotSupported The specified Spec is not supported.
400 InvalidSpec.ValueNotSupported The specified Spec is not supported. 路由器接口规格无效
400 InvalidInstance.StatusError The router instance status error. 实例状态错误。
400 InvalidOpposite.NotFound The opposite does not exist. 对端不存在。
404 InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our record.

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

变更历史

更多信息,参考变更详情。