Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • Машинное обучение
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Истории успеха
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Managed Service for Apache Kafka®
  • Начало работы
  • Управление доступом
  • Правила тарификации
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • Move
        • Start
        • Stop
        • RescheduleMaintenance
        • ListLogs
        • StreamLogs
        • ListOperations
        • ListHosts
  • Метрики Yandex Monitoring
  • Аудитные логи Audit Trails
  • Публичные материалы
  • История изменений
  • Вопросы и ответы
  • Обучающие курсы

В этой статье:

  • gRPC request
  • ListClustersRequest
  • ListClustersResponse
  • Cluster
  • Monitoring
  • ConfigSpec
  • Kafka
  • Resources
  • KafkaConfig2_8
  • KafkaConfig3
  • Zookeeper
  • Access
  • RestAPIConfig
  • DiskSizeAutoscaling
  • KRaft
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • WeeklyMaintenanceWindow
  • MaintenanceOperation
  1. Справочник API
  2. gRPC (англ.)
  3. Cluster
  4. List

Managed Service for Apache Kafka® API, gRPC: ClusterService.List

Статья создана
Yandex Cloud
Обновлена 17 декабря 2024 г.
  • gRPC request
  • ListClustersRequest
  • ListClustersResponse
  • Cluster
  • Monitoring
  • ConfigSpec
  • Kafka
  • Resources
  • KafkaConfig2_8
  • KafkaConfig3
  • Zookeeper
  • Access
  • RestAPIConfig
  • DiskSizeAutoscaling
  • KRaft
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • WeeklyMaintenanceWindow
  • MaintenanceOperation

Retrieves the list of Apache Kafka® clusters that belong to the specified folder.

gRPC requestgRPC request

rpc List (ListClustersRequest) returns (ListClustersResponse)

ListClustersRequestListClustersRequest

{
  "folder_id": "string",
  "page_size": "int64",
  "page_token": "string",
  "filter": "string"
}

Field

Description

folder_id

string

Required field. ID of the folder to list Apache Kafka® clusters in.

To get the 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 results is larger than page_size, the service returns a ListClustersResponse.next_page_token that can be used to get the next page of results in subsequent list requests.

page_token

string

Page token.

To get the next page of results, set page_token to the ListClustersResponse.next_page_token returned by the previous list request.

filter

string

Filter support is not currently implemented. Any filters are ignored.

ListClustersResponseListClustersResponse

