Skip to main content

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

NameLocationTypeRequiredSample valueDescription
TypeBODYstringYesauto_breakingthe action of virus interception. unique value:auto_breaking, indicates automatic interception.
SourceIpBODYstringNo1.2.3.4access the IP address of the source.
regionIdBODYstringYesNo sample value for this parameter.region id
TargetTypeBODYstringYesuuidmanage the operation dimension of virus interception. currently, server uuid is supported. unique value:Uuid.
TargetOperationsBODYstringYes"[{\"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).
LangBODYstringNozhthe language type of the request and receive message. Valid values include: zh: Chinese en: English
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstringABCD-PSD2-5256-1DSA-4222-JHBNthe 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
}

}