All Products
Search
Document Center

Cloud Firewall:ModifyUserAlarmConfig

Last Updated:Jan 12, 2026

Modifies the alert configuration for a user.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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:

  • weeklyReport :

    weeklyReport

  • trafficPreAlert :

    trafficPreAlert

  • outgoingRiskAll :

    outgoingRiskAll

  • ipsMiddlethreat :

    ipsMiddlethreat

  • bandwidth :

    bandwidth

  • ipsHighthreat :

    ipsHighthreat

  • outgoingRiskNonWhite :

    outgoingRiskNonWhite

  • ipsIgnoreResolved :

    ipsIgnoreResolved

bandwidth

AlarmPeriod

string

No

The alert period.

Valid values:

  • 0 :

    08:00 to 20:00

  • 1 :

    24 hours

0

AlarmHour

string

No

The hour at which to send alert notifications.

10

AlarmNotify

string

No

The notification method.

Valid values:

  • 0 :

    SMS and email

  • 1 :

    SMS

  • 2 :

    email

  • 3 :

    none

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:

  • mail :

    email

  • sms :

    SMS

mail

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:

  • 0 :

    Disabled

  • 1 :

    Enabled

1

Email

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:

  • en :

    English

  • zh :

    Chinese

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.