Querying Alarm Configuration
Function
You can query alarm configuration, such as whether a certain type of alarms will be received, and whether alarms are received through SMS messages or emails.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/warnalert/alertconfig/query
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
|
Content-Type |
Yes |
String |
Content-Type request header. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
topic_urn |
String |
Unique ID of an alarm group. |
|
display_name |
String |
Alarm group description. |
|
warn_config |
warn_config object |
Alarm configuration information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
antiDDoS |
Boolean |
DDoS attack. |
|
back_doors |
Boolean |
Web shell. |
|
high_privilege |
Boolean |
Excessive privileges assigned to a database process. |
|
remote_login |
Boolean |
Alarms about remote logins. |
|
send_frequency |
Integer |
Range Mandatory for the HID. |
|
waf |
Boolean |
Reserved field. |
|
weak_password |
Boolean |
Weak password (system and database). |
Example Requests
None
Example Responses
Status code: 200
Request succeeded.
{
"warn_config" : {
"antiDDoS" : false,
"remote_login" : false,
"weak_password" : false,
"high_privilege" : false,
"back_doors" : false,
"waf" : false,
"send_frequency" : 0
},
"topic_urn" : null,
"display_name" : null
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Request succeeded. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.