Skip to main content

List Import Jobs

List all import jobs specific to a cluster.


GET
https://controller.${CLOUD_REGION}.zillizcloud.com/v1/vector/collections/import/list

Example

📘Notes

This API requires an API key as the authentication token.

export CLOUD_REGION="gcp-us-west1"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
export API_KEY=""

curl --location --request GET "https://controller.api.${CLOUD_REGION}.zillizcloud.com/v1/vector/collections/import/list?clusterId=${CLUSTER_ID}&pageSize=10&currentPage=1" \
--header "Authorization: Bearer ${API_KEY}"

Possible return is similar to the following.

{
"code": 200,
"data": {
"tasks": [
{
"collectionName": "medium_articles",
"jobId": "job-xxxxxxxxxxxxxxxxxxxxxx",
"state": "ImportRunning"
},
{
"collectionName": "medium_articles",
"jobId": "2b93fef7-xxxx-xxxx-xxxx-f82afd598ff1",
"state": "ImportCompleted"
}
],
"count": 2,
"currentPage": 1,
"pageSize": 10
}
}

Request

Parameters

  • Query parameters

    ParameterDescription
    clusterIdstring(required)
    The ID of a specific cluster on Zilliz Cloud.
    pageSizestring
    The number of records to return at each request.
    currentPagestring
    The current page number.
  • No path parameters required

  • Header parameters

    ParameterDescription
    Authorizationstring

Request Body

No request body required

Response

Returns a list of import jobs.

Response Body

{
"code": "string",
"data": {
"count": "string",
"currentPage": "string",
"pageSize": "string",
"records": [
{
"collectionName": "string",
"jobId": "string",
"state": "string"
}
]
}
}
PropertyDescription
codeinteger
Indicates whether the request succeeds.
  • 0: The request succeeds.
  • Others: Some error occurs.
dataobject
data.countstring
Total number of records listed in this response.
data.currentPagestring
The current page number for your reference.
data.pageSizestring
The maximum number of records to be included in each return.
data[].recordsarray
data[].records[]object
data[].records[].collectionNamestring
The target collection name of a import task.
data[].records[].jobIdstring
The ID of an import task.
data[].records[].statestring
The corresponding status of the import task. Possible values are ImportRunning, ImportCompleted and ImportFailed.

Error Response

{
"code": integer,
"message": string
}
PropertyDescription
codeinteger
Indicates whether the request succeeds.
  • 0: The request succeeds.
  • Others: Some error occurs.
messagestring
Indicates the possible reason for the reported error.