Performs initialization to create user-related alert resources, including the project to which Alert Center belongs, a Logstore, and dashboards. The project is named in the sls-alert-{uid}-{region} format, and the Logstore is named internal-alert-center-log.


Before you can use the alerting feature of Log Service, you must call the InitUserAlertResource operation to perform initialization. You need to call this operation only once for an Alibaba Cloud account. After initialization, the following resources are created:

  • Project to which Alert Center belongs: The project is named in the sls-alert-{uid}-{region} format. uid specifies the ID of the Alibaba Cloud account that is used to call the operation, and region specifies the region where the data of the project is stored. You can select a region for the project.
  • Logstore dedicated for Alert Center: The Logstore is named internal-alert-center-log. The Logstore stores operation logs of alerts. The Logstore is free of charge.
  • Dashboards dedicated for Alert Center: The dashboards include Alert Link Center, Troubleshooting Center, Monitoring Rule Center, and Pub Alert Center.

Request parameters

Parameter Type Required Example Description
Action String Yes InitUserAlertResource

The operation that you want to perform. Set the value to InitUserAlertResource.

App String Yes none

Set the value to none.

Region String Yes cn-shanghai

The region of the project to which Alert Center belongs. Example: cn-shanghai.

Language String No cn

The natural language of dashboards. A value of cn specifies Chinese, and a value of en specifies English.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code. The HTTP status code 200 indicates a successful call.

Message String successful

The message that is returned. If the request is successful, a value of successful is returned. If the request fails, an error message is returned.

RequestId String EE3A9553-2CBB-59CD-96DA-9EE3EED48969

The ID of the request.

Success Boolean true

Indicates whether the request is successful.

  • true: indicates that the request is successful.
  • false: indicates that the request failed.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.