List all aplications

Hello!
I am having a bit of trouble in order to use gRPC API in python to list all the aplications already created.

Looking to the class ‘ApplicationServiceStub’ and the method ‘list’, I understand that I need to perform a ‘ListApplicationRequest’, defined as

class ListApplicationsRequest(_message.Message):
slots = (“limit”, “offset”, “search”, “tenant_id”)
LIMIT_FIELD_NUMBER: _ClassVar[int]
OFFSET_FIELD_NUMBER: _ClassVar[int]
SEARCH_FIELD_NUMBER: _ClassVar[int]
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
limit: int
offset: int
search: str
tenant_id: str
def init(self, limit: _Optional[int] = …, offset: _Optional[int] = …, search: _Optional[str] = …, tenant_id: _Optional[str] = …) → None: …

However, I dont understand what they are and how to define the parameters ‘limit’, ‘offset’ and ‘search’. Could you please help me to understand what they are?

Thanks for reading.

Fields and their explanations:

https://www.chirpstack.io/docs/chirpstack/api/api.html#api-ListApplicationsRequest

1 Like