Updating Anti-DDoS Defense Policies
Functions
This API enables you to update the Anti-DDoS defense policy of a specified EIP. Successfully invoking this API only means that the service node has received the update request. You need to use the task querying API to check the task execution status. For details about the task querying API, see Querying Anti-DDoS Tasks.
URI
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
enable_L7 |
No |
Boolean |
Whether to enable L7 defense |
traffic_pos_id |
Yes |
Integer |
Position ID of traffic. The value ranges from 1 to 9, or 99. |
http_request_pos_id |
Yes |
Integer |
Position ID of number of HTTP requests. The value ranges from 1 to 15. |
cleaning_access_pos_id |
Yes |
Integer |
Position ID of access limit during cleaning. The value ranges from 1 to 8, or 99. |
app_type_id |
No |
Integer |
Application type ID. Possible values:
|
Response
Name |
Type |
Description |
---|---|---|
error_code |
String |
Internal error code |
error_description |
String |
Internal error description |
task_id |
String |
ID of a task. This ID can be used to query the status of the task. This field is reserved for use in task auditing later. It is temporarily unused. |
Example
- Example request
PUT /v1/67641fe6886f43fcb78edbbf0ad0b99f/antiddos/ee0c854e-082f-499e-b7d8-1b42c22781af
{ "enable_L7":false, "traffic_pos_id":2, "http_request_pos_id":1, "cleaning_access_pos_id":1, "app_type_id":1 }
- Example response
{ "error_code": "10000000", "error_description": "Task has been received and is being processed.", "task_id": "4a4fefe7-34a1-40e2-a87c-16932af3ac4a" }
Status Code
See Status Code.
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