Method list
Retrieves the list of Apache Kafka® clusters that belong to the specified folder.
HTTP request
GET https://mdb.api.cloud.yandex.net/managed-kafka/v1/clusters
Query parameters
Parameter | Description |
---|---|
folderId | Required. ID of the folder to list Apache Kafka® clusters in. To get the folder ID, make a list request. The maximum string length in characters is 50. |
pageSize | The maximum number of results per page to return. If the number of available results is larger than pageSize, the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. The maximum value is 1000. |
pageToken | Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request. The maximum string length in characters is 100. |
filter | Filter support is not currently implemented. Any filters are ignored. The maximum string length in characters is 1000. |
Response
HTTP Code: 200 - OK
{
"clusters": [
{
"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"
},
// `clusters[].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`clusters[].config.kafka`
},
"zookeeper": {
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
}
},
"zoneId": [
"string"
],
"brokersCount": "integer",
"assignPublicIp": true
},
"networkId": "string",
"health": "string",
"status": "string",
"securityGroupIds": [
"string"
]
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
clusters[] | object An Apache Kafka® cluster resource. For more information, see the Concepts section of the documentation. |
clusters[]. id |
string ID of the Apache Kafka® cluster. This ID is assigned at creation time. |
clusters[]. folderId |
string ID of the folder that the Apache Kafka® cluster belongs to. |
clusters[]. createdAt |
string (date-time) Creation timestamp. String in RFC3339 text format. |
clusters[]. 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 |
clusters[]. description |
string Description of the Apache Kafka® cluster. 0-256 characters long. |
clusters[]. labels |
object Custom labels for the Apache Kafka® cluster as |
clusters[]. environment |
string Deployment environment of the Apache Kafka® cluster.
|
clusters[]. monitoring[] |
object Metadata of monitoring system. |
clusters[]. monitoring[]. name |
string Name of the monitoring system. |
clusters[]. monitoring[]. description |
string Description of the monitoring system. |
clusters[]. monitoring[]. link |
string Link to the monitoring system charts for the Apache Kafka® cluster. |
clusters[]. config |
object Configuration of the Apache Kafka® cluster. |
clusters[]. config. version |
string Version of Apache Kafka® used in the cluster. Possible values: |
clusters[]. config. kafka |
object Configuration and resource allocation for Kafka brokers. |
clusters[]. config. kafka. resources |
object Resources allocated to Kafka brokers. |
clusters[]. 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. |
clusters[]. config. kafka. resources. diskSize |
string (int64) Volume of the storage available to a host, in bytes. |
clusters[]. config. kafka. resources. diskTypeId |
string Type of the storage environment for the host. |
clusters[]. config. kafka. kafkaConfig_2_1 |
object clusters[].config.kafka includes only one of the fields kafkaConfig_2_1 , kafkaConfig_2_6 Kafka version 2.1 broker configuration. |
clusters[]. config. kafka. kafkaConfig_2_1. compressionType |
string Сluster topics compression type.
|
clusters[]. 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 |
clusters[]. 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 |
clusters[]. 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. |
clusters[]. 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 |
clusters[]. config. kafka. kafkaConfig_2_1. logRetentionHours |
integer (int64) The number of hours to keep a log segment file before deleting it. |
clusters[]. 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 |
clusters[]. 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 |
clusters[]. 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 |
clusters[]. 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 |
clusters[]. config. kafka. kafkaConfig_2_6 |
object clusters[].config.kafka includes only one of the fields kafkaConfig_2_1 , kafkaConfig_2_6 Kafka version 2.6 broker configuration. |
clusters[]. config. kafka. kafkaConfig_2_6. compressionType |
string Сluster topics compression type.
|
clusters[]. 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 |
clusters[]. 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 |
clusters[]. 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. |
clusters[]. 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 |
clusters[]. config. kafka. kafkaConfig_2_6. logRetentionHours |
integer (int64) The number of hours to keep a log segment file before deleting it. |
clusters[]. 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 |
clusters[]. 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 |
clusters[]. 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 |
clusters[]. 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 |
clusters[]. config. zookeeper |
object Configuration and resource allocation for ZooKeeper hosts. |
clusters[]. config. zookeeper. resources |
object Resources allocated to ZooKeeper hosts. |
clusters[]. 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. |
clusters[]. config. zookeeper. resources. diskSize |
string (int64) Volume of the storage available to a host, in bytes. |
clusters[]. config. zookeeper. resources. diskTypeId |
string Type of the storage environment for the host. |
clusters[]. config. zoneId[] |
string IDs of availability zones where Kafka brokers reside. |
clusters[]. config. brokersCount |
integer (int64) The number of Kafka brokers deployed in each availability zone. |
clusters[]. config. assignPublicIp |
boolean (boolean) The flag that defines whether a public IP address is assigned to the cluster. If the value is |
clusters[]. networkId |
string ID of the network that the cluster belongs to. |
clusters[]. health |
string Aggregated cluster health.
|
clusters[]. status |
string Current state of the cluster.
|
clusters[]. securityGroupIds[] |
string User security groups |
nextPageToken | string Token that allows you to get the next page of results for list requests. If the number of results is larger than pageSize, use nextPageToken as the value for the pageToken parameter in the next list request. Each subsequent list request will have its own nextPageToken to continue paging through the results. |