Cloud Logging Service, gRPC: LogGroupService.List
Retrieves the list of log groups in the specified folder.
gRPC request
rpc List (ListLogGroupsRequest) returns (ListLogGroupsResponse)
ListLogGroupsRequest
{
"folderId": "string",
"pageSize": "int64",
"pageToken": "string",
"filter": "string"
}
Field |
Description |
folderId |
string Required field. Folder ID of the log groups to return. To get a folder ID make a yandex.cloud.resourcemanager.v1.FolderService.List request. |
pageSize |
int64 The maximum number of results per page to return. If the number of available Default value: 100. |
pageToken |
string Page token. To get the next page of results, set |
filter |
string A filter expression that filters log groups listed in the response. The expression must specify:
|
ListLogGroupsResponse
{
"groups": [
{
"id": "string",
"folderId": "string",
"cloudId": "string",
"createdAt": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "string",
"status": "Status",
"retentionPeriod": "google.protobuf.Duration",
"dataStream": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
groups[] |
List of log groups in the specified folder. |
nextPageToken |
string Token for getting the next page of the list. If the number of results is greater than Each subsequent page will have its own |
LogGroup
Field |
Description |
id |
string Log group ID. |
folderId |
string Log group folder ID. |
cloudId |
string Log group cloud ID. |
createdAt |
Log group creation time. |
name |
string Log group name. |
description |
string Log group description. |
labels |
string Log group labels. |
status |
enum Status Status of the log group.
|
retentionPeriod |
Log group entry retention period. Entries will be present in group during this period. |
dataStream |
string Data stream name |