doc-exports/docs/antiddos/api-ref/antiddos_02_0020.html
Li, Qiao fe55ee788f antiddos api 1115
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Li, Qiao <qiaoli@huawei.com>
Co-committed-by: Li, Qiao <qiaoli@huawei.com>
2022-11-16 13:51:25 +00:00

125 lines
8.7 KiB
HTML

<a name="antiddos_02_0020"></a><a name="antiddos_02_0020"></a>
<h1 class="topictitle1">Querying Configured Anti-DDoS Defense Policies</h1>
<div id="body42309173"><div class="section" id="antiddos_02_0020__section44180924"><h4 class="sectiontitle">Functions</h4><p class="MsoNormal" id="antiddos_02_0020__p4490990">This API enables you to query the Anti-DDoS defense policy of a specified EIP.</p>
</div>
<div class="section" id="antiddos_02_0020__section62083996"><h4 class="sectiontitle">URI</h4><ul id="antiddos_02_0020__ul28225944"><li id="antiddos_02_0020__li52706911">URI format<p id="antiddos_02_0020__p6907302144240"><a name="antiddos_02_0020__li52706911"></a><a name="li52706911"></a>GET /v1/{project_id}/antiddos/{floating_ip_id}</p>
</li><li id="antiddos_02_0020__li41401397">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0020__table65178831" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0020__row7351822"><th align="left" class="cellrowborder" valign="top" width="30.92690730926907%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="antiddos_02_0020__p58626732">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.52824717528247%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="antiddos_02_0020__p51144826">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.617938206179375%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="antiddos_02_0020__p49090208">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30.92690730926907%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="antiddos_02_0020__p16883911">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="antiddos_02_0020__row25419542"><td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0020__p45717046">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.52824717528247%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="antiddos_02_0020__p12093263">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20.617938206179375%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="antiddos_02_0020__p40030216">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="antiddos_02_0020__p21222025">User ID</p>
</td>
</tr>
<tr id="antiddos_02_0020__row56780500"><td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0020__p35817813">floating_ip_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.52824717528247%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="antiddos_02_0020__p15561779">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20.617938206179375%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="antiddos_02_0020__p52544597">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="antiddos_02_0020__p28253988">ID corresponding to the EIP of a user</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="antiddos_02_0020__section21885054"><h4 class="sectiontitle">Request</h4><p id="antiddos_02_0020__p1029415419811"><strong id="antiddos_02_0020__b1989614262544">Request parameters</strong></p>
<p id="antiddos_02_0020__p132721814194018">None</p>
</div>
<div class="section" id="antiddos_02_0020__section62747764"><h4 class="sectiontitle">Response</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0020__table32841884" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="antiddos_02_0020__row64992155"><th align="left" class="cellrowborder" valign="top" width="30.44%" id="mcps1.3.4.2.2.5.1.1"><p id="antiddos_02_0020__p29873218">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.48%" id="mcps1.3.4.2.2.5.1.2"><p id="antiddos_02_0020__p3811622">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.54%" id="mcps1.3.4.2.2.5.1.3"><p id="antiddos_02_0020__p40305966">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="35.54%" id="mcps1.3.4.2.2.5.1.4"><p id="antiddos_02_0020__p43557827">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="antiddos_02_0020__row38523084"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p33362098">enable_L7</p>
</td>
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p17975388">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p46720306">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><p id="antiddos_02_0020__p26248478">Whether L7 defense has been enabled.</p>
</td>
</tr>
<tr id="antiddos_02_0020__row34909710"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p9114291">traffic_pos_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p60129">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p3079683015913">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><p id="antiddos_02_0020__p58963189">Position ID of traffic. The value ranges from 1 to 9, or 99, or 33 to 36.</p>
</td>
</tr>
<tr id="antiddos_02_0020__row60906657"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p34492175">http_request_pos_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p42402794">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p6409858615917">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><p id="antiddos_02_0020__p38491397">Position ID of number of HTTP requests. The value ranges from 1 to 15 and 33 to 36.</p>
</td>
</tr>
<tr id="antiddos_02_0020__row10878253"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p8723262">cleaning_access_pos_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p35495616">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p1175927815921">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><p id="antiddos_02_0020__p18980661">Position ID of access limit during cleaning. The value ranges from 1 to 8, or 99, or 33 to 36.</p>
</td>
</tr>
<tr id="antiddos_02_0020__row36608226"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p12476353">app_type_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p3951668">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p4577985515925">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><div class="p" id="antiddos_02_0020__p5423486315930">Application type ID. Possible values:<ul id="antiddos_02_0020__ul3859304915932"><li id="antiddos_02_0020__li247061915932">0</li><li id="antiddos_02_0020__li3331034115936">1</li></ul>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="antiddos_02_0020__section56184349416"><h4 class="sectiontitle">Example</h4><ul id="antiddos_02_0020__ul1635133454118"><li id="antiddos_02_0020__li66351734154111">Example request<pre class="codeblock" id="antiddos_02_0020__codeblock96353342414">GET /v1/67641fe6886f43fcb78edbbf0ad0b99f/antiddos/1df977c2-fdc6-4483-bc1c-ba46829f57b8</pre>
</li></ul>
<ul id="antiddos_02_0020__ul563510342417"><li id="antiddos_02_0020__li3635183464114">Example response<pre class="screen" id="antiddos_02_0020__screen15635834164115">{
"enable_L7": true,
"traffic_pos_id": 1,
"http_request_pos_id": 1,
"cleaning_access_pos_id": 1,
"app_type_id": 1
}</pre>
</li></ul>
</div>
<div class="section" id="antiddos_02_0020__section27858965"><h4 class="sectiontitle">Status Code</h4><p class="MsoNormal" id="antiddos_02_0020__p36836846">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>