Skip to main content

group_configs

Creates, updates, deletes, gets or lists a group_configs resource.

Overview

Namegroup_configs
TypeResource
Idconfluent.kafka.group_configs

Fields

The following fields are returned by SELECT queries:

Config name and value for group configuration.

NameDatatypeDescription
namestring
cluster_idstring
group_idstring
is_defaultboolean
is_read_onlyboolean
is_sensitiveboolean
kindstring
metadataobject
sourcestring
synonymsarray
valuestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kafka_group_configselectcluster_id, group_id, name, kafka_endpoint_id, region, cloud_providerGet the configuration with the specified name for the specified group. This API supports consumer groups, share groups, and streams groups.
list_kafka_group_configsselectcluster_id, group_id, kafka_endpoint_id, region, cloud_providerList all configurations for the specified group. This API supports consumer groups, share groups, and streams groups.
update_kafka_group_configreplacecluster_id, group_id, name, kafka_endpoint_id, region, cloud_provider, valueUpdate the configuration with the specified name for the specified group. This API supports consumer groups, share groups, and streams groups.
delete_kafka_group_configdeletecluster_id, group_id, name, kafka_endpoint_id, region, cloud_providerDelete the dynamic configuration override with the specified name for the specified group. After deletion, the default group configuration will be applied. This API supports consumer groups, share groups, and streams groups.
update_kafka_group_config_batchexeccluster_id, group_id, kafka_endpoint_id, region, cloud_provider, datavalidate_onlyBatch alter configurations for the specified group. This API supports consumer groups, share groups, and streams groups.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cloud_providerstringCloud provider, lowercase: aws, gcp, or azure (from the cluster spec.cloud). (default: cloud)
cluster_idstringThe Kafka cluster ID. (example: cluster-1)
group_idstringThe group ID. (example: group-1)
kafka_endpoint_idstringPer-cluster Kafka REST endpoint ID (the pkc-* host prefix from the Confluent UI Cluster -> Overview -> REST endpoint, or extract from confluent.managed_kafka_clusters.clusters spec.http_endpoint). (default: pkc-00000)
namestringThe configuration parameter name. (example: compression.type)
regionstringCloud region the cluster runs in, e.g. ap-southeast-2 (from the cluster spec.region). (default: region)
validate_onlybooleanTo validate the action can be performed successfully or not. Default: false (example: false)

SELECT examples

Get the configuration with the specified name for the specified group. This API supports consumer groups, share groups, and streams groups.

SELECT
name,
cluster_id,
group_id,
is_default,
is_read_only,
is_sensitive,
kind,
metadata,
source,
synonyms,
value
FROM confluent.kafka.group_configs
WHERE cluster_id = '{{ cluster_id }}' -- required
AND group_id = '{{ group_id }}' -- required
AND name = '{{ name }}' -- required
AND kafka_endpoint_id = '{{ kafka_endpoint_id }}' -- required
AND region = '{{ region }}' -- required
AND cloud_provider = '{{ cloud_provider }}' -- required
;

REPLACE examples

Update the configuration with the specified name for the specified group. This API supports consumer groups, share groups, and streams groups.

REPLACE confluent.kafka.group_configs
SET
value = '{{ value }}'
WHERE
cluster_id = '{{ cluster_id }}' --required
AND group_id = '{{ group_id }}' --required
AND name = '{{ name }}' --required
AND kafka_endpoint_id = '{{ kafka_endpoint_id }}' --required
AND region = '{{ region }}' --required
AND cloud_provider = '{{ cloud_provider }}' --required
AND value = '{{ value }}' --required;

DELETE examples

Delete the dynamic configuration override with the specified name for the specified group. After deletion, the default group configuration will be applied. This API supports consumer groups, share groups, and streams groups.

DELETE FROM confluent.kafka.group_configs
WHERE cluster_id = '{{ cluster_id }}' --required
AND group_id = '{{ group_id }}' --required
AND name = '{{ name }}' --required
AND kafka_endpoint_id = '{{ kafka_endpoint_id }}' --required
AND region = '{{ region }}' --required
AND cloud_provider = '{{ cloud_provider }}' --required
;

Lifecycle Methods

Batch alter configurations for the specified group. This API supports consumer groups, share groups, and streams groups.

EXEC confluent.kafka.group_configs.update_kafka_group_config_batch
@cluster_id='{{ cluster_id }}' --required,
@group_id='{{ group_id }}' --required,
@kafka_endpoint_id='{{ kafka_endpoint_id }}' --required,
@region='{{ region }}' --required,
@cloud_provider='{{ cloud_provider }}' --required,
@validate_only={{ validate_only }}
@@json=
'{
"data": "{{ data }}",
"validate_only": {{ validate_only }}
}'
;