Skip to main content

connector_offsets_requests

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

Overview

Nameconnector_offsets_requests
TypeResource
Idconfluent.connect.connector_offsets_requests

Fields

The following fields are returned by SELECT queries:

Connector Offsets Request Status.

NameDatatypeDescription
applied_atstring (date-time)The time at which the offsets were applied. The time is in UTC, ISO 8601 format. (example: 2024-02-20T15:14:19.000Z)
previous_offsetsarrayArray of offsets which are categorised into partitions.
requestobjectThe request made to alter offsets.
statusobjectThe response of the alter offsets operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connectv1_connector_offsets_request_statusselectconnector_name, environment_id, kafka_cluster_idGet the status of the previous alter offset request.
alter_connectv1_connector_offsets_requestexecconnector_name, environment_id, kafka_cluster_id, typeRequest to alter the offsets of a connector. This supports the ability to PATCH/DELETE the offsets of a connector.
Note, you will see momentary downtime as this will internally stop the connector, while the offsets are being altered.
You can only make one alter offsets request at a time for a connector.

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
connector_namestringThe unique name of the connector.
environment_idstringThe unique identifier of the environment this resource belongs to.
kafka_cluster_idstringThe unique identifier for the Kafka cluster.

SELECT examples

Get the status of the previous alter offset request.

SELECT
applied_at,
previous_offsets,
request,
status
FROM confluent.connect.connector_offsets_requests
WHERE connector_name = '{{ connector_name }}' -- required
AND environment_id = '{{ environment_id }}' -- required
AND kafka_cluster_id = '{{ kafka_cluster_id }}' -- required
;

Lifecycle Methods

Request to alter the offsets of a connector. This supports the ability to PATCH/DELETE the offsets of a connector.
Note, you will see momentary downtime as this will internally stop the connector, while the offsets are being altered.
You can only make one alter offsets request at a time for a connector.

EXEC confluent.connect.connector_offsets_requests.alter_connectv1_connector_offsets_request
@connector_name='{{ connector_name }}' --required,
@environment_id='{{ environment_id }}' --required,
@kafka_cluster_id='{{ kafka_cluster_id }}' --required
@@json=
'{
"type": "{{ type }}",
"offsets": "{{ offsets }}"
}'
;