{
  "clusters": [
    {
      "id": "string",
      "folder_id": "string",
      "created_at": "google.protobuf.Timestamp",
      "name": "string",
      "description": "string",
      "labels": "map<string, string>",
      "environment": "Environment",
      "monitoring": [
        {
          "name": "string",
          "description": "string",
          "link": "string"
        }
      ],
      "config": {
        "version": "string",
        "kafka": {
          "resources": {
            "resource_preset_id": "string",
            "disk_size": "int64",
            "disk_type_id": "string"
          },
          // Includes only one of the fields `kafka_config_2_8`, `kafka_config_3`
          "kafka_config_2_8": {
            "compression_type": "CompressionType",
            "log_flush_interval_messages": "google.protobuf.Int64Value",
            "log_flush_interval_ms": "google.protobuf.Int64Value",
            "log_flush_scheduler_interval_ms": "google.protobuf.Int64Value",
            "log_retention_bytes": "google.protobuf.Int64Value",
            "log_retention_hours": "google.protobuf.Int64Value",
            "log_retention_minutes": "google.protobuf.Int64Value",
            "log_retention_ms": "google.protobuf.Int64Value",
            "log_segment_bytes": "google.protobuf.Int64Value",
            "log_preallocate": "google.protobuf.BoolValue",
            "socket_send_buffer_bytes": "google.protobuf.Int64Value",
            "socket_receive_buffer_bytes": "google.protobuf.Int64Value",
            "auto_create_topics_enable": "google.protobuf.BoolValue",
            "num_partitions": "google.protobuf.Int64Value",
            "default_replication_factor": "google.protobuf.Int64Value",
            "message_max_bytes": "google.protobuf.Int64Value",
            "replica_fetch_max_bytes": "google.protobuf.Int64Value",
            "ssl_cipher_suites": [
              "string"
            ],
            "offsets_retention_minutes": "google.protobuf.Int64Value",
            "sasl_enabled_mechanisms": [
              "SaslMechanism"
            ]
          },
          "kafka_config_3": {
            "compression_type": "CompressionType",
            "log_flush_interval_messages": "google.protobuf.Int64Value",
            "log_flush_interval_ms": "google.protobuf.Int64Value",
            "log_flush_scheduler_interval_ms": "google.protobuf.Int64Value",
            "log_retention_bytes": "google.protobuf.Int64Value",
            "log_retention_hours": "google.protobuf.Int64Value",
            "log_retention_minutes": "google.protobuf.Int64Value",
            "log_retention_ms": "google.protobuf.Int64Value",
            "log_segment_bytes": "google.protobuf.Int64Value",
            "log_preallocate": "google.protobuf.BoolValue",
            "socket_send_buffer_bytes": "google.protobuf.Int64Value",
            "socket_receive_buffer_bytes": "google.protobuf.Int64Value",
            "auto_create_topics_enable": "google.protobuf.BoolValue",
            "num_partitions": "google.protobuf.Int64Value",
            "default_replication_factor": "google.protobuf.Int64Value",
            "message_max_bytes": "google.protobuf.Int64Value",
            "replica_fetch_max_bytes": "google.protobuf.Int64Value",
            "ssl_cipher_suites": [
              "string"
            ],
            "offsets_retention_minutes": "google.protobuf.Int64Value",
            "sasl_enabled_mechanisms": [
              "SaslMechanism"
            ]
          }
          // end of the list of possible fields
        },
        "zookeeper": {
          "resources": {
            "resource_preset_id": "string",
            "disk_size": "int64",
            "disk_type_id": "string"
          }
        },
        "zone_id": [
          "string"
        ],
        "brokers_count": "google.protobuf.Int64Value",
        "assign_public_ip": "bool",
        "unmanaged_topics": "bool",
        "schema_registry": "bool",
        "access": {
          "data_transfer": "bool"
        },
        "rest_api_config": {
          "enabled": "bool"
        },
        "disk_size_autoscaling": {
          "planned_usage_threshold": "int64",
          "emergency_usage_threshold": "int64",
          "disk_size_limit": "int64"
        },
        "kraft": {
          "resources": {
            "resource_preset_id": "string",
            "disk_size": "int64",
            "disk_type_id": "string"
          }
        }
      },
      "network_id": "string",
      "health": "Health",
      "status": "Status",
      "security_group_ids": [
        "string"
      ],
      "host_group_ids": [
        "string"
      ],
      "deletion_protection": "bool",
      "maintenance_window": {
        // Includes only one of the fields `anytime`, `weekly_maintenance_window`
        "anytime": "AnytimeMaintenanceWindow",
        "weekly_maintenance_window": {
          "day": "WeekDay",
          "hour": "int64"
        }
        // end of the list of possible fields
      },
      "planned_operation": {
        "info": "string",
        "delayed_until": "google.protobuf.Timestamp"
      }
    }
  ],
  "next_page_token": "string"
}

Field

Description

clusters[]

Cluster

List of Apache Kafka® clusters.

next_page_token

string

Token that allows you to get the next page of results for list requests.

If the number of results is larger than ListClustersRequest.page_size, use next_page_token as the value for the ListClustersRequest.page_token parameter in the next list request.
Each subsequent list request will have its own next_page_token to continue paging through the results.

ClusterCluster

An Apache Kafka® cluster resource.
For more information, see the Concepts section of the documentation.

Field

Description

id

string

ID of the Apache Kafka® cluster.
This ID is assigned at creation time.

folder_id

string

ID of the folder that the Apache Kafka® cluster belongs to.

created_at

google.protobuf.Timestamp

Creation timestamp.

name

string

Name of the Apache Kafka® cluster.
The name must be unique within the folder. 1-63 characters long. Value must match the regular expression [a-zA-Z0-9_-]*.

description

string

Description of the Apache Kafka® cluster. 0-256 characters long.

labels

object (map<string, string>)

Custom labels for the Apache Kafka® cluster as key:value pairs.
A maximum of 64 labels per resource is allowed.

environment

enum Environment

Deployment environment of the Apache Kafka® cluster.

  • ENVIRONMENT_UNSPECIFIED
  • PRODUCTION: Stable environment with a conservative update policy when only hotfixes are applied during regular maintenance.
  • PRESTABLE: Environment with a more aggressive update policy when new versions are rolled out irrespective of backward compatibility.

monitoring[]

