Skip to main content

topics_partitions

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

Overview

Nametopics_partitions
TypeResource
Idgoogle.pubsublite.topics_partitions

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
partitionCountstring (int64)The number of partitions in the topic.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
admin_projects_locations_topics_get_partitionsselectprojectsId, locationsId, topicsIdReturns 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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
topicsIdstring

SELECT examples

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;