Getting the Apache Kafka® patch version
To find out the Apache Kafka® patch version installed in a Managed Service for Apache Kafka® cluster, follow these steps:
- In the management console
, navigate to the relevant folder. - Navigate to the Managed Service for Kafka service.
- Find the Version field containing the Apache Kafka® version and patch version info.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To get Apache Kafka® cluster details, run the following command:
yc managed-kafka cluster get <cluster_name_or_ID>
Result:
id: c9q8d856r3nt********
folder_id: b1gurba83v2i********
created_at: "2025-06-16T10:57:42.582559Z"
name: kafka947
environment: PRODUCTION
...
config:
version: "3.6"
kafka:
resources:
resource_preset_id: s3-c2-m8
disk_size: "34359738368"
disk_type_id: network-ssd
...
rest_api_config:
enabled: true
kafka_ui_config:
enabled: true
patch_version: 3.6.1
...
Where patch_version is the Apache Kafka® patch version.
You can get the cluster ID and name with the list of clusters in the folder.
-
Get an IAM token for API authentication and place it in an environment variable:
export IAM_TOKEN="<IAM_token>" -
Call the Cluster.get method, e.g., via the following cURL
request:curl \ --request GET \ --header "Authorization: Bearer $IAM_TOKEN" \ --url 'https://mdb.api.cloud.yandex.net/managed-kafka/v1/clusters/<cluster_ID>'You can get the cluster ID with the list of clusters in the folder.
-
Check the server response to make sure your request was successful.
-
Find the
patchVersionfield the server response.
-
Get an IAM token for API authentication and place it in an environment variable:
export IAM_TOKEN="<IAM_token>" -
Clone the cloudapi
repository:cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapiBelow, we assume that the repository contents reside in the
~/cloudapi/directory. -
Call the ClusterService/Get method, e.g., via the following gRPCurl
request:grpcurl \ -format json \ -import-path ~/cloudapi/ \ -import-path ~/cloudapi/third_party/googleapis/ \ -proto ~/cloudapi/yandex/cloud/mdb/kafka/v1/cluster_service.proto \ -rpc-header "Authorization: Bearer $IAM_TOKEN" \ -d '{ "cluster_id": "<cluster_ID>" }' \ mdb.api.cloud.yandex.net:443 \ yandex.cloud.mdb.kafka.v1.ClusterService.GetYou can get the cluster ID with the list of clusters in the folder.
-
Check the server response to make sure your request was successful.
-
Find the
patch_versionfield the server response.