This API is used to query logs of a VPN connection with a specified connection ID.
For details, see Calling APIs.
GET /v5/{project_id}/vpn-connection/{vpn_connection_id}/log
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. |
vpn_connection_id |
String |
Yes |
Specifies a VPN connection ID. |
Returned status code 200: successful operation
Parameter |
Type |
Description |
|---|---|---|
logs |
Array of Log objects |
Specifies the log object. |
request_id |
String |
Specifies a request ID. |
{
"logs": [
{
"time": 1735024112,
"raw_message": "2024-12-24T07:08:32.730275+00:00 host-xx-xx-xx-xx ipsec_ike[30085]: [xx.xx.xx.xx] IPSec tunnel negotiation fails. (IfIndex=[207], PolicyName=[], SeqNum=[0], PeerAddress=[xx.xx.xx.xx], PeerPort=[500], Reason=[version mismatch])"
}
],
"request_id": "f15d2c621593f2018c23eb1d49e3605e"
}
For details, see Status Codes.