Skip to main content

VolumeManager

A VolumeManager instance maintains a connection to Zilliz Cloud's Volume service. Before creating, listing, or deleting volumes, you need to initiate a VolumeManager instance.

java
io.milvus.bulkwriter.VolumeManager

Constructor​

This constructor initializes a new VolumeManager instance designed to maintain a connection to Zilliz Cloud's Volume service.

java
VolumeManager(
VolumeManagerParam.newBuilder()
.withCloudEndpoint(String cloudEndpoint)
.withApiKey(String apiKey)
.build();
)

PARAMETERS:

  • cloudEndpoint (str) -

    [REQUIRED]

    The Zilliz Cloud endpoint, which is https://api.cloud.zilliz.com.

  • apiKey (str) -

    [REQUIRED]

    Your Zilliz Cloud API key with sufficient permissions to manage volumes on Zilliz Cloud's Volume service. To obtain a Zilliz Cloud API key, follow the steps on API Keys.

RETURN TYPE:

VolumeManager

RETURNS:

A VolumeManager instance that holds the connection settings for Zilliz Cloud's Volume service, with the following fields:

PARAMETERS:

  • cloudEndpoint (String) -

    The Zilliz Cloud endpoint used to access the Volume service.

  • apiKey (String) -

    The Zilliz Cloud API key used to authenticate Volume lifecycle operations.

Examples​

java
import io.milvus.bulkwriter.VolumeManager;
import io.milvus.bulkwriter.VolumeManagerParam;

VolumeManagerParam volumeManagerParam = VolumeManagerParam.newBuilder()
.withCloudEndpoint("https://api.cloud.zilliz.com")
.withApiKey("YOUR_API_KEY")
.build();

VolumeManager volumeManager = new VolumeManager(volumeManagerParam);
Was this page helpful?