Monitoring

Description of monitoring systems relevant to the Apache Kafka® cluster.

  • The field is ignored for response of List method.

config

ConfigSpec

Configuration of the Apache Kafka® cluster.

  • The field is ignored for response of List method.

network_id

string

ID of the network that the cluster belongs to.

health

enum Health

Aggregated cluster health.

  • HEALTH_UNKNOWN: State of the cluster is unknown (Host.health of all hosts in the cluster is UNKNOWN).
  • ALIVE: Cluster is alive and well (Host.health of all hosts in the cluster is ALIVE).
  • DEAD: Cluster is inoperable (Host.health of all hosts in the cluster is DEAD).
  • DEGRADED: Cluster is in degraded state (Host.health of at least one of the hosts in the cluster is not ALIVE).

status

enum Status

Current state of the cluster.

  • STATUS_UNKNOWN: Cluster state is unknown.
  • CREATING: Cluster is being created.
  • RUNNING: Cluster is running normally.
  • ERROR: Cluster encountered a problem and cannot operate.
  • UPDATING: Cluster is being updated.
  • STOPPING: Cluster is stopping.
  • STOPPED: Cluster stopped.
  • STARTING: Cluster is starting.

security_group_ids[]

string

User security groups

host_group_ids[]

string

Host groups hosting VMs of the cluster.

deletion_protection

bool

Deletion Protection inhibits deletion of the cluster

maintenance_window

MaintenanceWindow

Window of maintenance operations.

planned_operation

MaintenanceOperation

Scheduled maintenance operation.

MonitoringMonitoring

Metadata of monitoring system.

Field

Description

name

string

Name of the monitoring system.

description

string

Description of the monitoring system.

link

string

Link to the monitoring system charts for the Apache Kafka® cluster.

ConfigSpecConfigSpec

Field

Description

version

string

Version of Apache Kafka® used in the cluster. Possible values: 2.8, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6.

kafka

Kafka

Configuration and resource allocation for Kafka brokers.

zookeeper

Zookeeper

Configuration and resource allocation for ZooKeeper hosts.

zone_id[]

string

IDs of availability zones where Kafka brokers reside.

brokers_count

google.protobuf.Int64Value

The number of Kafka brokers deployed in each availability zone.

assign_public_ip

bool

The flag that defines whether a public IP address is assigned to the cluster.
If the value is true, then Apache Kafka® cluster is available on the Internet via it's public IP address.

unmanaged_topics

bool

Allows to manage topics via AdminAPI
Deprecated. Feature enabled permanently.

schema_registry

bool

Enables managed schema registry on cluster

access

Access

Access policy for external services.

rest_api_config

RestAPIConfig

Configuration of REST API.

disk_size_autoscaling

DiskSizeAutoscaling

DiskSizeAutoscaling settings

kraft

KRaft

Configuration and resource allocation for KRaft-controller hosts.

KafkaKafka

Field

Description

resources

Resources

Resources allocated to Kafka brokers.

kafka_config_2_8

KafkaConfig2_8

Includes only one of the fields kafka_config_2_8, kafka_config_3.

Kafka broker configuration.

kafka_config_3

KafkaConfig3

Includes only one of the fields kafka_config_2_8, kafka_config_3.

Kafka broker configuration.

ResourcesResources

Field

Description

resource_preset_id

string

ID of the preset for computational resources available to a host (CPU, memory, etc.).
All available presets are listed in the documentation.

disk_size

int64

Volume of the storage available to a host, in bytes. Must be greater than 2 * partition segment size in bytes * partitions count, so each partition can have one active segment file and one closed segment file that can be deleted.

disk_type_id

string

Type of the storage environment for the host.

KafkaConfig2_8KafkaConfig2_8

Kafka version 2.8 broker configuration.

Field

Description

compression_type

enum CompressionType

Cluster topics compression type.

  • COMPRESSION_TYPE_UNSPECIFIED
  • COMPRESSION_TYPE_UNCOMPRESSED: no codec (uncompressed).
  • COMPRESSION_TYPE_ZSTD: Zstandard codec.
  • COMPRESSION_TYPE_LZ4: LZ4 codec.
  • COMPRESSION_TYPE_SNAPPY: Snappy codec.
  • COMPRESSION_TYPE_GZIP: GZip codec.
  • COMPRESSION_TYPE_PRODUCER: the codec to use is set by a producer (can be any of ZSTD, LZ4, GZIP or SNAPPY codecs).

