doc-exports/docs/antiddos/api-ref/antiddos_02_0037.html
Li, Qiao 6c7c1c9d99 AntiDDoS API 20240914 version
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>
2024-11-06 12:22:01 +00:00

105 lines
7.5 KiB
HTML

<a name="antiddos_02_0037"></a><a name="antiddos_02_0037"></a>
<h1 class="topictitle1">Querying the Default Protection Policy Configured for the Newly Purchased Public IP Addresses</h1>
<div id="body1594343913048"><div class="section" id="antiddos_02_0037__section55096476"><h4 class="sectiontitle">Functions</h4><p id="antiddos_02_0037__p19173388">This API enables you to query the default protection policy configured for the newly purchased public IP addresses.</p>
</div>
<div class="section" id="antiddos_02_0037__section26106237"><h4 class="sectiontitle">URI</h4><ul id="antiddos_02_0037__ul9540605"><li id="antiddos_02_0037__li18756585">URI format<p id="antiddos_02_0037__p53512344152251"><a name="antiddos_02_0037__li18756585"></a><a name="li18756585"></a>GET /v1/{project_id}/antiddos/default-config</p>
</li><li id="antiddos_02_0037__li42888430">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0037__table51410791" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0037__row16041741"><th align="left" class="cellrowborder" valign="top" width="21.9%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="antiddos_02_0037__p24312641">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.55%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="antiddos_02_0037__p23166934">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.62%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="antiddos_02_0037__p64582388">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30.930000000000003%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="antiddos_02_0037__p63790914">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="antiddos_02_0037__row66790376"><td class="cellrowborder" valign="top" width="21.9%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0037__p41311375">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="26.55%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="antiddos_02_0037__p57887070">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20.62%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="antiddos_02_0037__p58341118">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.930000000000003%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="antiddos_02_0037__p28010135">User ID</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="antiddos_02_0037__section33629549"><h4 class="sectiontitle">Request</h4><p id="antiddos_02_0037__p9930243125715"><strong id="antiddos_02_0037__b0200202219318">Request parameters</strong></p>
<p id="antiddos_02_0037__p1590674655719">None</p>
</div>
<div class="section" id="antiddos_02_0037__section34230492"><h4 class="sectiontitle">Response Messages</h4><ul id="antiddos_02_0037__ul48654403"><li id="antiddos_02_0037__li35236445">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0037__table48692557" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0037__row57013647"><th align="left" class="cellrowborder" valign="top" width="30.84%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="antiddos_02_0037__p54702703">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="29.110000000000003%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="antiddos_02_0037__p6231364">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40.050000000000004%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="antiddos_02_0037__p34978441">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="antiddos_02_0037__row14681450"><td class="cellrowborder" valign="top" width="30.84%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="antiddos_02_0037__p48346833">enable_L7</p>
</td>
<td class="cellrowborder" valign="top" width="29.110000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="antiddos_02_0037__p47080266">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40.050000000000004%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="antiddos_02_0037__p28885026">Whether to enable layer-7 protection.</p>
</td>
</tr>
<tr id="antiddos_02_0037__row58638646"><td class="cellrowborder" valign="top" width="30.84%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="antiddos_02_0037__p52109899">traffic_pos_id</p>
</td>
<td class="cellrowborder" valign="top" width="29.110000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="antiddos_02_0037__p40496186">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40.050000000000004%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="antiddos_02_0037__p58965604">Position ID of traffic. The value ranges from 1 to 9, or 99, or 33 to 36.</p>
</td>
</tr>
<tr id="antiddos_02_0037__row60928390"><td class="cellrowborder" valign="top" width="30.84%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="antiddos_02_0037__p36252562">http_request_pos_id</p>
</td>
<td class="cellrowborder" valign="top" width="29.110000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="antiddos_02_0037__p19248251">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40.050000000000004%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="antiddos_02_0037__p56757654">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_0037__row3262153532716"><td class="cellrowborder" valign="top" width="30.84%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="antiddos_02_0037__p16262335182711">cleaning_access_pos_id</p>
</td>
<td class="cellrowborder" valign="top" width="29.110000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="antiddos_02_0037__p3262535152711">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40.050000000000004%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="antiddos_02_0037__p15422169">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_0037__row145501038152720"><td class="cellrowborder" valign="top" width="30.84%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="antiddos_02_0037__p15550238192718">app_type_id</p>
</td>
<td class="cellrowborder" valign="top" width="29.110000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="antiddos_02_0037__p13550438182713">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40.050000000000004%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><div class="p" id="antiddos_02_0037__p2630238915650">Application type ID. Possible values:<ul id="antiddos_02_0037__ul2584619815657"><li id="antiddos_02_0037__li4894818415657">0</li><li id="antiddos_02_0037__li546197471571">1</li></ul>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="antiddos_02_0037__section11157820583"><h4 class="sectiontitle">Example</h4><ul id="antiddos_02_0037__ul194081258134219"><li id="antiddos_02_0037__li6137121012436">Example request<pre class="codeblock" id="antiddos_02_0037__codeblock4650234015244">GET /v1/67641fe6886f43fcb78edbbf0ad0b99f/antiddos/default/config</pre>
</li></ul>
</div>
<ul id="antiddos_02_0037__ul01288818584"><li id="antiddos_02_0037__li212816816584">Example response<pre class="screen" id="antiddos_02_0037__screen13128198105819">{
"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 class="section" id="antiddos_02_0037__section39638980"><h4 class="sectiontitle">Status Code</h4><p id="antiddos_02_0037__p1504051">For details, 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>