REST Resource: projects.locations.clusters.consumerGroups

Resource: ConsumerGroup

A Kafka consumer group in a given cluster.

JSON representation
{
  "name": string,
  "topics": {
    string: {
      object (ConsumerTopicMetadata)
    },
    ...
  }
}
Fields
name

string

Identifier. The name of the consumer group. The consumerGroup segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumerGroup}

topics

map (key: string, value: object (ConsumerTopicMetadata))

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}

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

ConsumerTopicMetadata

Metadata for a consumer group corresponding to a specific topic.

JSON representation
{
  "partitions": {
    integer: {
      object (ConsumerPartitionMetadata)
    },
    ...
  }
}
Fields
partitions

map (key: integer, value: object (ConsumerPartitionMetadata))

Optional. Metadata for this consumer group and topic for all partition indexes it has metadata for.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

ConsumerPartitionMetadata

Metadata for a consumer group corresponding to a specific partition.

JSON representation
{
  "offset": string,
  "metadata": string
}
Fields
offset

string (int64 format)

Required. The offset for this partition, or 0 if no offset has been committed.

metadata

string

Optional. The associated metadata for this partition, or empty if it does not exist.

Methods

delete

Deletes a single consumer group.

get

Returns the properties of a single consumer group.

list

Lists the consumer groups in a given cluster.

patch

Updates the properties of a single consumer group.