List indexes
This operation returns a list of all indexes in a project.
PINECONE_API_KEY="YOUR_API_KEY"
curl -i -X GET "https://api.pinecone.io/indexes" \
-H "Api-Key: $PINECONE_API_KEY"
{
"indexes": [
{
"name": "serverless-index",
"metric": "cosine",
"dimension": 1536,
"status": {
"ready": true,
"state": "Ready"
},
"host": "serverless-index-4zo0ijk.svc.dev-us-west2-aws.pinecone.io",
"spec": {
"serverless": {
"region": "us-west-2",
"cloud": "aws"
}
}
},
{
"name": "pod-index",
"metric": "cosine",
"dimension": 1536,
"status": {
"ready": true,
"state": "Ready"
},
"host": "pod-index-4zo0ijk.svc.us-west2-aws.pinecone.io",
"spec": {
"pod": {
"replicas": 1,
"shards": 1,
"pods": 1,
"pod_type": "p1.x1",
"environment": "us-west2-aws"
}
}
}
]
}
PINECONE_API_KEY="YOUR_API_KEY"
curl -i -X GET "https://api.pinecone.io/indexes" \
-H "Api-Key: $PINECONE_API_KEY"
Authorizations
Response
The list of indexes that exist in the project.
The IndexModel describes the configuration and status of a Pinecone index.
The name of the index. Resource name must be 1-45 characters long, start and end with an alphanumeric character, and consist only of lower case alphanumeric characters or '-'.
1 - 45
"example-index"
The dimensions of the vectors to be inserted in the index.
1 <= x <= 20000
1536
The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'.
cosine
, euclidean
, dotproduct
Configuration needed to deploy a pod-based index.
The environment where the index is hosted.
"us-east1-gcp"
The number of replicas. Replicas duplicate your index. They provide higher availability and throughput. Replicas can be scaled up or down as your needs change.
x >= 1
The number of shards. Shards split your data across multiple pods so you can fit more data into an index.
x >= 1
The type of pod to use. One of s1
, p1
, or p2
appended with .
and one of x1
, x2
, x4
, or x8
.
The number of pods to be used in the index. This should be equal to shards
x replicas
.'
x >= 1
1
Configuration for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when metadata_config
is present, only specified metadata fields are indexed. These configurations are only valid for use with pod-based indexes.
By default, all metadata is indexed; to change this behavior, use this property to specify an array of metadata fields that should be indexed.
{
"indexed": ["genre", "title", "imdb_rating"]
}
The name of the collection to be used as the source for the index.
"movie-embeddings"
{
"environment": "us-east1-gcp",
"replicas": 1,
"shards": 1,
"pod_type": "p1.x1",
"pods": 1,
"metadata_config": {
"indexed": ["genre", "title", "imdb_rating"]
},
"source_collection": "movie-embeddings"
}
Configuration needed to deploy a serverless index.
The public cloud where you would like your index hosted. Serverless indexes can be hosted only in AWS at this time.
gcp
, aws
, azure
"aws"
The region where you would like your index to be created. Serverless indexes can be created only in the us-west-2 region of AWS at this time.
"us-west-2"
{
"pod": {
"environment": "us-east-1-aws",
"replicas": 1,
"shards": 1,
"pod_type": "p1.x1",
"pods": 1,
"metadata_config": {
"indexed": ["genre", "title", "imdb_rating"]
}
}
}
The URL address where the index is hosted.
"semantic-search-c01b5b5.svc.us-west1-gcp.pinecone.io"
Was this page helpful?
PINECONE_API_KEY="YOUR_API_KEY"
curl -i -X GET "https://api.pinecone.io/indexes" \
-H "Api-Key: $PINECONE_API_KEY"
{
"indexes": [
{
"name": "serverless-index",
"metric": "cosine",
"dimension": 1536,
"status": {
"ready": true,
"state": "Ready"
},
"host": "serverless-index-4zo0ijk.svc.dev-us-west2-aws.pinecone.io",
"spec": {
"serverless": {
"region": "us-west-2",
"cloud": "aws"
}
}
},
{
"name": "pod-index",
"metric": "cosine",
"dimension": 1536,
"status": {
"ready": true,
"state": "Ready"
},
"host": "pod-index-4zo0ijk.svc.us-west2-aws.pinecone.io",
"spec": {
"pod": {
"replicas": 1,
"shards": 1,
"pods": 1,
"pod_type": "p1.x1",
"environment": "us-west2-aws"
}
}
}
]
}