Queries the logs of an IPsec server.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the IPsec server is created. You can call the DescribeRegions operation to obtain the region ID. | cn-hangzhou |
IpsecServerId | string | Yes | The ID of the IPsec server. | iss-2zei2n5q5zhirfh73**** |
From | integer | No | The beginning of the time range to query. The value must be a UNIX timestamp. For example, 1671003744 specifies 15:42:24 (UTC+8) on December 14, 2022. Note
If you specify From, you must also specify To or MinutePeriod.
| 1671003744 |
To | integer | No | The end of the time range to query. The value must be a unix timestamp. For example, 1671004344 specifies 15:52:24 (UTC+8) on December 14, 2022. Note
If you specify To, you must also specify From or MinutePeriod.
| 1671004344 |
MinutePeriod | integer | No | The interval at which log data is queried. Valid values: 1 to 10. Unit: minutes. Note
If both From and To are not specified, you must specify MinutePeriod.
| 10 |
PageNumber | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Valid values: 1 to 50. Default value: 10. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageSize": 10,
"PageNumber": 1,
"RequestId": "DEDAC5B1-9292-5BF7-BDDF-61BA58CFB2FB",
"Count": 10,
"IsCompleted": true,
"Data": [
"\"2022-12-15 17:00:43 [INFO]: : iss-2zei2n5q5zhirfh73**** del ipsec policy successfully\", \"2022-12-15 17:00:43 [INFO]: : iss-2zei2n5q5zhirfh73**** add ipsec policy successfully\""
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
404 | InvalidIpsecServerId.NotFound | The specified IPsec server ID (%s) does not exist. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|