listRestoreSnapshotJobs()
This operation lists restore snapshot jobs, optionally scoped to a database and collection.
public ListRestoreSnapshotJobsResp listRestoreSnapshotJobs(ListRestoreSnapshotJobsReq request)
Request Syntax
listRestoreSnapshotJobs(ListRestoreSnapshotJobsReq.builder()
.databaseName(String databaseName)
.collectionName(String collectionName)
.build()
)
BUILDER METHODS:
databaseName(String databaseName)The name of the database that contains the collection. If omitted, the current database is used.
collectionName(String collectionName)The name of the collection associated with the snapshot operation.
RETURNS:
ListRestoreSnapshotJobsResp
A response containing restore snapshot jobs that match the request filter.
EXCEPTIONS:
MilvusClientException
This exception is raised when required parameters are missing, numeric parameters are out of range, or the server returns an error for this operation.
Example
import io.milvus.v2.service.snapshot.request.ListRestoreSnapshotJobsReq;
import io.milvus.v2.service.snapshot.response.ListRestoreSnapshotJobsResp;
ListRestoreSnapshotJobsReq request = ListRestoreSnapshotJobsReq.builder()
.databaseName("default")
.collectionName("book_chunks")
.build();
ListRestoreSnapshotJobsResp response = client.listRestoreSnapshotJobs(request);