Index
ManagedKafka
(interface)AccessConfig
(message)CapacityConfig
(message)Cluster
(message)Cluster.State
(enum)ConsumerGroup
(message)ConsumerPartitionMetadata
(message)ConsumerTopicMetadata
(message)CreateClusterRequest
(message)CreateTopicRequest
(message)DeleteClusterRequest
(message)DeleteConsumerGroupRequest
(message)DeleteTopicRequest
(message)GcpConfig
(message)GetClusterRequest
(message)GetConsumerGroupRequest
(message)GetTopicRequest
(message)ListClustersRequest
(message)ListClustersResponse
(message)ListConsumerGroupsRequest
(message)ListConsumerGroupsResponse
(message)ListTopicsRequest
(message)ListTopicsResponse
(message)NetworkConfig
(message)OperationMetadata
(message)RebalanceConfig
(message)RebalanceConfig.Mode
(enum)Topic
(message)UpdateClusterRequest
(message)UpdateConsumerGroupRequest
(message)UpdateTopicRequest
(message)
ManagedKafka
The service that a client application uses to manage Apache Kafka clusters, topics and consumer groups.
CreateCluster |
---|
Creates a new cluster in a given project and location.
|
CreateTopic |
---|
Creates a new topic in a given project and location.
|
DeleteCluster |
---|
Deletes a single cluster.
|
DeleteConsumerGroup |
---|
Deletes a single consumer group.
|
DeleteTopic |
---|
Deletes a single topic.
|
GetCluster |
---|
Returns the properties of a single cluster.
|
GetConsumerGroup |
---|
Returns the properties of a single consumer group.
|
GetTopic |
---|
Returns the properties of a single topic.
|
ListClusters |
---|
Lists the clusters in a given project and location.
|
ListConsumerGroups |
---|
Lists the consumer groups in a given cluster.
|
ListTopics |
---|
Lists the topics in a given cluster.
|
UpdateCluster |
---|
Updates the properties of a single cluster.
|
UpdateConsumerGroup |
---|
Updates the properties of a single consumer group.
|
UpdateTopic |
---|
Updates the properties of a single topic.
|
AccessConfig
The configuration of access to the Kafka cluster.
Fields | |
---|---|
network_ |
Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified. |
CapacityConfig
A capacity configuration of a Kafka cluster.
Fields | |
---|---|
vcpu_ |
Required. The number of vCPUs to provision for the cluster. Minimum: 3. |
memory_ |
Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB). |
Cluster
An Apache Kafka cluster deployed in a location.
Fields | |
---|---|
name |
Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id} |
create_ |
Output only. The time when the cluster was created. |
update_ |
Output only. The time when the cluster was last updated. |
labels |
Optional. Labels as key value pairs. |
capacity_ |
Required. Capacity configuration for the Kafka cluster. |
rebalance_ |
Optional. Rebalance configuration for the Kafka cluster. |
state |
Output only. The current state of the cluster. |
Union field platform_config . Platform specific configuration properties for a Kafka cluster. platform_config can be only one of the following: |
|
gcp_ |
Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform. |
satisfies_ |
Output only. Reserved for future use. |
satisfies_ |
Output only. Reserved for future use. |
State
The state of the cluster.
Enums | |
---|---|
STATE_UNSPECIFIED |
A state was not specified. |
CREATING |
The cluster is being created. |
ACTIVE |
The cluster is active. |
DELETING |
The cluster is being deleted. |
ConsumerGroup
A Kafka consumer group in a given cluster.
Fields | |
---|---|
name |
Identifier. The name of the consumer group. The |
topics |
Optional. Metadata for this consumer group for all topics it has metadata for. The key of the map is a topic name, structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic} |
ConsumerPartitionMetadata
Metadata for a consumer group corresponding to a specific partition.
Fields | |
---|---|
offset |
Required. The current offset for this partition, or 0 if no offset has been committed. |
metadata |
Optional. The associated metadata for this partition, or empty if it does not exist. |
ConsumerTopicMetadata
Metadata for a consumer group corresponding to a specific topic.
Fields | |
---|---|
partitions |
Optional. Metadata for this consumer group and topic for all partition indexes it has metadata for. |
CreateClusterRequest
Request for CreateCluster.
Fields | |
---|---|
parent |
Required. The parent region in which to create the cluster. Structured like |
cluster_ |
Required. The ID to use for the cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression This value is structured like: |
cluster |
Required. Configuration of the cluster to create. Its |
request_ |
Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
CreateTopicRequest
Request for CreateTopic.
Fields | |
---|---|
parent |
Required. The parent cluster in which to create the topic. Structured like |
topic_ |
Required. The ID to use for the topic, which will become the final component of the topic's name. This value is structured like: |
topic |
Required. Configuration of the topic to create. Its |
DeleteClusterRequest
Request for DeleteCluster.
Fields | |
---|---|
name |
Required. The name of the cluster to delete. |
request_ |
Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
DeleteConsumerGroupRequest
Request for DeleteConsumerGroup.
Fields | |
---|---|
name |
Required. The name of the consumer group to delete. |
DeleteTopicRequest
Request for DeleteTopic.
Fields | |
---|---|
name |
Required. The name of the topic to delete. |
GcpConfig
Configuration properties for a Kafka cluster deployed to Google Cloud Platform.
Fields | |
---|---|
access_ |
Required. Access configuration for the Kafka cluster. |
kms_ |
Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. |
GetClusterRequest
Request for GetCluster.
Fields | |
---|---|
name |
Required. The name of the cluster whose configuration to return. |
GetConsumerGroupRequest
Request for GetConsumerGroup.
Fields | |
---|---|
name |
Required. The name of the consumer group whose configuration to return. |
GetTopicRequest
Request for GetTopic.
Fields | |
---|---|
name |
Required. The name of the topic whose configuration to return. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}. |
ListClustersRequest
Request for ListClusters.
Fields | |
---|---|
parent |
Required. The parent location whose clusters are to be listed. Structured like |
page_ |
Optional. The maximum number of clusters to return. The service may return fewer than this value. If unspecified, server will pick an appropriate default. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
filter |
Optional. Filter expression for the result. |
order_ |
Optional. Order by fields for the result. |
ListClustersResponse
Response for ListClusters.
Fields | |
---|---|
clusters[] |
The list of Clusters in the requested parent. |
next_ |
A token that can be sent as |
unreachable[] |
Locations that could not be reached. |
ListConsumerGroupsRequest
Request for ListConsumerGroups.
Fields | |
---|---|
parent |
Required. The parent cluster whose consumer groups are to be listed. Structured like |
page_ |
Optional. The maximum number of consumer groups to return. The service may return fewer than this value. If unset or zero, all consumer groups for the parent is returned. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListConsumerGroupsResponse
Response for ListConsumerGroups.
Fields | |
---|---|
consumer_ |
The list of consumer group in the requested parent. The order of the consumer groups is unspecified. |
next_ |
A token that can be sent as |
ListTopicsRequest
Request for ListTopics.
Fields | |
---|---|
parent |
Required. The parent cluster whose topics are to be listed. Structured like |
page_ |
Optional. The maximum number of topics to return. The service may return fewer than this value. If unset or zero, all topics for the parent is returned. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListTopicsResponse
Response for ListTopics.
Fields | |
---|---|
topics[] |
The list of topics in the requested parent. The order of the topics is unspecified. |
next_ |
A token that can be sent as |
NetworkConfig
The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka cluster.
Fields | |
---|---|
subnet |
Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id} The subnet must be located in the same region as the Kafka cluster. The project may differ. Multiple subnets from the same parent network must not be specified. The CIDR range of the subnet must be within the IPv4 address ranges for private networks, as specified in RFC 1918. |
OperationMetadata
Represents the metadata of the long-running operation.
Fields | |
---|---|
create_ |
Output only. The time the operation was created. |
end_ |
Output only. The time the operation finished running. |
target |
Output only. Server-defined resource path for the target of the operation. |
verb |
Output only. Name of the verb executed by the operation. |
status_ |
Output only. Human-readable status of the operation, if any. |
requested_ |
Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [Operation.error][] value with a |
api_ |
Output only. API version used to start the operation. |
RebalanceConfig
Defines rebalancing behavior of a Kafka cluster.
Fields | |
---|---|
mode |
Optional. The rebalance behavior for the cluster. When not specified, defaults to |
Mode
The partition rebalance mode for the cluster.
Enums | |
---|---|
MODE_UNSPECIFIED |
A mode was not specified. Do not use. |
NO_REBALANCE |
Do not rebalance automatically. |
AUTO_REBALANCE_ON_SCALE_UP |
Automatically rebalance topic partitions among brokers when the cluster is scaled up. |
Topic
A Kafka topic in a given cluster.
Fields | |
---|---|
name |
Identifier. The name of the topic. The |
partition_ |
Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected. |
replication_ |
Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability. |
configs |
Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: |
UpdateClusterRequest
Request for UpdateCluster.
Fields | |
---|---|
update_ |
Required. Field mask is used to specify the fields to be overwritten in the cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields. |
cluster |
Required. The cluster to update. Its |
request_ |
Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request. The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
UpdateConsumerGroupRequest
Request for UpdateConsumerGroup.
Fields | |
---|---|
update_ |
Required. Field mask is used to specify the fields to be overwritten in the ConsumerGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields. |
consumer_ |
Required. The consumer group to update. Its |
UpdateTopicRequest
Request for UpdateTopic.
Fields | |
---|---|
update_ |
Required. Field mask is used to specify the fields to be overwritten in the Topic resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields. |
topic |
Required. The topic to update. Its |