Modifies the name and description of a VRouter.

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 ModifyVRouterAttribute

The name of this action. Value: 

ModifyVRouterAttribute

RegionId String Yes cn-hangzhou

The ID of the region to which the VPC belongs.

VRouterId String Yes vrt-bp1lhl0taikrteen80oxx

The ID of the VRouter.

Description String No My VRouter

The description of the VRouter.

The description must be 2 to 256 characters in length. It must start with a letter and cannot start with http:// or https://.

VRouterName String No VRouter-1

The name of the VRouter.

The name must be 2 to 128 characters in length. It can contain letters, numbers, periods (.), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

Response parameters

Parameter Type Example value Description
RequestId String 0ED8D006-F706-4D23-88ED-E11ED28DCAC0  The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=ModifyVRouterAttribute
&VRouterId=vrt-bp1lhl0taikrteen80oxx
&<CommonParameters>
Response example
  • XML format

    <ModifyVRouterAttributeResponse>
      <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
    </ModifyVRouterAttributeResponse>
    
  • JSON format

    {
    	"RequestId":"0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
    	"RouteTableId":"vtb-bp145q7glnuzdvzu21pom",
    	"VpcId":"vpc-bp15zckdt37pq72zvw30k",
    	"VRouterId":"vrt-bp1lhl0taikrteen80oxx"
    }

Error codes

HTTP status code Error code Error message Description
404 InvalidVRouterId.NotFound Specified virtual router does not exist. The specified VRouter does not exist.
400 InvalidVRouterName.Malformed Specified virtual router name is not valid. The VRouter name is invalid.
400 InvalidVRouterDiscription.Malformed Specified virtual router description is not valid. The VRouter description is invalid.
400 MissingParameter Miss mandatory parameter. Required parameters are missing.

See common error codes