Configures proactive defense.
Debugging
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:
|
Type | String | Yes | auto_breaking |
The type of proactive defense. Valid Values:
|
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:
|
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=OperateSuspiciousTargetConfig
&SourceIp=1.2.XX.XX
&Lang=zh
&Type=auto_breaking
&TargetType=uuid
&TargetOperations="[{"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"}]"
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<OperateSuspiciousTargetConfigResponse>
<RequestId>ABCD-PSD2-5256-1DSA-4222-JHBN</RequestId>
</OperateSuspiciousTargetConfigResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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.