| Name | Type | Description |
|---|---|---|
prefix | list[str] | None | Default: NoneOptional list of strings representing the prefix to filter namespaces. |
suffix | list[str] | None | Default: NoneOptional list of strings representing the suffix to filter namespaces. |
max_depth | int | None | Default: None |
limit | int | Default: 100 |
offset | int | Default: 0 |
headers | Mapping[str, str] | None | Default: None |
List namespaces with optional match conditions.
client = get_sync_client(url="http://localhost:8123")
namespaces = client.store.list_namespaces(
prefix=["documents"],
max_depth=3,
limit=10,
offset=0
)
print(namespaces)
----------------------------------------------------------------
[
["documents", "user123", "reports"],
["documents", "user456", "invoices"],
...
]Optional integer specifying the maximum depth of namespaces to return.
Maximum number of namespaces to return (default is 100).
Number of namespaces to skip before returning results (default is 0).
Optional custom headers to include with the request.