forked from docs/doc-exports
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
165 lines
10 KiB
HTML
165 lines
10 KiB
HTML
<a name="antiddos_02_0025"></a><a name="antiddos_02_0025"></a>
|
|
|
|
<h1 class="topictitle1">Querying the Traffic of a Specified EIP</h1>
|
|
<div id="body31938408"><div class="section" id="antiddos_02_0025__section37718351"><h4 class="sectiontitle">Functions</h4><p id="antiddos_02_0025__p36874222">This API allows you to query the traffic of a specified EIP in the last 24 hours. Traffic is detected in five-minute intervals.</p>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0025__section3920839"><h4 class="sectiontitle">URI</h4><ul id="antiddos_02_0025__ul34022005"><li id="antiddos_02_0025__li37762592">URI format<p id="antiddos_02_0025__p9855624151336"><a name="antiddos_02_0025__li37762592"></a><a name="li37762592"></a>GET /v1/{project_id}/antiddos/{floating_ip_id}/daily</p>
|
|
</li><li id="antiddos_02_0025__li14295716">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0025__table61552586" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0025__row9021289"><th align="left" class="cellrowborder" valign="top" width="25.28747125287471%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="antiddos_02_0025__p59635795">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.167683231676826%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="antiddos_02_0025__p65770110">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.798220177982195%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="antiddos_02_0025__p25778706">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.74662533746625%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="antiddos_02_0025__p7700405">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="antiddos_02_0025__row19753106"><td class="cellrowborder" valign="top" width="25.28747125287471%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0025__p56497743">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.167683231676826%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="antiddos_02_0025__p12914452">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.798220177982195%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="antiddos_02_0025__p39437706">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.74662533746625%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="antiddos_02_0025__p40337624">User ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0025__row27494304"><td class="cellrowborder" valign="top" width="25.28747125287471%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0025__p12446183">floating_ip_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.167683231676826%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="antiddos_02_0025__p1507865">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.798220177982195%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="antiddos_02_0025__p55028256">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.74662533746625%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="antiddos_02_0025__p28103780">ID corresponding to the EIP of a user</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0025__section35287558"><h4 class="sectiontitle">Request</h4><p id="antiddos_02_0025__p196631541878"><strong id="antiddos_02_0025__b527204515815">Request parameters</strong></p>
|
|
<p id="antiddos_02_0025__p12991228535">None</p>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0025__section49152572"><h4 class="sectiontitle">Response</h4><ul id="antiddos_02_0025__ul53678462"><li id="antiddos_02_0025__li13344112">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0025__table52988145" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0025__row52657628"><th align="left" class="cellrowborder" valign="top" width="18.51185118511851%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="antiddos_02_0025__p37409505">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.003300330033%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="antiddos_02_0025__p10271087">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="48.484848484848484%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="antiddos_02_0025__p26651693">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="antiddos_02_0025__row11303491"><td class="cellrowborder" valign="top" width="18.51185118511851%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="antiddos_02_0025__p43167578">data</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.003300330033%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="antiddos_02_0025__p6912921">Data structure</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.484848484848484%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="antiddos_02_0025__p23075753">Traffic in the last 24 hours</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="antiddos_02_0025__ul57196722"><li id="antiddos_02_0025__li45008451">Data structure description of <strong id="antiddos_02_0025__b84235270695528">data</strong>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0025__table2422875" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0025__row43246702"><th align="left" class="cellrowborder" valign="top" width="26%" id="mcps1.3.4.3.1.2.1.4.1.1"><p id="antiddos_02_0025__p13321984">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26.83%" id="mcps1.3.4.3.1.2.1.4.1.2"><p id="antiddos_02_0025__p29801234">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.17%" id="mcps1.3.4.3.1.2.1.4.1.3"><p id="antiddos_02_0025__p65089762">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="antiddos_02_0025__row37779350"><td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0025__p40228503">period_start</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.83%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0025__p46493">Long integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.17%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0025__p3766004">Start time</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0025__row33894036"><td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0025__p61062380">bps_in</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.83%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0025__p4101901152217">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.17%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0025__p52485536172447">Inbound traffic (bit/s)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0025__row17737502"><td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0025__p27451543">bps_attack</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.83%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0025__p51325772152221">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.17%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0025__p12659789">Attack traffic (bit/s)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0025__row46829245"><td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0025__p35072497">total_bps</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.83%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0025__p29869642152225">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.17%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0025__p13230834">Total traffic</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0025__row51968642"><td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0025__p48710492">pps_in</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.83%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0025__p10560569152228">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.17%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0025__p45362212">Inbound packet rate (number of packets per second)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0025__row5606727"><td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0025__p51491712">pps_attack</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.83%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0025__p1965784152232">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.17%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0025__p26779645">Attack packet rate (number of packets per second)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0025__row39690219"><td class="cellrowborder" valign="top" width="26%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0025__p60791181">total_pps</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.83%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0025__p27969958152235">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.17%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0025__p48219807">Total packet rate</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0025__section17457103655318"><h4 class="sectiontitle">Example</h4><ul id="antiddos_02_0025__ul178811332182913"><li id="antiddos_02_0025__li966416362293">Example request<pre class="codeblock" id="antiddos_02_0025__codeblock4813816415153">GET /v1/67641fe6886f43fcb78edbbf0ad0b99f/antiddos/1df977c2-fdc6-4483-bc1c-ba46829f57b8/daily</pre>
|
|
</li></ul>
|
|
</div>
|
|
<ul id="antiddos_02_0025__ul1249617368534"><li id="antiddos_02_0025__li449614369532">Example response<pre class="screen" id="antiddos_02_0025__screen34961836155313">{"data": [
|
|
{
|
|
"period_start": 1472713370609,
|
|
"bps_in": 0,
|
|
"bps_attack": 0,
|
|
"total_bps": 0,
|
|
"pps_in": 0,
|
|
"pps_attack": 0,
|
|
"total_pps": 0
|
|
},
|
|
|
|
|
|
...
|
|
|
|
|
|
{
|
|
"period_start": 1472713670609,
|
|
"bps_in": 0,
|
|
"bps_attack": 0,
|
|
"total_bps": 0,
|
|
"pps_in": 0,
|
|
"pps_attack": 0,
|
|
"total_pps": 0
|
|
}]
|
|
}</pre>
|
|
</li></ul>
|
|
<div class="section" id="antiddos_02_0025__section39719970"><h4 class="sectiontitle">Status Code</h4><p id="antiddos_02_0025__p31334966">See <a href="antiddos_02_0031.html">Status Code</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="antiddos_02_0016.html">Anti-DDoS APIs</a></div>
|
|
</div>
|
|
</div>
|
|
|