Queries the details of a specified VPN gateway by calling the DescribeVpnGateway operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeVpnGateway |
get |
*VpnGateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the VPN gateway. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| VpnGatewayId |
string |
Yes |
The instance ID of the VPN gateway. |
vpn-bp1r3v1xqkl0w519g**** |
| IncludeReservationData |
boolean |
No |
Specifies whether to include pending order data. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| VpnType |
string |
The type of the VPN gateway. Value: Normal, which indicates a standard VPN gateway. |
Normal |
| Status |
string |
The status of the VPN gateway. Valid values:
|
init |
| VpcId |
string |
The ID of the VPC to which the VPN gateway belongs. |
vpc-bp19m2yx1m5q0avyq**** |
| SslMaxConnections |
integer |
The maximum number of concurrent SSL-VPN connections. |
5 |
| Spec |
string |
The bandwidth specification of the VPN gateway. Unit: Mbit/s. |
5 |
| InternetIp |
string |
|
47.22.XX.XX |
| CreateTime |
integer |
The timestamp when the VPN gateway was created. Unit: milliseconds. The timestamp follows the UNIX time format, which represents the total number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC. |
1495382400000 |
| AutoPropagate |
boolean |
Indicates whether the routing automatic propagation feature is enabled for the VPN gateway. Valid values:
|
true |
| ChargeType |
string |
The billing method. Value: POSTPAY: pay-as-you-go billing method. |
中国站示例值:Prepay,国际站示例值:POSTPAY |
| VpnGatewayId |
string |
The instance ID of the VPN gateway. |
vpn-bp1r3v1xqkl0w519g**** |
| Tag |
string |
The labels automatically generated by the system for the VPN gateway.
|
{\"VpnEnableBgp\":\"true\",\"VisuallySsl\":\"true\",\"PbrPriority\":\"true\",\"VpnNewImage\":\"true\",\"description\":\"转发1.3.24\",\"VpnVersion\":\"v1.2.4\",\"IDaaSNewVersion\":\"true\"} |
| IpsecVpn |
string |
Indicates whether the IPsec-VPN feature is enabled. Valid values:
|
enable |
| EndTime |
integer |
The expiration timestamp of the VPN gateway. Unit: milliseconds. The timestamp follows the UNIX time format, which represents the total number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC. |
1544666102000 |
| VSwitchId |
string |
The ID of the vSwitch to which the VPN gateway belongs. |
vsw-bp1dmzugdikc6hdgx**** |
| RequestId |
string |
The request ID. |
27E4E088-8DE0-4672-BF5C-0A412389DB9E |
| Description |
string |
The description of the VPN gateway. |
vpngatewaydescription |
| EnableBgp |
boolean |
The enabling status of the BGP feature for the VPN gateway. Valid values:
|
true |
| BusinessStatus |
string |
The payment status of the VPN gateway. Valid values:
|
Normal |
| SslVpn |
string |
The enabling status of the SSL-VPN feature. Valid values:
|
enable |
| Name |
string |
The name of the VPN gateway. |
vpngatewayname |
| ReservationData |
object |
The pending order data. Note
This parameter is returned only when IncludeReservationData is set to true. |
|
| Status |
string |
The status of the pending order. Valid values:
|
1 |
| ReservationOrderType |
string |
The type of the pending order. Valid values:
|
TEMP_UPGRADE |
| ReservationIpsec |
string |
The enabling status of the IPsec-VPN feature for the pending order. Valid values:
|
enable |
| ReservationSpec |
string |
The bandwidth specification of the pending order. Unit: Mbit/s. |
5 |
| ReservationSsl |
string |
The enabling status of the SSL-VPN feature for the pending order. Valid values:
|
enable |
| ReservationMaxConnections |
integer |
The maximum number of concurrent SSL-VPN connections of the pending order. |
5 |
| ReservationEndTime |
string |
If the pending order type is TEMP_UPGRADE (temporary upgrade), this parameter indicates the revert time for the temporary upgrade. If the pending order type is RENEWCHANGE (renewal with specification change) or RENEW (renewal), this parameter indicates the effective period when the renewal or renewal with specification change takes effect. |
2020-07-20T16:00:00Z |
| Tags |
object |
||
| Tag |
array<object> |
The list of tags bound to the VPN gateway instance. |
|
|
object |
The list of tags bound to the VPN gateway instance. |
||
| Key |
string |
Tag key. |
aaa |
| Value |
string |
The tag value. |
bbb |
| NetworkType |
string |
The network type of the VPN gateway.
|
public |
| DisasterRecoveryInternetIp |
string |
The second IP address assigned by the system to the VPN gateway instance for creating IPsec-VPN connections. This parameter is returned only for VPN gateway instances that support creating dual-tunnel IPsec-VPN connections. |
47.91.XX.XX |
| DisasterRecoveryVSwitchId |
string |
The ID of the second vSwitch associated with the VPN gateway instance. This parameter is returned only for VPN gateway instances that support creating dual-tunnel IPsec-VPN connections. |
vsw-p0w95ql6tmr2ludkt**** |
| SslVpnInternetIp |
string |
The IP address of the SSL-VPN connection. This parameter is returned only when the SSL-VPN feature is enabled on a VPN gateway instance of the public network type that supports creating dual-tunnel IPsec-VPN connections. |
47.74.XX.XX |
| ResourceGroupId |
string |
The ID of the resource group to which the VPN gateway belongs. You can call the ListResourceGroups operation to query resource group information. |
rg-acfmzs372yg**** |
| EniInstanceIds |
object |
||
| EniInstanceId |
array |
The list of Elastic Network Interfaces (ENIs) created by the system for the VPN gateway instance. |
|
|
string |
The ENI ID. This parameter is returned only for VPN gateway instances that support creating dual-tunnel IPsec-VPN connections. |
eni-7xvcxgmd4y2ypibn**** |
|
| GatewayType |
string |
The type of the VPN gateway. Valid values:
|
Enhanced.SiteToSite |
Examples
Success response
JSON format
{
"VpnType": "Normal",
"Status": "init",
"VpcId": "vpc-bp19m2yx1m5q0avyq****",
"SslMaxConnections": 5,
"Spec": "5",
"InternetIp": "47.22.XX.XX",
"CreateTime": 1495382400000,
"AutoPropagate": true,
"ChargeType": "中国站示例值:Prepay,国际站示例值:POSTPAY",
"VpnGatewayId": "vpn-bp1r3v1xqkl0w519g****",
"Tag": "{\\\"VpnEnableBgp\\\":\\\"true\\\",\\\"VisuallySsl\\\":\\\"true\\\",\\\"PbrPriority\\\":\\\"true\\\",\\\"VpnNewImage\\\":\\\"true\\\",\\\"description\\\":\\\"转发1.3.24\\\",\\\"VpnVersion\\\":\\\"v1.2.4\\\",\\\"IDaaSNewVersion\\\":\\\"true\\\"}",
"IpsecVpn": "enable",
"EndTime": 1544666102000,
"VSwitchId": "vsw-bp1dmzugdikc6hdgx****",
"RequestId": "27E4E088-8DE0-4672-BF5C-0A412389DB9E",
"Description": "vpngatewaydescription",
"EnableBgp": true,
"BusinessStatus": "Normal",
"SslVpn": "enable",
"Name": "vpngatewayname",
"ReservationData": {
"Status": "1",
"ReservationOrderType": "TEMP_UPGRADE",
"ReservationIpsec": "enable",
"ReservationSpec": "5",
"ReservationSsl": "enable",
"ReservationMaxConnections": 5,
"ReservationEndTime": "2020-07-20T16:00:00Z"
},
"Tags": {
"Tag": [
{
"Key": "aaa",
"Value": "bbb"
}
]
},
"NetworkType": "public",
"DisasterRecoveryInternetIp": "47.91.XX.XX",
"DisasterRecoveryVSwitchId": "vsw-p0w95ql6tmr2ludkt****",
"SslVpnInternetIp": "47.74.XX.XX",
"ResourceGroupId": "rg-acfmzs372yg****",
"EniInstanceIds": {
"EniInstanceId": [
"eni-7xvcxgmd4y2ypibn****"
]
},
"GatewayType": "Enhanced.SiteToSite"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. | The specified VPN gateway does not exist. Check whether the specified VPN gateway is valid. |
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | |
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
| 404 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.