Skip to contents

Retrieves details about a specific import operation.

Usage

describe_import(index, import_id)

Arguments

index

Name of the index

import_id

The ID of the import operation to describe

Value

List with http response, content (import details), and status_code. Content includes: - id: Import operation ID - uri: Source URI - status: Current status ("Pending", "InProgress", "Completed", "Failed", "Cancelled") - createdAt: Timestamp when import was created - finishedAt: Timestamp when import finished (if complete) - percentComplete: Progress percentage - recordsImported: Number of records successfully imported - error: Error message (if failed)

Examples

if (FALSE) { # \dontrun{
# Start an import
import_result <- start_import("my-index", "s3://bucket/data/")
import_id <- import_result$content$id

# Check status
status <- describe_import("my-index", import_id)
print(status$content$status)
print(status$content$percentComplete)
} # }