Skip to main content

DescribeVRouters

Description

call the DescribeVRouters interface to query the list of routers in the specified region.

Request Method

POST

Request Path

/apsara/route/Vpc/DescribeVRouters

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
VRouterIdBODYstringNovrt-bp1lhl0taikrteen****ID of router to query.
PageSizeBODYintegerNo10The number of rows per page during paging query, the maximum value is 50, the default value is 10.
PageNumberBODYintegerNo1page number of the list, the default value is 1.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env17-d01ID of the region to which the router to be queried belongs. You can obtain the region ID by calling the DescribeRegions interface.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
VRoutersarray of vrouterNo sample value for this parameter.router details.
Descriptionstringabcrouter description information.
PageSizeinteger10Number of entries per page.
RequestIdstring0ED8D006-F706-4D23-88ED-E11ED28DCAC0request ID.
VRouterNo sample value for this parameter.No description for this parameter.
VRouterNamestringdoctestthe name of the router.
VRouterIdstringvrt-rj98khsezfqpjrxmv****router ID.
TotalCountinteger1Number of entries in the list.
VpcIdstringvpc-rj905wotv6y030t1****ID of the VPC to which the router belongs.
RouteTableIdslist{"RouteTableId":["vtb-rj9ybe3y0u41mmjsp****"]}ID of routing table in router.
PageNumberinteger1current page number.
CreationTimestring2018-03-22T07:46:20Zthe creation time of the router.
RegionIdstringcn-hangzhouthe region to which the router belongs.

Example

Successful Response example

{
"VRouters":"",
"Description":"abc",
"PageSize":"10",
"RequestId":"0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
"VRouter":"",
"VRouterName":"doctest",
"VRouterId":"vrt-rj98khsezfqpjrxmv****",
"TotalCount":"1",
"VpcId":"vpc-rj905wotv6y030t1****",
"RouteTableIds":
{
"RouteTableId":
[
"vtb-rj9ybe3y0u41mmjsp****"
]

},
"PageNumber":"1",
"CreationTime":"2018-03-22T07:46:20Z",
"RegionId":"cn-hangzhou"
}

Failed Response example

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

}