log_flush_interval_messages

google.protobuf.Int64Value

The number of messages accumulated on a log partition before messages are flushed to disk.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig2_8.flush_messages setting.

log_flush_interval_ms

google.protobuf.Int64Value

The maximum time (in milliseconds) that a message in any topic is kept in memory before flushed to disk.
If not set, the value of log_flush_scheduler_interval_ms is used.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig2_8.flush_ms setting.

log_flush_scheduler_interval_ms

google.protobuf.Int64Value

The frequency of checks (in milliseconds) for any logs that need to be flushed to disk.
This check is done by the log flusher.

log_retention_bytes

google.protobuf.Int64Value

Partition size limit; Kafka will discard old log segments to free up space if delete TopicConfig2_8.cleanup_policy is in effect.
This setting is helpful if you need to control the size of a log due to limited disk space.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig2_8.retention_bytes setting.

log_retention_hours

google.protobuf.Int64Value

The number of hours to keep a log segment file before deleting it.

log_retention_minutes

google.protobuf.Int64Value

The number of minutes to keep a log segment file before deleting it.

If not set, the value of log_retention_hours is used.

log_retention_ms

google.protobuf.Int64Value

The number of milliseconds to keep a log segment file before deleting it.

If not set, the value of log_retention_minutes is used.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig2_8.retention_ms setting.

log_segment_bytes

google.protobuf.Int64Value

The maximum size of a single log file.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig2_8.segment_bytes setting.

log_preallocate

google.protobuf.BoolValue

Should pre allocate file when create new segment?

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig2_8.preallocate setting.

socket_send_buffer_bytes

google.protobuf.Int64Value

The SO_SNDBUF buffer of the socket server sockets. If the value is -1, the OS default will be used.

socket_receive_buffer_bytes

google.protobuf.Int64Value

The SO_RCVBUF buffer of the socket server sockets. If the value is -1, the OS default will be used.

auto_create_topics_enable

google.protobuf.BoolValue

Enable auto creation of topic on the server

num_partitions

google.protobuf.Int64Value

Default number of partitions per topic on the whole cluster

default_replication_factor

google.protobuf.Int64Value

Default replication factor of the topic on the whole cluster

message_max_bytes

google.protobuf.Int64Value

The largest record batch size allowed by Kafka. Default value: 1048588.

replica_fetch_max_bytes

google.protobuf.Int64Value

The number of bytes of messages to attempt to fetch for each partition. Default value: 1048576.

ssl_cipher_suites[]

string

A list of cipher suites.

offsets_retention_minutes

google.protobuf.Int64Value

Offset storage time after a consumer group loses all its consumers. Default: 10080.

sasl_enabled_mechanisms[]

enum SaslMechanism

The list of SASL mechanisms enabled in the Kafka server. Default: [SCRAM_SHA_512].

  • SASL_MECHANISM_UNSPECIFIED
  • SASL_MECHANISM_SCRAM_SHA_256
  • SASL_MECHANISM_SCRAM_SHA_512

KafkaConfig3KafkaConfig3

Kafka version 3.x broker configuration.

Field

Description

compression_type

enum CompressionType

Cluster topics compression type.

  • COMPRESSION_TYPE_UNSPECIFIED
  • COMPRESSION_TYPE_UNCOMPRESSED: no codec (uncompressed).
  • COMPRESSION_TYPE_ZSTD: Zstandard codec.
  • COMPRESSION_TYPE_LZ4: LZ4 codec.
  • COMPRESSION_TYPE_SNAPPY: Snappy codec.
  • COMPRESSION_TYPE_GZIP: GZip codec.
  • COMPRESSION_TYPE_PRODUCER: the codec to use is set by a producer (can be any of ZSTD, LZ4, GZIP or SNAPPY codecs).

log_flush_interval_messages

google.protobuf.Int64Value

The number of messages accumulated on a log partition before messages are flushed to disk.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig3.flush_messages setting.

log_flush_interval_ms

google.protobuf.Int64Value

The maximum time (in milliseconds) that a message in any topic is kept in memory before flushed to disk.
If not set, the value of log_flush_scheduler_interval_ms is used.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig3.flush_ms setting.

log_flush_scheduler_interval_ms

google.protobuf.Int64Value

