Queries route types.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetVpcRouteEntrySummary | The operation that you want to perform. Set the value to GetVpcRouteEntrySummary. |
VpcId | String | Yes | vpc-bp15zckdt37pq72**** | The ID of the virtual private cloud (VPC) to which the route table belongs. |
RouteTableId | String | No | vtb-bp145q7glnuzdvzu2**** | The ID of the route table that you want to query. |
RouteEntryType | String | Yes | custom | The route type. Valid values:
|
RegionId | String | Yes | cn-hangzhou | The region ID of the route table. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | DC668356-BCB4-42FD-9BC3-FA2B2E04B634 | The request ID. |
RouteEntrySummarys | Array of RouteEntrySummarys | The information about the routes in the route tables. |
|
RouteTableId | String | vtb-bp145q7glnuzdvzu2**** | The ID of the route table. |
EntrySummarys | Array of EntrySummarys | The information about the routes of different types in one route table. |
|
RouteEntryType | String | Custom | The route type. Valid values:
Note The system routes returned are in the system route table. |
Count | Integer | 10 | The total number of entries returned. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetVpcRouteEntrySummary
&VpcId=vpc-bp15zckdt37pq72****
&RouteTableId=vtb-bp145q7glnuzdvzu2****
&RouteEntryType=Custom
&RegionId=cn-hangzhou
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetVpcRouteEntrySummaryResponse>
<RequestId>DC668356-BCB4-42FD-9BC3-FA2B2E04B634</RequestId>
<RouteEntrySummarys>
<RouteTableId>vtb-bp145q7glnuzdvzu2****</RouteTableId>
<EntrySummarys>
<RouteEntryType>Custom</RouteEntryType>
<Count>10</Count>
</EntrySummarys>
</RouteEntrySummarys>
</GetVpcRouteEntrySummaryResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "DC668356-BCB4-42FD-9BC3-FA2B2E04B634",
"RouteEntrySummarys" : [ {
"RouteTableId" : "vtb-bp145q7glnuzdvzu2****",
"EntrySummarys" : [ {
"RouteEntryType" : "Custom",
"Count" : 10
} ]
} ]
}
Error codes
For a list of error codes, visit the API Error Center.