This API is used to update a protection policy.
Function
This API is used to update a protection policy.
URI
PUT /v1/edgesec/configuration/http/policies/{policy_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
policy_id |
Yes |
String |
Policy ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
auth token |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
No |
String |
Protection policy name. |
action |
No |
HttpPolicyAction object |
Operation. |
options |
No |
HttpPolicyOption object |
Option. |
level |
No |
Integer |
Protection level. |
full_detection |
No |
Boolean |
Detection mode in the precise protection rule. |
robot_action |
No |
HttpPolicyAction object |
Operation. |
third_bot_options |
No |
HttpThirdBotOptions object |
Third-party BOT operation. |
extend |
No |
Map<String,String> |
Extended field. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
webattack |
No |
Boolean |
Whether basic web protection is enabled. |
common |
No |
Boolean |
Whether general check is enabled. |
bot_enable |
No |
Boolean |
Whether full anti-crawler protection is enabled. |
crawler |
No |
Boolean |
Whether anti-crawler protection with feature libraries is enabled. |
crawler_engine |
No |
Boolean |
Whether the search engine is enabled. |
crawler_scanner |
No |
Boolean |
Whether the scanner is enabled. |
crawler_script |
No |
Boolean |
Whether the JavaScript anti-crawler is enabled. |
crawler_other |
No |
Boolean |
Whether other crawler check is enabled. |
webshell |
No |
Boolean |
Whether web shell detection is enabled |
cc |
No |
Boolean |
Whether the CC attack protection rule is enabled. |
custom |
No |
Boolean |
Whether precise protection is enabled. |
followed_action |
No |
Boolean |
Whether known attack source detection is enabled. |
whiteblackip |
No |
Boolean |
Whether blacklist and whitelist protection is enabled. |
geoip |
No |
Boolean |
Whether the geolocation rule is enabled. |
ignore |
No |
Boolean |
Whether false alarm masking is enabled. |
privacy |
No |
Boolean |
Whether data masking is enabled. |
antitamper |
No |
Boolean |
Whether the web tamper protection is enabled. |
antileakage |
No |
Boolean |
Whether the information leakage prevention is enabled. |
anticrawler |
No |
Boolean |
Whether the JavaScript anti-crawler rule is enabled. |
third_bot_river |
No |
Boolean |
Whether the third-party BOT is enabled |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
category |
No |
String |
Protection level. |
followed_action_id |
No |
String |
Attack penalty rule ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
river_config |
No |
HttpRiverConfig object |
River Security configuration items |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
String |
Policy ID. |
name |
String |
Protection policy name. |
level |
Integer |
Protection level. |
full_detection |
Boolean |
Detection mode in the precise protection rule. |
action |
HttpPolicyAction object |
Operation. |
robot_action |
HttpPolicyAction object |
Operation. |
options |
HttpPolicyOption object |
Option. |
bind_host |
Array of HttpPolicyBindHost objects |
Basic information about the protected domain. |
extend |
Map<String,String> |
Extended field. |
third_bot_options |
Map<String,third_bot_options> |
Third-party BOT operation. |
wap_managed_ruleset_id |
String |
ID of the hosting rule set for basic web protection. |
Parameter |
Type |
Description |
---|---|---|
category |
String |
Protection level. |
followed_action_id |
String |
Attack penalty rule ID. |
Parameter |
Type |
Description |
---|---|---|
webattack |
Boolean |
Whether basic web protection is enabled. |
common |
Boolean |
Whether general check is enabled. |
bot_enable |
Boolean |
Whether full anti-crawler protection is enabled. |
crawler |
Boolean |
Whether anti-crawler protection with feature libraries is enabled. |
crawler_engine |
Boolean |
Whether the search engine is enabled. |
crawler_scanner |
Boolean |
Whether the scanner is enabled. |
crawler_script |
Boolean |
Whether the JavaScript anti-crawler is enabled. |
crawler_other |
Boolean |
Whether other crawler check is enabled. |
webshell |
Boolean |
Whether web shell detection is enabled |
cc |
Boolean |
Whether the CC attack protection rule is enabled. |
custom |
Boolean |
Whether precise protection is enabled. |
followed_action |
Boolean |
Whether known attack source detection is enabled. |
whiteblackip |
Boolean |
Whether blacklist and whitelist protection is enabled. |
geoip |
Boolean |
Whether the geolocation rule is enabled. |
ignore |
Boolean |
Whether false alarm masking is enabled. |
privacy |
Boolean |
Whether data masking is enabled. |
antitamper |
Boolean |
Whether the web tamper protection is enabled. |
antileakage |
Boolean |
Whether the information leakage prevention is enabled. |
anticrawler |
Boolean |
Whether the JavaScript anti-crawler rule is enabled. |
third_bot_river |
Boolean |
Whether the third-party BOT is enabled |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Domain name ID. |
hostname |
String |
Domain name. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Standard error code: service name.8-digit code |
error_msg |
String |
Detailed error information. |
encoded_authorization_message |
String |
If the service is integrated with IAM5.0, an IAM response must be returned when access is denied. |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Standard error code: service name.8-digit code |
error_msg |
String |
Detailed error information. |
encoded_authorization_message |
String |
If the service is integrated with IAM5.0, an IAM response must be returned when access is denied. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Standard error code: service name.8-digit code |
error_msg |
String |
Detailed error information. |
encoded_authorization_message |
String |
If the service is integrated with IAM5.0, an IAM response must be returned when access is denied. |
Example Requests
None
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
400 |
Request failed. |
401 |
The token does not have required permissions. |
500 |
Internal server error. |
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