GET
/
bulk
/
imports
/
{id}
from pinecone import Pinecone

pc = Pinecone(api_key="YOUR_API_KEY")

# To get the unique host for an index, 
# see https://docs.pinecone.io/guides/data/target-an-index
index = pc.Index(host="INDEX_HOST")

index.describe_import(id="101")
{
  "id": "101",
  "uri": "s3://BUCKET_NAME/PATH/TO/DIR",
  "status": "Pending",
  "created_at": "2024-08-19T20:49:00.754Z",
  "finished_at": "2024-08-19T20:49:00.754Z",
  "percent_complete": 42.2,
  "records_imported": 1000000
}

This feature is in public preview and available only on Standard and Enterprise plans.

from pinecone import Pinecone

pc = Pinecone(api_key="YOUR_API_KEY")

# To get the unique host for an index, 
# see https://docs.pinecone.io/guides/data/target-an-index
index = pc.Index(host="INDEX_HOST")

index.describe_import(id="101")
{
  "id": "101",
  "uri": "s3://BUCKET_NAME/PATH/TO/DIR",
  "status": "Pending",
  "created_at": "2024-08-19T20:49:00.754Z",
  "finished_at": "2024-08-19T20:49:00.754Z",
  "percent_complete": 42.2,
  "records_imported": 1000000
}

Authorizations

Api-Key
string
header
required

An API Key is required to call Pinecone APIs. Get yours from the console.

Path Parameters

id
string
required
Required string length: 1 - 1000

Response

200
application/json
Details of the import operation

The model for an import operation.

id
string

Unique identifier for the import operation.

Required string length: 1 - 1000
uri
string

The URI from where the data is imported.

status
enum<string>

The status of the operation.

Available options:
Pending,
InProgress,
Failed,
Completed,
Cancelled
createdAt
string

The start time of the import operation.

finishedAt
string

The end time of the import operation.

percentComplete
number

The progress made by the operation, as a percentage.

Required range: 0 < x < 100
recordsImported
integer

The number of records successfully imported.

error
string

The error message if the import process failed.