Modifies the name and description of a VRouter.

Make the API call

You can use OpenAPI Explorer to make API calls, search for API calls, perform debugging, and generate SDK example code.

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 target VRouter belongs.

VRouterId String  Yes vrt-bp1lhl0taikrteen8****

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 must start with a letter and can contain numbers, periods (.), underscores (_), and hyphens (-). It 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-bp1lhl0taikrteen8****
&<CommonParameters>

Response example

XML format

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

JSON format

{
	"RequestId":"0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}

Errors

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. One or more required parameters are missing.

For a list of error codes, visit the API Error Center.