Modifies the alert configuration for a user.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the request. |
117.129.64.XXX |
| Lang |
string |
No |
The language of the request and response. |
zh |
| Lang |
string |
No |
The language of the request and response. |
zh |
| AlarmConfig |
array<object> |
Yes |
The alert configurations. |
|
|
object |
No |
The alert configuration. |
||
| AlarmValue |
string |
No |
The message of the alert notification. |
on |
| AlarmType |
string |
No |
The alert type. Valid values:
|
bandwidth |
| AlarmPeriod |
string |
No |
The alert period. Valid values:
|
0 |
| AlarmHour |
string |
No |
The hour at which to send alert notifications. |
10 |
| AlarmNotify |
string |
No |
The notification method. Valid values:
|
0 |
| AlarmWeekDay |
string |
No |
The day of the week to send alert notifications. |
2 |
| NotifyConfig |
array<object> |
No |
The alert notification configurations. |
|
|
object |
No |
The alert notification configuration. |
||
| NotifyType |
string |
No |
The notification type. Valid values:
|
|
| NotifyValue |
string |
No |
Specifies the value for the notification. |
1351234**** |
| ContactConfig |
array<object> |
No |
The contact configurations. |
|
|
object |
No |
The contact configuration. |
||
| Status |
string |
No |
The alert status. Valid values:
|
1 |
|
string |
No |
The email address. |
91632****@qq.com |
|
| MobilePhone |
string |
No |
The mobile phone number. |
1351234**** |
| Name |
string |
No |
The recipient of the alert notification. |
Ben |
| AlarmLang |
string |
No |
The language of the notification message. Valid values:
|
zh |
| UseDefaultContact |
integer |
No |
Specifies whether to use the default contact method. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
3B168A0F-A43D-5FD0-8059-B51BDD6E**** |
Examples
Success response
JSON format
{
"RequestId": "3B168A0F-A43D-5FD0-8059-B51BDD6E****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
| 400 | ErrorParametersAlarmConfig | invalid alarmConfig. | The value of the AlarmConfig parameter is invalid. |
| 400 | ErrorParameters | Parameters error. | Parameter error. |
| 400 | ErrorParametersNotifyConfig | invalid notifyConfig. | The value of the NotifyConfig parameter is invalid. |
| 400 | ErrorParamSms | invalid sms number. | The specified mobile number used to receive text messages is invalid. |
| 400 | ErrorParamEmail | invalid email address. | The email address is invalid. |
| 400 | ErrorParamCountExceed | sms or email count exceed. | The number of addresses exceeds the upper limit. |
| 400 | ErrorDBDeleteError | A database delete error occurred. | An error occurred while deleting the database. |
| 400 | ErrorDBUpdate | internal error: sql update. | An error occurred. Try again later. |
| 400 | ErrorDBInsert | internal error: sql insert. | Request error, database insert failed |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.