ListImportJobsAsync()

Lists the import jobs of a collection (or all collections when CollectionName is empty).

public async Task<BulkImportResp> ListImportJobsAsync(ListImportJobsRequest request, CancellationToken cancellationToken = default)

Request Syntax

var request = new ListImportJobsRequest
{
    CollectionName = "my_collection"
};

BulkImportResp response = await bulkImport.ListImportJobsAsync(request);

REQUEST PARAMETERS:

  • DatabaseName (string) -

    The database whose import jobs to list. Defaults to "default".

  • CollectionName (string) -

    The collection whose import jobs to list; empty lists jobs of all collections.

  • ClusterId (string?) -

    The cloud deployment target (Zilliz Cloud only).

  • ProjectId (string?) -

    The cloud project ID (Zilliz Cloud only).

  • RegionId (string?) -

    The cloud region ID (Zilliz Cloud only).

RETURN TYPE:

Task

RETURNS:

A BulkImportResp object that contains the envelope returned by the bulk-import REST endpoint. See BulkImportResp for its members.

EXCEPTIONS:

  • MilvusException

    Thrown when the RPC fails or the server returns an error. Inspect the exception message for details.

Example

using Milvus.Client.V2;
using Milvus.Client.V2.Requests.Utility;
using Milvus.Client.V2.Responses.Utility;

using var bulkImport = new BulkImport(new BulkImportConfig
{
    Url = "http://localhost:19530",
    ApiKey = "..."
});

BulkImportResp response = await bulkImport.ListImportJobsAsync(new ListImportJobsRequest
{
    CollectionName = "my_collection"
});
Console.WriteLine($"code: {response.Code}, message: {response.Message}");

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?