Skip to main content

CreateRouteTable

Description

call the CreateRouteTable interface to create a custom routing table.

Request Method

POST

Request Path

/apsara/route/Vpc/CreateRouteTable

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
DescriptionBODYstringNoabcrouting table description information. The description length is 2 to 256 characters and must start with a letter or Chinese, but cannot be http:// or https://.
VpcIdBODYstringYesvpc-bp1qpo0kug3a20qqe****VPC ID to which the custom routing table belongs.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the VPC to which the routing table belongs. you can obtain the region by calling DescribeRegions interface ID.
ClientTokenBODYstringNo02fb3da4-130e-11e9-8e44-0016e04****Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only supports ASCII characters and cannot exceed 64 characters.
versionBODYstringNo2016-01-01version of api
RouteTableNameBODYstringNomyRouteTablethe name of the routing table. The name must be 2 to 128 characters in length and must start with a letter or Chinese. It can contain numbers, periods (.), underscores (_), and hyphens (-). But you cannot use http:// or https:// start.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}