Configures proactive defense.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes OperateSuspiciousTargetConfig

The operation that you want to perform. Set the value to OperateSuspiciousTargetConfig.

SourceIp String No 1.2.XX.XX

The source IP address of the request.

Lang String No zh

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
Type String Yes auto_breaking

The type of proactive defense. Valid Values:

  • auto_breaking: automatic blocking
  • webshell_cloud_breaking: webshell prevention
  • alinet: malicious behavior prevention
  • ransomware_breaking: ransomware capture
  • alisecguard: client protection
TargetType String Yes uuid

The dimension from which you manage proactive defense. Only server UUIDs are supported.

Set the value to UUID.

TargetOperations String Yes "[{"targetType":"uuid","target":"0585f81a-dd84-4ddf-9971-f59d12345678","flag":"add"},{"targetType":"uuid","target":"01acfd9d-e6a4-4e61-b9eb-aae012345678","flag":"add"},{"targetType":"uuid","target":"04a0e735-ad32-4835-b635-045812345678","flag":"add"}]"

The parameter required to configure proactive defense for your server. The parameter includes the following fields:

  • targetType: specifies the dimension on which proactive defense is configured. UUIDs are supported. Set the value to UUID.
  • target: specifies the UUID of the server for which you want to configure proactive defense.
  • flag: specifies whether to enable or disable proactive defense for your server. Valid values are add and del. The value add indicates that proactive defense will be enabled for your server. The value del indicates that proactive defense will be disabled for your server.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String ABCD-PSD2-5256-1DSA-4222-JHBN

The ID of the request, which is used to locate and troubleshoot issues.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "ABCD-PSD2-5256-1DSA-4222-JHBN"

Error codes

HTTP status code Error code Error message Description
400 ConsoleError The error message is %s %s. The error message is %s %s.
500 ServerError ServerError The error message returned because a server error occurred.

For a list of error codes, visit the API Error Center.