Modifies the spec of a router interface.
This API has been deprecated. We recommend migrating to Vpc(2016-04-28) - ModifyRouterInterfaceSpec for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyRouterInterfaceSpec |
update |
*RouterInterface
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
DescribeRegions operation to get the latest list of regions. |
|
| RouterInterfaceId |
string |
Yes |
|
|
| Spec |
string |
Yes |
Mini.2, Small.1, Middle.1, Middle.2, Large.1, Large.2, Xlarge.1, and Negative. |
|
| ClientToken |
string |
No |
|
|
| UserCidr |
string |
No |
InitiatingSide and the router interface is in the Idle or Active state. The CIDR block must be a /30 block in the 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16 address range. The client-side CIDR block cannot overlap with the CIDR block of the VPC where the router interface is located. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|
||
| Spec |
string |
|
|
| RequestId |
string |
|
Examples
Success response
JSON format
{
"Spec": "",
"RequestId": ""
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidSpec.ValudNotSupported | The specified Spec is not supported. | The specified Spec parameter is invalid. |
| 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 owener error. | The state of the instance is invalid. |
| 400 | InvalidInstance.StatusError | The router instance owener error. | The state of the instance is invalid. |
| 400 | InvalidOpposite.NotFound | The opposite not exit. | |
| 400 | InvalidRouterInterfaceSpec.Malformed | Specified RouterInterface spec is not valid. | |
| 400 | IllegalParam.chargeType | RouterInterface chargeType different. | |
| 404 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our record. | The specified router interface does not exist. Check whether the router interface ID is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.