Pinecone TypeScript SDK - v9.0.0
    Preparing search index...

    Class RestoreJobs

    Restore jobs track the creation of indexes from backups. Access them through Pinecone.restoreJobs; do not construct this class directly. Start a restore with Backups.createIndex.

    import { Pinecone } from '@pinecone-database/pinecone';

    const pc = new Pinecone();
    const jobs = await pc.restoreJobs.list();
    Index
    • Lists one page of restore jobs in the project.

      Parameters

      • Optionaloptions: ListRestoreJobsOptions

        Page size and continuation token. Omit to fetch the first page with the default size.

      Returns Promise<RestoreJobList>

      Jobs in data; pass pagination.next as paginationToken to fetch the next page.

      import { Pinecone } from '@pinecone-database/pinecone';

      const pc = new Pinecone();
      const page = await pc.restoreJobs.list({ limit: 10 });
      console.log(page.data, page.pagination?.next);