Import
Imports data from files stored in a specified object storage bucket.
The base URL for this API is in the following format:
https://controller.api.${CLOUD_REGION}.zillizcloud.com
- You need to replace
${CLOUD_REGION}
with the appropriate region for your deployment. - To get the cloud region ID, refer to On Zilliz Cloud Console or List Cloud Regions.
export CLOUD_REGION="gcp-us-west1"
export BASE_URL="https://controller.api.${CLOUD_REGION}.zillizcloud.com"
The authentication token should be an API key with appropriate privileges or a pair of colon-joined username and password, like username:password
.
The ID of a cluster to which this operation applies.
The name of the collection to which this operation applies.
The name of the partition to which this operation applies.
The URL of the object that stores the data to be imported.
The access key used to access the specified object.
The secret access key used to access the specified object.
export TOKEN="YOUR_API_KEY"
curl --request POST \
--url "${BASE_URL}/v1/vector/collections/import" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"collectionName": "medium_articles",
"objectUrl": "gs://docs-demo/1af78216-xxxx-2b0a73c566ed/1.parquet",
"accessKey": "xxxxxx",
"secretKey": "xxxxxx"
}'
Response code.
Response payload, which is an object containing the import job ID.
The ID of the import job that has been submitted.
Returns an error message.
Response code.
Error message.
{
"code": 200,
"data": {
"jobId": "job-xxxxxxxxxxxxxxxxxxxxxx"
}
}