Modifies the name and description of a VRouter.


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: 


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.


Request example
Response example
  • XML format

  • JSON format


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