indexes = pc.list_indexes()for idx in indexes: print(idx["name"], idx["dimension"], idx["status"]["state"])# Just names:names = pc.list_indexes().names()
Method
Returns
list_indexes()
IndexList object with full metadata
.names()
List of index name strings
Node.js listIndexes()
{ indexes: [...] }
2. Describing Index Configuration
Example: Describe Index
info = pc.describe_index("products")print(info.host, info.dimension, info.metric, info.spec)
Field
Description
name
Index name
dimension
Vector dim
metric
Distance metric
host
API endpoint
spec
Serverless or pod config
status
{ ready, state }
deletion_protection
enabled / disabled
3. Checking Index Statistics
Example: Stats
index = pc.Index("products")stats = index.describe_index_stats()print(stats["total_vector_count"], stats["dimension"])for ns, info in stats["namespaces"].items(): print(ns, info["vector_count"])