Modifies the name and description of a route table.

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 ModifyRouteTableAttributes

The name of this action. Value: ModifyRouteTableAttributes.

RegionId String  Yes cn-hangzhou

The region ID of the VPC to which the route table belongs. To query the region ID, call DescribeRegions.

RouteTableId String  Yes vtb-bp145q7glnuzdvzu2****

The ID of the target route table.

Description String  No The description of the route table.

The description of the route table.

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

RouteTableName String  No doctest

The name of the route table.

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  62172DD5-6BAC-45DF-8D44-cvbd41fg

The ID of the request.

Examples

Request example


http(s)://vpc.aliyuncs.com/? Action=ModifyRouteTableAttributes
&RegionId=cn-hangzhou
&RouteTableId=vtb-bp145q7glnuzdvzu2****
&<CommonParameters>

Response example

XML format

<ModifyRouteTableAttributesResponse>
      <RequestId>62172DD5-6BAC-45DF-8D44-cvbd41fg</RequestId>
</ModifyRouteTableAttributesResponse>

JSON format

{
	"RequestId":"62172DD5-6BAC-45DF-8D44-cvbd41fg"
}

Errors

HTTP status code Error code Error message Description
403 Forbbiden User not authorized to operate on the specified resource. You are not authorized to operate on this resource.

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