Modifies the specification of a router interface.

After you call this action, the router interface status changes to Activating. Next, after the activation is completed, the router interface status changes to Active.
Note The specification for a router interface under an account with an insufficient balance cannot modified.

Debug

By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes ModifyRouterInterfaceSpec

The name of this action. Value: 

ModifyRouterInterfaceSpec

RegionId String Yes cn-hangzhou The ID of the region to which the router interface belongs.

To query the region ID, call DescribeRegions.

RouterInterfaceId String Yes ri-2zeo3xzyf38r4urzdpvfs

The ID of the router interface.

Spec String Yes Large

The specification of the router interface.

ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

A client token used to guarantee the idempotence of requests.

This parameter value is generated by the client and must be unique. It must be 1 to 64 ASCII characters in length.

Response parameters

Parameter Type Example value Description
RequestId String 4EC47282-1B74-4534-BD0E-403F3EE64CAF The ID of the request.
Spec String Small.1 The specification of the router interface.

Examples

Request example


http(s)://vpc.aliyuncs.com/?Action=ModifyRouterInterfaceSpec
&RegionId=cn-hangzhou
&RouterInterfaceId=ri-2zeo3xzyf38r4urzdpvfs
&Spec=Large
&<CommonParameters>
Response example
  • XML format

    <ModifyRouterInterfaceSpecResponse>
      <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
      <Spec>Middle.2</Spec>
    </ModifyRouterInterfaceSpecResponse>
    
  • JSON format

    {
    	"Spec":"Middle.2",
    	"RequestId":"0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
    }

Error codes

HTTP status code Error code Error message Description
400 InvalidSpec.ValudNotSupported The specified Spec is not supported. The specified specification is not supported.
404 InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our record. The specified router interface does not exist.
400 InvalidInstanceOwner.Error The router instance owener error. The router does not belong to your account.
400 InvalidInstance.StatusError The router instance owener error. The status of the router interface is invalid.

See common error codes