DescribeRegions
Description
call the DescribeRegions interface to query the available regions.
Request Method
POST
Request Path
/apsara/route/Vpc/DescribeRegions
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ProductType | BODY | string | No | ECS | cloud product type. |
AcceptLanguage | BODY | string | No | zh-CN | return value language, value: zh-CN(default): Chinese. en-US: English. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | 611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F | request ID. |
Region | No sample value for this parameter. | No description for this parameter. | |
Regions | array of region | No sample value for this parameter. | set of available regions. |
RegionId | string | cn-qingdao-env17-d01 | region ID. |
RegionEndpoint | string | vpc.aliyuncs.com | Endpoint of regional services. |
LocalName | string | North China 1 | region name. |
Example
Successful Response example
{
"RequestId":"611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F",
"Region":"",
"Regions":"",
"RegionId":"cn-qingdao-env17-d01",
"RegionEndpoint":"vpc.aliyuncs.com",
"LocalName":"North China 1"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}
title: DescribeRouteEntryList
sidebar_position: 3
DescribeRouteEntryList
Description
call the DescribeRouteEntryList to query the list of routing entries.
Request Method
POST
Request Path
/apsara/route/Vpc/DescribeRouteEntryList
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
RouteTableId | BODY | string | Yes | vtb-bp1r9pvl4xen8s9ju**** | ID of the routing table to query. |
MaxResult | BODY | integer | No | 50 | Paging size, value range:20~100, the default value is 50. |
NextToken | BODY | string | No | caeba0bbb2be03f84eb48b699f0a4**** | The next query starts Token. |
IpVersion | BODY | string | No | IPv4 | IP protocol version, value: IPv4:IPv4 protocol. IPv6:IPv6 protocol. Description Only China Station supports IPv6 protocol. |
RouteEntryType | BODY | string | No | System | type of route entry, value: Custom: custom route. System: system routing. |
NextHopId | BODY | string | No | vpn-bp10zyaph5cc8b7c7**** | next hop instance ID. |
DestinationCidrBlock | BODY | string | No | 192.168.2.0/24 | The destination network segment of the route entry supports IPv4 and IPv6 network segments. Note Only China Station supports IPv6 network segments. |
version | BODY | string | No | 2016-01-01 | version of api |
RouteEntryId | BODY | string | No | rte-bp1mnnr2al0naomnp**** | ID of the route entry to query. |
NextHopType | BODY | string | No | Instance | next hop type, value: Instance:ECS instance. HaVip: highly available virtual IP. VpnGateway:VPN gateway. NatGateway:NAT gateway. NetworkInterface: auxiliary flexible network card. RouterInterface: router interface. IPv6Gateway:IPv6 gateway. Description Only China Station supports IPv6 gateway as the next hop. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RouteEntryName | BODY | string | No | abc | the name of the route entry. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | The region ID of the routing table where the route entry is located. You can obtain the region ID by calling the DescribeRegions interface. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}