Skip to main content

groups

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

Overview​

Namegroups
TypeResource
Idoci.streaming.groups

Fields​

The following fields are returned by SELECT queries:

Group State

NameDatatypeDescription
groupNamestringThe name of the consumer group.
reservationsarrayAn array of the partition reservations of a group.
streamIdstringThe streamId for which the group exists.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectstreamId, groupName, regionopc-request-idReturns the current state of a consumer group.<br />
updateupdatestreamId, groupName, regionopc-request-idForcefully changes the current location of a group as a whole; reseting processing location of all consumers to a particular location in the stream.<br />

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
groupNamestringThe name of the consumer group.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
streamIdstringThe OCID of the stream.
opc-request-idstringThe unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

SELECT examples​

Returns the current state of a consumer group.<br />

SELECT
groupName,
reservations,
streamId
FROM oci.streaming.groups
WHERE streamId = '{{ streamId }}' -- required
AND groupName = '{{ groupName }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

UPDATE examples​

Forcefully changes the current location of a group as a whole; reseting processing location of all consumers to a particular location in the stream.<br />

UPDATE oci.streaming.groups
SET
time = '{{ time }}',
type = '{{ type }}'
WHERE
streamId = '{{ streamId }}' --required
AND groupName = '{{ groupName }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id}}';