EventRouter Service, gRPC: BusService.List
Retrieves the list of buses in the specified folder.
gRPC request
rpc List (ListBusesRequest) returns (ListBusesResponse)
ListBusesRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string",
"filter": "string"
}
Field |
Description |
folder_id |
string Required field. ID of the folder to list buses in. |
page_size |
int64 Maximum number of buses to return. |
page_token |
string Page token. To get the next page of results, set |
filter |
string Supported fields for filter: |
ListBusesResponse
{
"buses": [
{
"id": "string",
"folder_id": "string",
"cloud_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"deletion_protection": "bool",
"status": "Status",
"logging_enabled": "bool",
"log_options": {
// Includes only one of the fields `log_group_id`, `folder_id`
"log_group_id": "string",
"folder_id": "string",
// end of the list of possible fields
"min_level": "Level",
"service_account_id": "string"
}
}
],
"next_page_token": "string"
}
Field |
Description |
buses[] |
List of buses. |
next_page_token |
string Token for getting the next page of the list of buses. |
Bus
Field |
Description |
id |
string ID of the bus. |
folder_id |
string ID of the folder that the bus belongs to. |
cloud_id |
string ID of the cloud that the bus resides in. |
created_at |
Creation timestamp. |
name |
string Name of the bus. |
description |
string Description of the bus. |
labels |
object (map<string, string>) Resource labels as |
deletion_protection |
bool Deletion protection. |
status |
enum Status Status of the bus.
|
logging_enabled |
bool Is logging from the bus enabled. |
log_options |
Options for logging from the bus. |
LogOptions
Field |
Description |
log_group_id |
string Entry will be written to log group resolved by ID. Includes only one of the fields Log entries destination. |
folder_id |
string Entry will be written to default log group for specified folder. Includes only one of the fields Log entries destination. |
min_level |
enum Level Minimum log entry level. See LogLevel.Level for details.
|
service_account_id |
string Required field. Service account, which has permission to write to destination |