Cloud Logging Service, gRPC: LogGroupService.List
Retrieves the list of log groups in the specified folder.
gRPC request
rpc List (ListLogGroupsRequest) returns (ListLogGroupsResponse)
ListLogGroupsRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
folder_id |
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. |
page_size |
int64 The maximum number of results per page to return. If the number of available Default value: 100. |
page_token |
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",
"folder_id": "string",
"cloud_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"status": "Status",
"retention_period": "google.protobuf.Duration",
"data_stream": "string"
}
],
"next_page_token": "string"
}
Field |
Description |
groups[] |
List of log groups in the specified folder. |
next_page_token |
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. |
folder_id |
string Log group folder ID. |
cloud_id |
string Log group cloud ID. |
created_at |
Log group creation time. |
name |
string Log group name. |
description |
string Log group description. |
labels |
object (map<string, string>) Log group labels. |
status |
enum Status Status of the log group.
|
retention_period |
Log group entry retention period. Entries will be present in group during this period. |
data_stream |
string Data stream name |