All Products
Search
Document Center

CloudMonitor:DescribeHybridMonitorSLSGroup

Last Updated:Jul 26, 2024

Queries Logstore groups.

Operation description

In this example, all Logstore groups within the current account are queried. The response shows that the current account has two Logstore groups: Logstore_test and Logstore_aliyun.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cms:DescribeHybridMonitorSLSGroupcreate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
KeywordstringNo

The keyword that is used to search for Logstore groups.

Logstore
PageSizestringNo

The number of entries per page.

Minimum value: 1. Default value: 10.

10
PageNumberstringNo

The page number.

Pages start from page 1. Default value: 1.

1
SLSGroupNamestringNo

The name of the Logstore group.

Logstore_test

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

Response parameters

ParameterTypeDescriptionExample
object

None.

Codestring

The HTTP status code.

Note The status code 200 indicates that the request was successful.
200
Messagestring

The error message.

NotFound.SLSGroup
RequestIdstring

The request ID.

66683237-7126-50F8-BBF8-D67ACC919A17
Successstring

Indicates whether the request was successful. Valid values:

  • true
  • false
Listarray<object>

The queried Logstore groups.

object
SLSGroupNamelong

The name of the Logstore group.

Logstore_test
SLSGroupDescriptionstring

The description of the Logstore group.

SLSGroupConfigarray<object>

The configurations of the Logstore group.

object
SLSRegionstring

The region ID.

cn-hangzhou
SLSProjectstring

The Simple Log Service project.

aliyun-project
SLSLogstorestring

The Logstore.

Logstore-aliyun-all
SLSUserIdstring

The member ID.

Description This parameter is returned when you call the operation by using an administrative account.

120886317861****
CreateTimestring

The time when the Logstore group was created.

Unit: milliseconds.

1652845630000
UpdateTimestring

The time when the Logstore group was modified.

Unit: milliseconds.

1652845630000
PageSizelong

The number of entries per page.

10
PageNumberlong

The page number.

1
Totallong

The total number of entries returned.

2

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "NotFound.SLSGroup",
  "RequestId": "66683237-7126-50F8-BBF8-D67ACC919A17",
  "Success": "",
  "List": [
    {
      "SLSGroupName": 0,
      "SLSGroupDescription": "",
      "SLSGroupConfig": [
        {
          "SLSRegion": "cn-hangzhou",
          "SLSProject": "aliyun-project",
          "SLSLogstore": "Logstore-aliyun-all",
          "SLSUserId": "120886317861****"
        }
      ],
      "CreateTime": "1652845630000",
      "UpdateTime": "1652845630000"
    }
  ],
  "PageSize": 10,
  "PageNumber": 1,
  "Total": 2
}

Error codes

HTTP status codeError codeError message
400%s%s
500InternalError%s

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-06-20The Error code has changed. The response structure of the API has changedView Change Details
2022-01-25Add OperationView Change Details