Operation to list and filter namespaces in the store.
This operation allows exploring the organization of data, finding specific collections, and navigating the namespace hierarchy.
List all namespaces under the "documents" path:
ListNamespacesOp(
match_conditions=(MatchCondition(match_type="prefix", path=("documents",)),),
max_depth=2
)
List all namespaces that end with "v1":
ListNamespacesOp(
match_conditions=(MatchCondition(match_type="suffix", path=("v1",)),),
limit=50
)ListNamespacesOp()NamedTupleOptional conditions for filtering namespaces.
All user namespaces:
(MatchCondition(match_type="prefix", path=("users",)),)
All namespaces that start with "docs" and end with "draft":
(
MatchCondition(match_type="prefix", path=("docs",)),
MatchCondition(match_type="suffix", path=("draft",))
) Maximum depth of namespace hierarchy to return.
Maximum number of namespaces to return.
Number of namespaces to skip for pagination.