docs-example-4zo0ijk.svc.us-east1-aws.pinecone.io. Data operations, such as upsert, search, and fetch, go to the index host. Operations that manage indexes go to api.pinecone.io instead.
When you target an index by name, the SDK first calls describe_index to look up the index host. Thatβs an extra call to api.pinecone.io and another point of failure, so in production, target the index by host instead.
Target by index host (recommended)
This method is recommended for production:When using Private Endpoints for private connectivity between your application and Pinecone, you must target the index using the Private Endpoint URL for the host.
Get an index host
You can get the unique DNS host for an index from the Pinecone console or the Pinecone API. To get an index host from the Pinecone console:- Open the Pinecone console.
- Select the project containing the index.
- Select the index.
- Copy the URL under HOST.
host value: