Queries the alert configurations for a user.
Operation description
QPS limit
The queries per second (QPS) limit for this API operation is 10 calls per second for each user. If the limit is exceeded, throttling is triggered, which may impact your business. Plan your calls accordingly.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the visitor. |
59.82.135.XXX |
| Lang |
string |
No |
The language of the content within the request and response. Valid values:
|
zh |
| Lang |
string |
No |
The language of the content within the request and response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9D250177-4F11-58B8-9AFE-A4624FF1**** |
| AlarmConfig |
array<object> |
The alert configurations. |
|
|
object |
The alert configuration. |
||
| AlarmPeriod |
integer |
The alert period. |
30 |
| AlarmValue |
string |
The alert notification message. |
80 |
| AlarmHour |
integer |
The alarm threshold. |
0 |
| AlarmType |
string |
The alert metric. Valid values:
|
bandwidth |
| AlarmNotify |
integer |
The notification method. Valid values:
|
1 |
| AlarmWeekDay |
integer |
The day of the week for the alert. |
0 |
| NotifyConfig |
array<object> |
The alert notification configurations. |
|
|
object |
The alert notification configuration. |
||
| NotifyValue |
string |
Specifies whether message notification is enabled. Valid values: 0 (disabled) and 1 (enabled). |
0 |
| NotifyType |
string |
The notification type. |
|
| ContactConfig |
array<object> |
The contact information. |
|
|
object |
The contact information. |
||
| Status |
integer |
The status of the alert contact. Valid values: 0 (disabled) and 1 (enabled). |
1 |
|
string |
The email address. |
1530811****@qq.com |
|
| Name |
string |
The mobile phone number of the alert contact. |
1531123**** |
| MobilePhone |
string |
The mobile phone number. |
张三 |
| AlarmLang |
string |
The language of the alert. Valid values:
|
zh |
| DefaultContact |
object |
The information about the default alert contact. |
|
| Name |
string |
The name of the default alert contact. |
张三 |
|
string |
The default email address. |
1530811****@qq.com |
|
| MobilePhone |
string |
The default mobile phone number. |
1531123**** |
| Status |
string |
The status. Valid values: normal (Normal) and disable (Disabled). |
0 |
Examples
Success response
JSON format
{
"RequestId": "9D250177-4F11-58B8-9AFE-A4624FF1****",
"AlarmConfig": [
{
"AlarmPeriod": 30,
"AlarmValue": "80",
"AlarmHour": 0,
"AlarmType": "bandwidth",
"AlarmNotify": 1,
"AlarmWeekDay": 0
}
],
"NotifyConfig": [
{
"NotifyValue": "0",
"NotifyType": "mail"
}
],
"ContactConfig": [
{
"Status": 1,
"Email": "1530811****@qq.com\n",
"Name": "1531123****",
"MobilePhone": "张三"
}
],
"AlarmLang": "zh",
"DefaultContact": {
"Name": "张三",
"Email": "1530811****@qq.com",
"MobilePhone": "1531123****",
"Status": "0"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
| 400 | ErrorDBSelect | internal error: sql select. | Request error, database query failed. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.