Creates a Logstore group for the metrics of Log Service logs.


Log Service is activated. A project and a Logstore are created in Log Service. For more information, see Getting Started.


In this example, a Logstore group named Logstore_test is created. The region ID is cn-hangzhou. The project is aliyun-project. The Logstore is Logstore-ECS. The response shows that the Logstore group is created.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateHybridMonitorSLSGroup

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

SLSGroupName String Yes Logstore_test

The name of the Logstore group.

The name must be 2 to 32 characters in length and can contain uppercase letters, lowercase letters, digits, and underscores (_). The name must start with a letter.

SLSGroupDescription String No The Logstore group to which the Alibaba Cloud service belongs.

The description of the Logstore group.

SLSGroupConfig.N.SLSRegion String Yes cn-hangzhou

The region IDs.

Valid values of N: 1 to 25.

SLSGroupConfig.N.SLSProject String Yes aliyun-project

The Log Service projects.

Valid values of N: 1 to 25.

SLSGroupConfig.N.SLSLogstore String Yes Logstore-ECS

The Logstores.

Valid values of N: 1 to 25.

SLSGroupConfig.N.SLSUserId String No 120886317861****

The IDs of the member accounts.

Valid values of N: 1 to 25.

If you call API operations by using a management account, you can connect the Alibaba Cloud services that are activated for a member account in Resource Directory to Hybrid Cloud Monitoring. You can use Resource Directory to monitor Alibaba Cloud services across enterprise accounts.

Note If a member uses CloudMonitor for the first time, you must make sure that the service-linked role AliyunServiceRoleForCloudMonitor is attached to the member. For more information, see Manage the service-linked role for CloudMonitor.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Note The status code 200 indicates that the call is successful.
Message String Duplicate.SLSGroup

The error message.

RequestId String 66683237-7126-50F8-BBF8-D67ACC919A17

The ID of the request.

Success String true

Indicates whether the call is successful. Valid values:

  • true: The call is successful.
  • false: The call fails.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "66683237-7126-50F8-BBF8-D67ACC919A17",
  "Code" : 200,
  "Success" : true

Error codes

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