Creating a Group Cursor

Create a group cursor in the Streaming service. A group cursor defines a consumer group name/instance name pair.

For information about consumer groups and instances, see Creating a Consumer Group.
  • This task can't be performed using the Console.
  • Use the oci streaming stream cursor create-group-cursor command and required parameters to create a group cursor:

    oci streaming stream cursor create-group-cursor --stream-id <stream_OCID> --group-name <consumer_group_name> --type <cursor_type> --endpoint <messages_endpoint>

    For example:

    oci streaming stream cursor create-group-cursor --stream-id ocid1.stream.oc1.phx.exampleuniqueID --group-name MyConsumerGroup --type TRIM_HORIZON --endpoint https://cell-1.streaming.us-phoenix-1.oci.oraclecloud.com
    {
      "data": {
        "value": "examplegroupcursorvalue"
      }
    }

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreateGroupCursor operation to create a cursor.