Method get
Returns the specified Apache Kafka® cluster.
To get the list of available Apache Kafka® clusters, make a list request.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-kafka/v1/clusters/{clusterId}
Path parameters
Parameter | Description |
---|---|
clusterId | Required. ID of the Apache Kafka® Cluster resource to return. To get the cluster ID, make a list request. The maximum string length in characters is 50. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"environment": "string",
"monitoring": [
{
"name": "string",
"description": "string",
"link": "string"
}
],
"config": {
"version": "string",
"kafka": {
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
},
// `config.kafka` includes only one of the fields `kafkaConfig_2_1`, `kafkaConfig_2_6`
"kafkaConfig_2_1": {
"compressionType": "string",
"logFlushIntervalMessages": "integer",
"logFlushIntervalMs": "integer",
"logFlushSchedulerIntervalMs": "integer",
"logRetentionBytes": "integer",
"logRetentionHours": "integer",
"logRetentionMinutes": "integer",
"logRetentionMs": "integer",
"logSegmentBytes": "integer",
"logPreallocate": true
},
"kafkaConfig_2_6": {
"compressionType": "string",
"logFlushIntervalMessages": "integer",
"logFlushIntervalMs": "integer",
"logFlushSchedulerIntervalMs": "integer",
"logRetentionBytes": "integer",
"logRetentionHours": "integer",
"logRetentionMinutes": "integer",
"logRetentionMs": "integer",
"logSegmentBytes": "integer",
"logPreallocate": true
},
// end of the list of possible fields`config.kafka`
},
"zookeeper": {
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
}
},
"zoneId": [
"string"
],
"brokersCount": "integer",
"assignPublicIp": true
},
"networkId": "string",
"health": "string",
"status": "string",
"securityGroupIds": [
"string"
]
}
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. |
folderId | string ID of the folder that the Apache Kafka® cluster belongs to. |
createdAt | string (date-time) Creation timestamp. String in RFC3339 text format. |
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 |
description | string Description of the Apache Kafka® cluster. 0-256 characters long. |
labels | object Custom labels for the Apache Kafka® cluster as |
environment | string Deployment environment of the Apache Kafka® cluster.
|
monitoring[] | object Metadata of monitoring system. |
monitoring[]. name |
string Name of the monitoring system. |
monitoring[]. description |
string Description of the monitoring system. |
monitoring[]. link |
string Link to the monitoring system charts for the Apache Kafka® cluster. |
config | object Configuration of the Apache Kafka® cluster. |
config. version |
string Version of Apache Kafka® used in the cluster. Possible values: |
config. kafka |
object Configuration and resource allocation for Kafka brokers. |
config. kafka. resources |
object Resources allocated to Kafka brokers. |
config. kafka. resources. resourcePresetId |
string ID of the preset for computational resources available to a host (CPU, memory, etc.). All available presets are listed in the documentation. |
config. kafka. resources. diskSize |
string (int64) Volume of the storage available to a host, in bytes. |
config. kafka. resources. diskTypeId |
string Type of the storage environment for the host. |
config. kafka. kafkaConfig_2_1 |
object config.kafka includes only one of the fields kafkaConfig_2_1 , kafkaConfig_2_6 Kafka version 2.1 broker configuration. |
config. kafka. kafkaConfig_2_1. compressionType |
string Сluster topics compression type.
|
config. kafka. kafkaConfig_2_1. logFlushIntervalMessages |
integer (int64) 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 |
config. kafka. kafkaConfig_2_1. logFlushIntervalMs |
integer (int64) 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 This is the global cluster-level setting that can be overridden on a topic level by using the |
config. kafka. kafkaConfig_2_1. logFlushSchedulerIntervalMs |
integer (int64) The frequency of checks (in milliseconds) for any logs that need to be flushed to disk. This check is done by the log flusher. |
config. kafka. kafkaConfig_2_1. logRetentionBytes |
integer (int64) Partition size limit; Kafka will discard old log segments to free up space if This is the global cluster-level setting that can be overridden on a topic level by using the |
config. kafka. kafkaConfig_2_1. logRetentionHours |
integer (int64) The number of hours to keep a log segment file before deleting it. |
config. kafka. kafkaConfig_2_1. logRetentionMinutes |
integer (int64) The number of minutes to keep a log segment file before deleting it. If not set, the value of |
config. kafka. kafkaConfig_2_1. logRetentionMs |
integer (int64) The number of milliseconds to keep a log segment file before deleting it. If not set, the value of This is the global cluster-level setting that can be overridden on a topic level by using the |
config. kafka. kafkaConfig_2_1. logSegmentBytes |
integer (int64) 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 |
config. kafka. kafkaConfig_2_1. logPreallocate |
boolean (boolean) 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 |
config. kafka. kafkaConfig_2_6 |
object config.kafka includes only one of the fields kafkaConfig_2_1 , kafkaConfig_2_6 Kafka version 2.6 broker configuration. |
config. kafka. kafkaConfig_2_6. compressionType |
string Сluster topics compression type.
|
config. kafka. kafkaConfig_2_6. logFlushIntervalMessages |
integer (int64) 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 |
config. kafka. kafkaConfig_2_6. logFlushIntervalMs |
integer (int64) 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 This is the global cluster-level setting that can be overridden on a topic level by using the |
config. kafka. kafkaConfig_2_6. logFlushSchedulerIntervalMs |
integer (int64) The frequency of checks (in milliseconds) for any logs that need to be flushed to disk. This check is done by the log flusher. |
config. kafka. kafkaConfig_2_6. logRetentionBytes |
integer (int64) Partition size limit; Kafka will discard old log segments to free up space if This is the global cluster-level setting that can be overridden on a topic level by using the |
config. kafka. kafkaConfig_2_6. logRetentionHours |
integer (int64) The number of hours to keep a log segment file before deleting it. |
config. kafka. kafkaConfig_2_6. logRetentionMinutes |
integer (int64) The number of minutes to keep a log segment file before deleting it. If not set, the value of |
config. kafka. kafkaConfig_2_6. logRetentionMs |
integer (int64) The number of milliseconds to keep a log segment file before deleting it. If not set, the value of This is the global cluster-level setting that can be overridden on a topic level by using the |
config. kafka. kafkaConfig_2_6. logSegmentBytes |
integer (int64) 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 |
config. kafka. kafkaConfig_2_6. logPreallocate |
boolean (boolean) 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 |
config. zookeeper |
object Configuration and resource allocation for ZooKeeper hosts. |
config. zookeeper. resources |
object Resources allocated to ZooKeeper hosts. |
config. zookeeper. resources. resourcePresetId |
string ID of the preset for computational resources available to a host (CPU, memory, etc.). All available presets are listed in the documentation. |
config. zookeeper. resources. diskSize |
string (int64) Volume of the storage available to a host, in bytes. |
config. zookeeper. resources. diskTypeId |
string Type of the storage environment for the host. |
config. zoneId[] |
string IDs of availability zones where Kafka brokers reside. |
config. brokersCount |
integer (int64) The number of Kafka brokers deployed in each availability zone. |
config. assignPublicIp |
boolean (boolean) The flag that defines whether a public IP address is assigned to the cluster. If the value is |
networkId | string ID of the network that the cluster belongs to. |
health | string Aggregated cluster health.
|
status | string Current state of the cluster.
|
securityGroupIds[] | string User security groups |