Skip to main content

AssociateRouteTable

Description

call the AssociateRouteTable interface to bind the created custom routing table to the switch in the same VPC.

Request Method

POST

Request Path

/apsara/route/Vpc/AssociateRouteTable

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
RouteTableIdBODYstringYesvtb-bp145q7glnuzdvzu2****ID of the routing table to be bound to the switch.
regionIdBODYstringYesNo sample value for this parameter.region id
VSwitchIdBODYstringYesvsw-25ncdvfaue4****ID of the switch to bind the routing table.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the VPC to which the routing table to bind the switch belongs. You can obtain the region ID by calling the DescribeRegions interface.
ClientTokenBODYstringNo02fb3da4-130e-11e9-8e44-0016e04115bEnsure 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

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
}

}