This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true to the request query parameters.
Get the end offsets for all partitions of a stream. The end offset is the offset of the next record that will be written to the partition.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:streams-read.
stringThe Resource Identifier (RID) of a Dataset.
stringThe name of a Branch.
stringIf provided, this endpoint will only read from the stream corresponding to the specified view RID. If not provided, this endpoint will read from the latest stream on the branch.
Providing this value is an advanced configuration, to be used when additional control over the underlying streaming data structures is needed.
booleanEnables the use of preview functionality.
map<PartitionId, long>The end offsets for each partition of a stream.
stringThe identifier for a partition of a Foundry stream.
1
2
3
curl \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/highScale/streams/datasets/ri.foundry.main.dataset.c26f11c8-cdb3-4f44-9f5d-9816ea1c82da/streams/master/getEndOffsets?viewRid=ri.foundry-streaming.main.view.ecd4f0f6-8526-4468-9eda-14939449ad79&preview=true"1
2
3
4
{
"0": 100,
"1": 200
}| Error Name | ||
|---|---|---|
Get | Error Code | PERMISSION_DENIED |
| Status Code | 403 | |
| Description | Could not getEndOffsets the Stream. | |
| Parameters | datasetRid, streamBranchName | |
See Errors for a general overview of errors in the platform.