topics_partitions
Creates, updates, deletes, gets or lists a topics_partitions
resource.
Overview
Name | topics_partitions |
Type | Resource |
Id | google.pubsublite.topics_partitions |
Fields
The following fields are returned by SELECT
queries:
- admin_projects_locations_topics_get_partitions
Successful response
Name | Datatype | Description |
---|---|---|
partitionCount | string (int64) | The number of partitions in the topic. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
admin_projects_locations_topics_get_partitions | select | projectsId , locationsId , topicsId | Returns the partition information for the requested topic. |
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 | |
topicsId | string |
SELECT
examples
- admin_projects_locations_topics_get_partitions
Returns the partition information for the requested topic.
SELECT
partitionCount
FROM google.pubsublite.topics_partitions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND topicsId = '{{ topicsId }}' -- required;