cursors
Creates, updates, deletes, gets or lists a cursors
resource.
Overview
Name | cursors |
Type | Resource |
Id | google.pubsublite.cursors |
Fields
The following fields are returned by SELECT
queries:
- cursor_projects_locations_subscriptions_cursors_list
Successful response
Name | Datatype | Description |
---|---|---|
cursor | object | The value of the cursor. (id: Cursor) |
partition | string (int64) | The partition this is for. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
cursor_projects_locations_subscriptions_cursors_list | select | projectsId , locationsId , subscriptionsId | pageSize , pageToken | Returns all committed cursor information for a subscription. |
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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
subscriptionsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- cursor_projects_locations_subscriptions_cursors_list
Returns all committed cursor information for a subscription.
SELECT
cursor,
partition
FROM google.pubsublite.cursors
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND subscriptionsId = '{{ subscriptionsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';