IoT Core Broker Service, gRPC: BrokerService.List
Retrieves the list of brokers in the specified folder.
gRPC request
rpc List (ListBrokersRequest) returns (ListBrokersResponse)
ListBrokersRequest
{
"folderId": "string",
"pageSize": "int64",
"pageToken": "string"
}
Field |
Description |
folderId |
string Required field. ID of the folder to list brokers in. To get a folder ID make a yandex.cloud.resourcemanager.v1.FolderService.List request. |
pageSize |
int64 The maximum number of results per page that should be returned. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
ListBrokersResponse
{
"brokers": [
{
"id": "string",
"folderId": "string",
"createdAt": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "string",
"status": "Status",
"logOptions": {
"disabled": "bool",
// Includes only one of the fields `logGroupId`, `folderId`
"logGroupId": "string",
"folderId": "string",
// end of the list of possible fields
"minLevel": "Level"
}
}
],
"nextPageToken": "string"
}
Field |
Description |
brokers[] |
List of brokers. |
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 |
Broker
A broker.
Field |
Description |
id |
string ID of the broker. |
folderId |
string ID of the folder that the broker belongs to. |
createdAt |
Creation timestamp. |
name |
string Name of the broker. The name is unique within the folder. |
description |
string Description of the broker. 0-256 characters long. |
labels |
string Resource labels as |
status |
enum Status Status of the broker.
|
logOptions |
Options for logging broker events |
LogOptions
Field |
Description |
disabled |
bool Is logging from broker disabled. |
logGroupId |
string Entry should be written to log group resolved by ID. Includes only one of the fields Log entries destination. |
folderId |
string Entry should be written to default log group for specified folder. Includes only one of the fields Log entries destination. |
minLevel |
enum Level Minimum log entry level. See LogLevel.Level for details.
|