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>
80 lines
6.6 KiB
HTML
80 lines
6.6 KiB
HTML
<a name="antiddos_02_0024"></a><a name="antiddos_02_0024"></a>
|
|
|
|
<h1 class="topictitle1">Querying the Defense Status of a Specified EIP</h1>
|
|
<div id="body39349682"><div class="section" id="antiddos_02_0024__section35493489"><h4 class="sectiontitle">Functions</h4><p id="antiddos_02_0024__p33207705">This API allows you to query the defense status of a specified EIP.</p>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0024__section51005947"><h4 class="sectiontitle">URI</h4><ul id="antiddos_02_0024__ul5469547"><li id="antiddos_02_0024__li49225929">URI format<p id="antiddos_02_0024__p3997403151136"><a name="antiddos_02_0024__li49225929"></a><a name="li49225929"></a>GET /v1/{project_id}/antiddos/{floating_ip_id}/status</p>
|
|
</li><li id="antiddos_02_0024__li49569014">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0024__table43467946" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0024__row29878402"><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_0024__p4231468">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_0024__p7204610">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_0024__p46702574">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_0024__p24812117">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="antiddos_02_0024__row63624481"><td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0024__p53309370">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_0024__p23091719">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_0024__p58489969">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_0024__p40067039">User ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="antiddos_02_0024__row25059035"><td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0024__p16515979">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_0024__p62725940">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_0024__p47636349">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_0024__p33339022">ID corresponding to the EIP of a user</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0024__section56400342"><h4 class="sectiontitle">Request</h4><p id="antiddos_02_0024__p72063462079"><strong id="antiddos_02_0024__b133853916584">Request parameters</strong></p>
|
|
<p id="antiddos_02_0024__p14332041145213">None</p>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0024__section37841036"><h4 class="sectiontitle">Response</h4><ul id="antiddos_02_0024__ul58618290"><li id="antiddos_02_0024__li57802569">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0024__table50461073" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0024__row8925963"><th align="left" class="cellrowborder" valign="top" width="23.23%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="antiddos_02_0024__p51914417">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.84%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="antiddos_02_0024__p33008942">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.93%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="antiddos_02_0024__p56478678">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="antiddos_02_0024__row11370190"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="antiddos_02_0024__p48570174">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.84%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="antiddos_02_0024__p36029352">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.93%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><div class="p" id="antiddos_02_0024__p32696434">Defense status, the possible value of which is one of the following:<ul id="antiddos_02_0024__ul25832457"><li id="antiddos_02_0024__li31165525"><span class="parmvalue" id="antiddos_02_0024__parmvalue555125744114325"><b>normal</b></span>: indicates that the defense status is normal.</li><li id="antiddos_02_0024__li12054271"><span class="parmvalue" id="antiddos_02_0024__parmvalue404664094114337"><b>configuring</b></span>: indicates that defense is being configured.</li><li id="antiddos_02_0024__li41379576"><span class="parmvalue" id="antiddos_02_0024__parmvalue600552156114412"><b>notConfig</b></span>: indicates that defense is not configured.</li><li id="antiddos_02_0024__li36871865"><span class="parmvalue" id="antiddos_02_0024__parmvalue1506354986114925"><b>packetcleaning</b></span>: indicates that traffic cleaning is underway.</li><li id="antiddos_02_0024__li63411331"><span class="parmvalue" id="antiddos_02_0024__parmvalue1400332350143613"><b>packetdropping</b></span>: indicates that traffic is discarded.</li></ul>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="antiddos_02_0024__section17226558185213"><h4 class="sectiontitle">Example</h4><ul id="antiddos_02_0024__ul178811332182913"><li id="antiddos_02_0024__li966416362293">Example request<pre class="codeblock" id="antiddos_02_0024__codeblock1591508415125">GET /v1/67641fe6886f43fcb78edbbf0ad0b99f/antiddos/1df977c2-fdc6-4483-bc1c-ba46829f57b8/status</pre>
|
|
</li></ul>
|
|
</div>
|
|
<ul id="antiddos_02_0024__ul623214583522"><li id="antiddos_02_0024__li10232105835220">Example response<pre class="screen" id="antiddos_02_0024__screen223245835219">{"status": "normal"}</pre>
|
|
</li></ul>
|
|
<div class="section" id="antiddos_02_0024__section5025004"><h4 class="sectiontitle">Status Code</h4><p id="antiddos_02_0024__p15839470">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>
|
|
|