Skip to main content

DescribeRegions

Description

call the DescribeRegions interface to query the available regions.

Request Method

POST

Request Path

/apsara/route/Vpc/DescribeRegions

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
ProductTypeBODYstringNoECScloud product type.
AcceptLanguageBODYstringNozh-CNreturn value language, value: zh-CN(default): Chinese. en-US: English.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstring611CB80C-B6A9-43DB-9E38-0B0AC3D9B58Frequest ID.
RegionNo sample value for this parameter.No description for this parameter.
Regionsarray of regionNo sample value for this parameter.set of available regions.
RegionIdstringcn-qingdao-env17-d01region ID.
RegionEndpointstringvpc.aliyuncs.comEndpoint of regional services.
LocalNamestringNorth China 1region 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

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

NameLocationTypeRequiredSample valueDescription
RouteTableIdBODYstringYesvtb-bp1r9pvl4xen8s9ju****ID of the routing table to query.
MaxResultBODYintegerNo50Paging size, value range:20~100, the default value is 50.
NextTokenBODYstringNocaeba0bbb2be03f84eb48b699f0a4****The next query starts Token.
IpVersionBODYstringNoIPv4IP protocol version, value: IPv4:IPv4 protocol. IPv6:IPv6 protocol. Description Only China Station supports IPv6 protocol.
RouteEntryTypeBODYstringNoSystemtype of route entry, value: Custom: custom route. System: system routing.
NextHopIdBODYstringNovpn-bp10zyaph5cc8b7c7****next hop instance ID.
DestinationCidrBlockBODYstringNo192.168.2.0/24The destination network segment of the route entry supports IPv4 and IPv6 network segments. Note Only China Station supports IPv6 network segments.
versionBODYstringNo2016-01-01version of api
RouteEntryIdBODYstringNorte-bp1mnnr2al0naomnp****ID of the route entry to query.
NextHopTypeBODYstringNoInstancenext 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.
regionIdBODYstringYesNo sample value for this parameter.region id
RouteEntryNameBODYstringNoabcthe name of the route entry.
RegionIdBODYstringYescn-qingdao-env17-d01The 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

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
}

}