Modify the specification of a router interface.

After calling the API, the router interface changes to the Activating status. After the activation, the router interface changes to the Active status.
Note You cannot modify the specification of a delinquent router interface.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value: 

ModifyRouterInterfaceSpec

RegionId String Yes

The region of the router interface.

You can obtain the region ID by calling the DescribeRegions API.

RouterInterfaceId String Yes

The ID of the router interface.

Spec String Yes

The specification of the router interface.

ClientToken String No

A client token used to guarantee the idempotence of requests.

This parameter value is generated by the client and must be unique. It cannot exceed 64 ASCII characters.

Response parameters

Name Type Description
RequestId String The ID of the request.
Spec String The specification of the router interface.

Examples

Request example

https://vpc.aliyuncs.com/?Action=ModifyRouterInterfaceSpec
&RegionId=cn-hangzhou
&Spec=Middle. 2
&RouterInterfaceId=ri-2ze7fbuohm7pcxxxxxx
&CommonParameters
Response example
  • XML format

    <? xml version="1.0" encoding="UTF-8"? >
                            <ModifyRouterInterfaceSpecResponse>
        <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
        <Spec>Middle. 2</Spec>
                            </ModifyRouterInterfaceSpecResponse>
  • JSON format

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