ListRestoreSnapshotJobsAsync()

Lists the snapshot restore jobs for a collection, or all restore jobs when no collection is given.

public async Task<ListRestoreSnapshotJobsResp> ListRestoreSnapshotJobsAsync(ListRestoreSnapshotJobsReq request, CancellationToken cancellationToken = default)

Request Syntax

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

ListRestoreSnapshotJobsResp result = await client.ListRestoreSnapshotJobsAsync(request);

REQUEST PARAMETERS:

  • CollectionName (string) -

    The name of the target collection to filter jobs for. When empty, all restore jobs are listed.

  • DatabaseName (string?) -

    An optional database name to operate on. When empty, the client’s currently selected database is used.

RETURN TYPE:

Task

RETURNS:

A ListRestoreSnapshotJobsResp object.

  • Jobs (IReadOnlyList) -

    The list of restore jobs matching the collection filter. Each entry is a RestoreSnapshotJobInfo.

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.Snapshot;
using Milvus.Client.V2.Responses.Snapshot;
using Milvus.Client.V2.Types;

using var client = new MilvusClientV2(new ConnectConfig
{
    Uri = "localhost:19530",
    Username = "root",
    Password = "Milvus"
});
await client.ConnectAsync();

ListRestoreSnapshotJobsResp result = await client.ListRestoreSnapshotJobsAsync(new ListRestoreSnapshotJobsReq
{
    CollectionName = "my_collection"
});

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?