跳到主要内容
版本:v2.6.x

listVolumes()

Lists volumes with optional project, type, and pagination filters.

Java
public ListVolumesResponse listVolumes(ListVolumesRequest request)

Request Syntax

Java
ListVolumesRequest.builder()
.projectId(projectId)
.pageSize(pageSize)
.currentPage(currentPage)
.type(type)
.build();

BUILDER METHODS:

  • projectId(String projectId)

    The ID of the Zilliz Cloud project.

  • pageSize(Integer pageSize)

    The number of volumes to return on each page.

  • currentPage(Integer currentPage)

    The page number to return.

  • type(String type)

    The optional volume type filter: MANAGED or EXTERNAL.

RETURNS:

ListVolumesResponse

EXCEPTIONS:

  • MilvusClientExceptions

    Raised when any error occurs during this operation. Inspect the exception message for the exact failure reason.

Example

Lists volumes with optional project, type, and pagination filters.

Java
ListVolumesResponse response = volumeManager.listVolumes(
ListVolumesRequest.builder()
.projectId(PROJECT_ID)
.type("S3")
.currentPage(1)
.pageSize(20)
.build());