Updated on 2022-02-22 GMT+08:00

Querying Alarm Configuration

Functions

This API allows you to query alarm configuration, such as whether a certain type of alarms will be received, and whether alarms are received through SMS messages or emails.

URI

  • URI format

    GET /v2/{project_id}/warnalert/alertconfig/query

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    User ID

Request

Request parameters

None

Response

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    warn_config

    Yes

    List data structure

    Alarm configuration

    topic_urn

    Yes

    String

    ID of an alarm group

    display_name

    Yes

    String

    Description of an alarm group

  • Data structure description of warn_config

    Parameter

    Mandatory

    Type

    Description

    antiDDoS

    Yes

    Boolean

    DDoS attacks

    bruce_force

    No

    Boolean

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

    remote_login

    No

    Boolean

    Alarms about remote logins

    weak_password

    No

    Boolean

    Weak passwords (system and database)

    high_privilege

    No

    Boolean

    Overly high rights of a database process

    back_doors

    No

    Boolean

    Webshells

    waf

    No

    Boolean

    Reserved

Example

  • Example request
    GET /v2/67641fe6886f43fcb78edbbf0ad0b99f/warnalert/alertconfig/query
  • Example response
    {
       "warn_config":    {
          "antiDDoS": true,
          "bruce_force": false,
          "remote_login": false,
          "weak_password": false,
          "high_privilege": false,
          "back_doors": false,
          "waf": false
       },
       "topic_urn": "urn:smn:aaa:67641fe6886f43fcb78edbbf0ad0b99f:test_soft",
       "display_name": "group_1"
    }

    SFTP is more secure than FTP. To secure data transmission, use SFTP to transfer files.

Status Code

See Status Code.