查询VPN连接日志
功能介绍
根据连接ID,查询指定的VPN连接日志。
调用方法
请参见如何调用API。
URI
GET /v5/{project_id}/vpn-connection/{vpn_connection_id}/log
名称 |
类型 |
是否必选 |
说明 |
---|---|---|---|
project_id |
String |
是 |
项目ID,可以通过获取项目ID获取项目ID。 |
vpn_connection_id |
String |
是 |
VPN连接ID。 |
响应消息
- 响应参数
返回状态码为 200: successful operation。
表2 响应Body参数列表 名称
类型
描述
logs
Array of Log objects
log对象
request_id
String
请求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" }
状态码
请参见状态码。