All Products
Search
Document Center

CloudMonitor:DescribeHybridMonitorSLSGroup

Last Updated:Mar 01, 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

There is currently no authorization information disclosed in the API.

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
Listobject []

The queried Logstore groups.

SLSGroupNamelong

The name of the Logstore group.

Logstore_test
SLSGroupDescriptionstring

The description of the Logstore group.

SLSGroupConfigobject []

The configurations of the Logstore group.

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 changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 409
    delete Error Codes: 412
    delete Error Codes: 500
Output ParametersThe response structure of the API has changed.
2022-01-25Add Operationsee changesets