Querying Events of a Specified EIP
Function
This API allows you to query events of a specified EIP in the last 24 hours. Events include cleaning and black hole events. The query delay is no more than 5 minutes.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/antiddos/{floating_ip_id}/logs
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
| floating_ip_id | Yes | String | ID corresponding to the EIP of a user. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| sort_dir | No | String | Values: The default value is desc. |
| limit | No | String | Maximum number of returned results. The value ranges from 1 to 100. This parameter is used together with offset. If neither limit nor offset is specified, all servers are returned. |
| offset | No | String | Offset. This field is valid only if limit is specified. |
| ip | No | String | EIP of a user. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
| Content-Type | Yes | String | Content-Type request header. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| total | Long | Total number of EIPs. |
| logs | Array of DailyLog objects | Abnormal event list. |
| Parameter | Type | Description |
|---|---|---|
| start_time | Long | Start time. |
| end_time | Long | End time. |
| status | Integer | Protection status. The options are as follows: |
| trigger_bps | Integer | Traffic at the triggering point. |
| trigger_pps | Integer | Packet rate at the triggering point. |
| trigger_http_pps | Integer | HTTP request rate at the triggering point. |
Example Requests
None
Example Responses
Status code: 200
Request succeeded.
{
"total" : 0,
"logs" : [ ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Request succeeded. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.