Opcjonalnie: Maksymalna liczba subskrypcji do zwrotu. Usługa może zwrócić mniej niż ta wartość.
Jeśli wartość jest nieokreślona lub ma wartość 0, zwracanych jest maksymalnie 50 subskrypcji.
Maksymalna wartość to 100. Jeśli podasz wartość większą niż 100, system zwróci tylko 100 subskrypcji.
pageToken
string
Opcjonalnie: Token strony otrzymany z poprzedniego wywołania listy subskrypcji. Podaj ten parametr, aby pobrać kolejną stronę.
Przy dzieleniu na strony wartość filtra powinna być zgodna z wywołaniem, które dostarczyło token strony. Przekazywanie innej wartości może prowadzić do nieoczekiwanych wyników.
filter
string
Wymagane. Filtr zapytania.
Subskrypcje możesz filtrować według typu zdarzenia (event_types) i zasobu docelowego (target_resource).
Musisz określić w zapytaniu co najmniej 1 typ zdarzenia. Aby filtrować wiele typów zdarzeń, użyj operatora OR.
Aby filtrować dane zarówno według typu zdarzenia, jak i zasobu docelowego, użyj operatora AND i podaj pełną nazwę zasobu, np. //chat.googleapis.com/spaces/{space}.
Prawidłowe są na przykład te zapytania:
event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created"
event_types:"google.workspace.chat.message.v1.created" AND
target_resource="//chat.googleapis.com/spaces/{space}"
( event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created" ) AND
target_resource="//chat.googleapis.com/spaces/{space}"
Serwer odrzuca nieprawidłowe zapytania z błędem INVALID_ARGUMENT.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-09-10 UTC."],[[["Lists existing Google Workspace subscriptions, allowing developers to manage event delivery configurations."],["Provides filtering options by event types and target resources for refined subscription retrieval."],["Uses pagination to handle large result sets, enabling retrieval of subscriptions in manageable chunks."],["Requires specific authorization scopes for access, ensuring secure management of sensitive data."],["Available within the Google Workspace Developer Preview Program, offering early access to this functionality."]]],["This describes how to list Google Workspace subscriptions using a `GET` request to `https://workspaceevents.googleapis.com/v1beta/subscriptions`. You can filter subscriptions by event type and target resource using the `filter` query parameter. Optional parameters include `pageSize` (max 100) and `pageToken` for pagination. The request body must be empty. The response contains a list of subscriptions and a `nextPageToken` for subsequent pages. Access requires specified OAuth scopes.\n"]]