list_vector_tables
Use the list vector tables operation to list vector tables available to the current user.
Parameters
| Parameter | Type | Value Range | Required | Default | Description | Notes |
|---|---|---|---|---|---|---|
limit |
int |
> 0 | No | None |
Maximum number of vector tables to return. | When omitted, the service applies its default page size. |
offset |
int |
>= 0 | No | None |
Number of vector tables to skip before returning this page. | Use with limit to request later pages. |
Returns a list of all vector tables accessible to the current user, including their names and basic configuration details.
List tables and print their names
tables = client.list_vector_tables(limit=25, offset=0)
print([item.table_name for item in tables.items or []])
Return type VectorTableCollectionResponse
Returns JSON response containing an array of vector table information:
- Table names
- Comments
- Vector types
- Row counts
- Creation timestamps
Example response:
{
"items": [
{
"table_name": "DEMO_PRODUCTS",
"comment": "Demo table for SDK examples",
"status": "Empty",
"vector_type": "dense",
"vector_table_type": "BYOV",
"index_params": {
"vector_index_params": {
"auto_index": true,
"organization": "PARTITIONS",
"distance_metric": "COSINE",
"accuracy": 90,
"advanced_params": {
"partitions": 10
}
},
"parallel_creation": 4
},
"annotations": {
"metric": "cosine",
"dimension": "5"
},
"links": [
{
"rel": "self",
"href": "https://<host>/ords/<schema>/_/db-api/stable/vecdb/vector-tables/demo_products"
}
]
}
]
}