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
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Keyword | string | No | The keyword that is used to search for Logstore groups. | Logstore |
PageSize | string | No | The number of entries per page. Minimum value: 1. Default value: 10. | 10 |
PageNumber | string | No | The page number. Pages start from page 1. Default value: 1. | 1 |
SLSGroupName | string | No | The name of the Logstore group. | Logstore_test |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"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 code | Error code | Error message |
---|---|---|
400 | %s | %s |
500 | InternalError | %s |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-06-20 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||||||||||
| ||||||||||||||||||
2022-01-25 | Add Operation | see changesets |