Querying VPN Connection Logs
Function
This API is used to query logs of a VPN connection with a specified connection ID.
Calling Method
For details, see Calling APIs.
URI
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. |
Request
Response
- Response parameters
Returned status code 200: successful operation
Table 2 Parameters in the response body Parameter
Type
Description
logs
Array of Log objects
Specifies the log object.
request_id
String
Specifies a request ID.
- Example response
{ "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" }
Status Codes
For details, see Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot