Skip to main content

DescribeVpnConnections

Description

call the DescribeVpnConnections interface to query the created IPsec connection.

Request Method

POST

Request Path

/apsara/route/Vpc/DescribeVpnConnections

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
CustomerGatewayIdBODYstringNocgw-bp1mvj4g9kogw****ID of the user gateway.
PageSizeBODYintegerNo10The number of rows per page during paging query, the maximum value is 50, the default value is 10.
VpnGatewayIdBODYstringNovpn-bp1q8bgx4xnkx****VPN gateway ID.
PageNumberBODYintegerNo1page number of the list, the default value is 1.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env66-d01the region ID of the IPsec connection. you can obtain the region by calling DescribeRegions interface ID.
VpnConnectionIdBODYstringNovco-bp15oes1py4i6****ID of IPsec connection.
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
}

}