- What's New
- Function Overview
- Service Overview
- Getting Started
- User Guide
- Best Practices
-
API Reference
- API Usage Guidelines
- Before You Start
- API Overview
- API Calling
-
API
-
Anti-DDoS Management
- Querying the List of Defense Statuses of EIPs
- Querying Optional Anti-DDoS Defense Policies
- Querying Weekly Defense Statistics
- Querying Configured Anti-DDoS Defense Policies
- Updating Anti-DDoS Defense Policies
- Querying the Traffic of a Specified EIP
- Querying Events of a Specified EIP
- Querying Configured Anti-DDoS Defense Policies
- Anti-DDoS Task Management
- Alarm configuration management
-
Anti-DDoS Management
- Examples
- Appendix
- Out-of-Date APIs
- SDK Reference
-
FAQs
-
General FAQs
- What Are Regions and AZs?
- What Is the Black Hole Policy of HUAWEI CLOUD?
- What Are a SYN Flood Attack and an ACK Flood Attack?
- What Is a CC Attack?
- What Is a Slow HTTP Attack?
- What Are a UDP Attack and a TCP Attack?
- What Are the Differences Between DDoS Attacks and Challenge Collapsar Attacks?
- Does Anti-DDoS Provide SDKs and APIs?
- CNAD Basic (Anti-DDoS) FAQs
-
General FAQs
- Videos
Querying Configured Anti-DDoS Defense Policies
Function
Querying Configured Anti-DDoS Defense Policies
URI
GET /v1/{project_id}/antiddos/{floating_ip_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
poject id Minimum: 32 Maximum: 64 |
floating_ip_id |
Yes |
String |
ID corresponding to the EIP of a user |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
ip |
No |
String |
IP address. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
token Minimum: 32 Maximum: 2097152 |
Content-Type |
Yes |
String |
Content-Type Default: application/json;charset=utf8 |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
enable_L7 |
Boolean |
Whether L7 defense has been enabled |
traffic_pos_id |
Long |
Position ID of traffic. The value ranges from 1 to 9 and 33 to 36. |
http_request_pos_id |
Long |
Position ID of number of HTTP requests. The value ranges from 1 to 15 and 33 to 36. |
cleaning_access_pos_id |
Long |
Position ID of access limit during cleaning. The value ranges from 1 to 8 and 33 to 36. |
app_type_id |
Long |
Application type ID. |
Example Requests
None
Example Responses
Status code: 200
OK
{ "enable_L7" : false, "traffic_pos_id" : 8, "http_request_pos_id" : 8, "cleaning_access_pos_id" : 8, "app_type_id" : 1 }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
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.