Querying the Traffic of a Specified EIP
Function
You can query the traffic of a specified EIP in the last 24 hours. Traffic is detected at five-minute intervals.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/antiddos/{floating_ip_id}/daily
|
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 |
|---|---|---|---|
|
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 |
|---|---|---|
|
data |
Array of DailyData objects |
Traffic in the last 24 hours. |
|
Parameter |
Type |
Description |
|---|---|---|
|
period_start |
Long |
Start time. |
|
bps_in |
Integer |
Ingress traffic (bit/s). |
|
bps_attack |
Long |
Attack traffic (bit/s). |
|
total_bps |
Long |
Total traffic. |
|
pps_in |
Long |
Number of inbound packets per second. |
|
pps_attack |
Long |
Number of attack packets per second. |
|
total_pps |
Long |
Total inbound packet rate. |
Example Requests
None
Example Responses
Status code: 200
Request succeeded.
{
"data" : [ {
"period_start" : 1606188642720,
"bps_in" : 0,
"bps_attack" : 0,
"total_bps" : 0,
"pps_in" : 0,
"pps_attack" : 0,
"total_pps" : 0
} ]
}
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.