Create Import Jobs
This operation imports the prepared data files to a Zilliz Cloud cluster. To learn how to prepare your data files, read Prepare Data Import.
The base URL for this API is in the following format:
https://api.cloud.zilliz.com
export BASE_URL="https://api.cloud.zilliz.com"
The authentication token should be an API key with appropriate privileges.
The name of the database that to which the collection belongs . Setting this to a non-existing database results in an error.
The ID of the cluster to which the collection belongs.
Setting this to a non-existing cluster results in an error. You can get the cluster ID by calling the /v2/clusters
endpoint, or copy the cluster ID from the Zilliz Cloud console.
The name of the target collection. Setting this to a non-existing collection results in an error.
The name of the target partition. Setting this to a non-existing partition results in an error.
The URL of the object to import. This URL should be accessible to the S3-compatible object storage service, such as AWS S3, GCS, Azure blob storage.
The access key of the object storage service.
The secret access key of the object storage service.
A temporary token for you to access the object storage service. The token name and the way to obtain it may vary with cloud providers. For details, refer to the FAQ.
export TOKEN="YOUR_API_KEY"
curl --request POST \
--url "${BASE_URL}/v2/vectordb/jobs/import/create" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"collectionName": "medium_articles",
"partitionName": "",
"objectUrl": "https://s3.us-west-2.amazonaws.com/publicdataset.zillizcloud.com/medium_articles_2020_dpr/medium_articles_2020_dpr.json",
"accessKey": "",
"secretKey": ""
}'
Response code.
Response payload which carries the IDs of the created bulk-import jobs.
A created bulk-import job.
The ID of the current bulk-import job.
Returns an error message.
Response code.
Error message.
{
"code": 0,
"data": {
"jobId": "job-xxxxxxxxxxxxxxxxxxxxx"
}
}