Modifies the name and description of a VRouter.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyVRouterAttribute

The operation that you want to perform. Set the value to ModifyVRouterAttribute.

VRouterId String Yes vrt-bp1lhl0taikrteen8****

The ID of the VRouter.

RegionId String Yes cn-hangzhou

The ID of the region where the VBR is deployed.

VRouterName String No VRouter-1

The name of the VRouter.

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

Description String No My VRouter

The description of the VRouter.

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

Response parameters

Parameter Type Example Description
RequestId String 0ED8D006-F706-4D23-88ED-E11ED28DCAC0

The ID of the request.

Examples

Sample requests

https://vpc.aliyuncs.com/?Action=ModifyVRouterAttribute
&VRouterId=vrt-bp1lhl0taikrteen8****
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

HttpCode Error code Error message Description
404 InvalidVRouterId.NotFound Specified virtual router does not exist. The error message returned because the specified VRouter does not exist. You can check whether the configuration of the specified VRouter is valid.
400 InvalidVRouterName.Malformed Specified virtual router name is not valid. The error message returned because the name format of the specified VRouter is invalid.
400 InvalidVRouterDiscription.Malformed Specified virtual router description is not valid. The error message returned because the description format of the specified VRouter is invalid.
400 MissingParameter Miss mandatory parameter. The error message returned because the required parameters are missing. Check whether you have set all required parameters before you call this operation.

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