Help Center> Anti-DDoS> API Reference> API> Alert Controller> Configuring alert config

Configuring alert config

Function

Configuring alert config

Debugging

You can use API Explorer to debug this API.

URI

POST /v2/{project_id}/warnalert/alertconfig/update

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

poject id

Minimum: 32

Maximum: 64

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

token

Minimum: 32

Maximum: 2097152

Content-Type

Yes

String

Default: application/json;charset=utf8

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

display_name

Yes

String

display name of alert config

topic_urn

Yes

String

topic urn

warn_config

Yes

warn_config object

warn config

Table 4 warn_config

Parameter

Mandatory

Type

Description

antiDDoS

No

Boolean

DDoS attacks

back_doors

No

Boolean

Webshells

bruce_force

No

Boolean

Brute force cracking (system logins, FTP, and DB)

high_privilege

No

Boolean

Overly high rights of a database process

remote_login

No

Boolean

Alarms about remote logins

send_frequency

No

Integer

Possible values:0: indicates that alarms are sent once a day.1: indicates that alarms are sent once every half hour.This parameter is mandatory for the Host Intrusion Detection (HID) service.

waf

No

Boolean

Reserved

weak_password

No

Boolean

Weak passwords (system and database)

Response Parameters

Status code: 200

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Internal error code

error_msg

String

Internal error description

Example Requests

{
  "display_name" : "",
  "topic_urn" : "8",
  "enable_L7" : false,
  "warn_config" : {
    "antiDDoS" : false,
    "back_doors" : false,
    "bruce_force" : false,
    "high_privilege" : false,
    "remote_login" : false,
    "send_frequency" : 10,
    "waf" : false,
    "weak_password" : false
  }
}

Example Responses

None

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.