Querying IPsec VPN Connections¶
Function¶
This API is used to query IPsec VPN connections.
URI¶
GET /v2.0/vpn/ipsec-site-connections
Request¶
Table 1 describes the request parameter.
Parameter | Type | Mandatory | Description |
---|---|---|---|
fields | String | No | Controls which parameters are returned. If this parameter is not specified, all parameters will be returned. |
Response¶
Table 2 describes the response parameters.
Parameter | Type | Description |
---|---|---|
peer_cidrs | List<String> | Deprecated parameter Specifies valid CIDR blocks of a tenant. The format is <net_address > / < prefix >. |
mtu | Integer | Specifies the maximum transmission unit to address fragmentation. |
peer_ep_group_id | String | Specifies the endpoint group ID (tenant CIDR blocks). |
ikepolicy_id | String | Specifies the IKE policy ID. |
dpd | Object | DPD is used to detect whether the peer is alive. For details, see Table 3. |
route_mode | String | Specifies the route advertising mode. The default mode is static. |
peer_address | String | Specifies the remote gateway address. |
peer_id | String | Specifies the remote gateway ID. |
id | String | Specifies the ID of the IPsec VPN connection. |
description | String | Provides supplementary information about the IPsec VPN connection. |
project_id | String | Specifies the project ID. |
vpnservice_id | String | Specifies the VPN service ID. |
local_ep_group_id | String | Specifies the endpoint group ID (VPC subnets). |
status | String | Specifies the status of the IPsec VPN connection, which can be ACTIVE, DOWN, BUILD, ERROR, PENDING_CREATE, PENDING_UPDATE, or PENDING_DELETE. |
psk | String | Specifies the pre-shared key. The key
|
initiator | String | Specifies whether this VPN can only respond to connections or both respond to and initiate connections. The value can be bi-directional or response-only. |
name | String | Specifies the name of the IPsec VPN connection. |
admin_state_up | Boolean | Specifies the administrative status, which can be true or false. |
tenant_id | String | Specifies the project ID. |
ipsecpolicy_id | String | Specifies the IPsec policy ID. |
auth_mode | String | Specifies the authentication mode. The default mode is psk. |
order_id | String | Specifies the ID of a yearly/monthly order. |
product_id | String | Specifies the ID of a product that is billed on a yearly/monthly basis. |
created_at | String | Specifies the time when the IPsec connection was created. The time is in YYYY-mm-dd HH:MM:SS.ffffff format. |
tags | List<Object> | Specifies the tags. |
ipsec_site_connections | List<Object> | Specifies the VPN connection list. |
Parameter | Type | Description |
---|---|---|
action | String | Specifies the DPD action, which can be clear, hold, restart, disabled, or restart-by-peer. The default action is hold. |
interval | Integer | Specifies the DPD interval in seconds. The default interval is 30 seconds. |
timeout | Integer | Specifies the DPD timeout. The default timeout is 120 seconds. |
Example request¶
GET /v2.0/vpn/ipsec-site-connections
Example response¶
{
"ipsec_site_connections" : [ {
"status" : "PENDING CREATE",
"psk" : "secret",
"initiator" : "bi-directional",
"name" : "vpnconnection1",
"admin_state_up" : true,
"tenant_id" : "10039663455a446d8ba2cbb058b0f578",
"auth_mode" : "psk",
"peer_cidrs" : [ ],
"mtu" : 1500,
"peer_ep_group_id" : "9ad5a7e0-6dac-41b4-b20d-a7b8645fddf1",
"ikepolicy_id" : "9b00d6b0-6c93-4ca5-9747-b8ade7bb514f",
"vpnservice_id" : "5c561d9d-eaea-45f6-ae3e-08d1a7080828",
"dpd" : {
"action" : "hold",
"interval" : 30,
"timeout" : 120
},
"route_mode" : "static",
"ipsecpolicy_id" : "e6e23d0c-9519-4d52-8ea4-5b1f96d857b1",
"local_ep_group_id" : "3e1815dd-e212-43d0-8f13-b494fa553e68",
"peer_address" : "172.24.4.226",
"peer_id" : "172.24.4.226",
"id" : "851f280f-5639-4ea3-81aa-e298525ab74b",
"description" : "",
"order_id": "",
"product_id": "",
"created_at": "2020-08-05 12:39:35.921257",
"tags": []
} ]
}
Returned Values¶
For details, see Common Returned Values.