OperateSuspiciousTargetConfig
Description
call the OperateSuspiciousTargetConfig to set the detection configuration for virus interception (virus detection).
Request Method
POST
Request Path
/apsara/route/aegis/OperateSuspiciousTargetConfig
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Type | BODY | string | Yes | auto_breaking | the action of virus interception. unique value:auto_breaking, indicates automatic interception. |
SourceIp | BODY | string | No | 1.2.3.4 | access the IP address of the source. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
TargetType | BODY | string | Yes | uuid | manage the operation dimension of virus interception. currently, server uuid is supported. unique value:Uuid. |
TargetOperations | BODY | 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\"}]" | sets virus interception parameters for the server. Include the following parameters: targetType: the dimension of virus interception. currently, uuid is supported with a fixed value of uuid. target: the uuid of the server that needs to be set for virus interception. flag: Turn on or off virus interception for the server, you can choose add(on) or del(closed). |
Lang | BODY | string | No | zh | the language type of the request and receive message. Valid values include: zh: Chinese en: English |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | ABCD-PSD2-5256-1DSA-4222-JHBN | the unique identifier generated by alibaba cloud for this request. |
Example
Successful Response example
{
"RequestId":"ABCD-PSD2-5256-1DSA-4222-JHBN"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}