Querying the Default Protection Policy Configured for the Newly Purchased Public IP Addresses
Function
This API enables you to query the default protection policy configured for the newly purchased public IP addresses.
URI
GET /v1/{project_id}/antiddos/default-config
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
poject id Minimum: 32 Maximum: 64 |
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
{ "app_type_id" : 1, "cleaning_access_pos_id" : 8, "enable_L7" : false, "http_request_pos_id" : 8, "traffic_pos_id" : 8 }
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot