This API is used to create a VPN connection monitor to perform health check between gateways. After a VPN connection monitor is created, the VPN gateway sends probe packets to the customer gateway to collect statistics about the round-trip delay and packet loss rate, thereby monitoring quality of VPN connections between the gateways.
For details, see Calling APIs.
POST /v5/{project_id}/connection-monitors
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
project_id |
String |
Yes |
Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID. |
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
connection_monitor |
Yes |
Specifies the connection_monitor object. |
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
vpn_connection_id |
String |
Yes |
Specifies the ID of the VPN connection to be monitored. You can obtain VPN connection IDs by querying the VPN connection list. |
POST https://{Endpoint}/v5/{project_id}/connection-monitors
{
"connection_monitor": {
"vpn_connection_id": "cae286f2-demo-a8df-va86-e22416ca1220"
}
}
Returned status code 201: successful operation
Parameter |
Type |
Description |
|---|---|---|
connection_monitor |
ConnectionMonitorInfo object |
Specifies the connection_monitor object. |
request_id |
String |
Specifies a request ID. |
Parameter |
Type |
Description |
|---|---|---|
id |
String |
|
vpn_connection_id |
String |
|
type |
String |
|
source_ip |
String |
Specifies the source address to be monitored. |
destination_ip |
String |
Specifies the destination address to be monitored. |
proto_type |
String |
|
{
"connection_monitor":{
"id":"76f64229-demo-a8df-va86-3907e2815b6d",
"vpn_connection_id":"cae286f2-demo-a8df-va86-e22416ca1220",
"type":"gateway",
"source_ip":"88.***.***.60",
"destination_ip":"88.***.***.32",
"proto_type":"icmp"
},
"request_id": "bd37d16d-387c-41ab-a180-01b649f73590"
}
For details, see Status Codes.