Help Center/ Anti-DDoS Service/ API Reference/ API/ Anti-DDoS Management/ Querying Events of a Specified EIP
Updated on 2024-10-11 GMT+08:00

Querying Events of a Specified EIP

Function

Querying Events of a Specified EIP

URI

GET /v1/{project_id}/antiddos/{floating_ip_id}/logs

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

poject id

Minimum: 32

Maximum: 64

floating_ip_id

Yes

String

ID corresponding to the EIP of a user

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

sort_dir

No

String

Possible values: desc: indicates that query results are given and sorted by time in descending order. asc: indicates that query results are given and sorted by time in ascending order.

limit

No

String

Limit of number of returned results or the maximum number of returned results of a query.

offset

No

String

Offset. This parameter is valid only when used together with the limit parameter.

ip

No

String

IP address. Both IPv4 and IPv6 addresses are supported. For example, if you enter ?ip=192.168, the defense status of EIPs corresponding to 192.168.111.1 and 10.192.168.8 is returned.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

token

Minimum: 32

Maximum: 2097152

Content-Type

Yes

String

Content-Type

Default: application/json;charset=utf8

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

total

Long

Total number of EIPs

logs

Array of DailyLog objects

List of events

Table 5 DailyLog

Parameter

Type

Description

start_time

Long

Start time

end_time

Long

End time

status

Integer

Defense status

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

OK

{
  "total" : 0,
  "logs" : [ ]
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.