The frequency of checks (in milliseconds) for any logs that need to be flushed to disk.
This check is done by the log flusher.

log_retention_bytes

google.protobuf.Int64Value

Partition size limit; Kafka will discard old log segments to free up space if delete TopicConfig3.cleanup_policy is in effect.
This setting is helpful if you need to control the size of a log due to limited disk space.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig3.retention_bytes setting.

log_retention_hours

google.protobuf.Int64Value

The number of hours to keep a log segment file before deleting it.

log_retention_minutes

google.protobuf.Int64Value

The number of minutes to keep a log segment file before deleting it.

If not set, the value of log_retention_hours is used.

log_retention_ms

google.protobuf.Int64Value

The number of milliseconds to keep a log segment file before deleting it.

If not set, the value of log_retention_minutes is used.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig3.retention_ms setting.

log_segment_bytes

google.protobuf.Int64Value

The maximum size of a single log file.

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig3.segment_bytes setting.

log_preallocate

google.protobuf.BoolValue

Should pre allocate file when create new segment?

This is the global cluster-level setting that can be overridden on a topic level by using the TopicConfig3.preallocate setting.

socket_send_buffer_bytes

google.protobuf.Int64Value

The SO_SNDBUF buffer of the socket server sockets. If the value is -1, the OS default will be used.

socket_receive_buffer_bytes

google.protobuf.Int64Value

The SO_RCVBUF buffer of the socket server sockets. If the value is -1, the OS default will be used.

auto_create_topics_enable

google.protobuf.BoolValue

Enable auto creation of topic on the server

num_partitions

google.protobuf.Int64Value

Default number of partitions per topic on the whole cluster

default_replication_factor

google.protobuf.Int64Value

Default replication factor of the topic on the whole cluster

message_max_bytes

google.protobuf.Int64Value

The largest record batch size allowed by Kafka. Default value: 1048588.

replica_fetch_max_bytes

google.protobuf.Int64Value

The number of bytes of messages to attempt to fetch for each partition. Default value: 1048576.

ssl_cipher_suites[]

string

A list of cipher suites.

offsets_retention_minutes

google.protobuf.Int64Value

Offset storage time after a consumer group loses all its consumers. Default: 10080.

sasl_enabled_mechanisms[]

enum SaslMechanism

The list of SASL mechanisms enabled in the Kafka server. Default: [SCRAM_SHA_512].

  • SASL_MECHANISM_UNSPECIFIED
  • SASL_MECHANISM_SCRAM_SHA_256
  • SASL_MECHANISM_SCRAM_SHA_512

ZookeeperZookeeper

Field

Description

resources

Resources

Resources allocated to ZooKeeper hosts.

AccessAccess

Field

Description

data_transfer

bool

Allow access for DataTransfer.

RestAPIConfigRestAPIConfig

Field

Description

enabled

bool

Is REST API enabled for this cluster.

DiskSizeAutoscalingDiskSizeAutoscaling

Field

Description

planned_usage_threshold

int64

Threshold of storage usage (in percent) that triggers automatic scaling of the storage during the maintenance window. Zero value means disabled threshold.

emergency_usage_threshold

int64

Threshold of storage usage (in percent) that triggers immediate automatic scaling of the storage. Zero value means disabled threshold.

disk_size_limit

int64

New storage size (in bytes) that is set when one of the thresholds is achieved.

KRaftKRaft

Field

Description

resources

Resources

Resources allocated to KRaft controller hosts.

MaintenanceWindowMaintenanceWindow

Field

Description

anytime

AnytimeMaintenanceWindow

Includes only one of the fields anytime, weekly_maintenance_window.

weekly_maintenance_window

WeeklyMaintenanceWindow

Includes only one of the fields anytime, weekly_maintenance_window.

AnytimeMaintenanceWindowAnytimeMaintenanceWindow

Field

Description

Empty

WeeklyMaintenanceWindowWeeklyMaintenanceWindow

Field

Description

day

enum WeekDay

  • WEEK_DAY_UNSPECIFIED
  • MON
  • TUE
  • WED
  • THU
  • FRI
  • SAT
  • SUN

hour

int64

Hour of the day in UTC.

MaintenanceOperationMaintenanceOperation

Field

Description

info

string

delayed_until

google.protobuf.Timestamp

Была ли статья полезна?

Предыдущая
Get
Следующая
Create
Проект Яндекса
© 2025 ООО «Яндекс.Облако»