| page_title | subcategory | description |
|---|---|---|
openai_vector_stores Data Source - terraform-provider-openai |
# List all vector stores
data "openai_vector_stores" "all" {}
# List vector stores with specific ordering
data "openai_vector_stores" "recent" {
order = "desc" # Order by created_at descending
limit = 10
}
# List vector stores created before a specific time
data "openai_vector_stores" "older" {
before = "vs_xyz789" # List stores created before this ID
limit = 20
}
# Output total vector store count
output "total_vector_stores" {
value = length(data.openai_vector_stores.all.vector_stores)
}after(String) A cursor for use in pagination. after is an object ID that defines your place in the list.before(String) A cursor for use in pagination. before is an object ID that defines your place in the list.limit(Number) A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.order(String) Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
has_more(Boolean) Whether there are more vector stores available.id(String) The ID of this resource.vector_stores(List of Object) (see below for nested schema)
Read-Only:
created_at(Number)file_count(Number)id(String)name(String)object(String)status(String)