All Products
Search
Document Center

DataWorks:Milvus

Last Updated:Mar 26, 2026

DataWorks supports two connection modes for Milvus data sources: Instance mode for Alibaba Cloud-managed Milvus instances, and Connection string mode for self-managed or third-party Milvus endpoints.

  • Data source type: milvus

  • `ConnectionPropertiesMode` values: InstanceMode | UrlMode

Prerequisites

Before you begin, ensure that you have:

  • The connection mode that applies to your setup (instance mode or connection string mode)

  • For instance mode: the instance ID and region ID of your Alibaba Cloud Milvus instance

  • For connection string mode: the endpoint URL of your Milvus instance

  • A username and password for the Milvus instance

Instance mode

Use instance mode when your Milvus instance is hosted on Alibaba Cloud. DataWorks looks up the instance using its ID and region, so no endpoint URL is needed.

ParameterTypeRequiredExampleDescription
ConnectionPropertiesModeStringYesInstanceModeThe connection mode. Set to InstanceMode for instance mode.
regionIdStringYescn-shanghaiThe ID of the region where the instance resides.
instanceIdStringYesc-dd8f****The instance ID.
databaseStringNodefaultThe name of the database.
usernameStringYesrootThe username.
passwordStringYesxxxxxThe password.
envTypeStringYesProdThe environment type. Valid values: Dev (development environment), Prod (production environment).

Configuration example

{
    "envType": "Prod",
    "regionId": "cn-beijing",
    "instanceId": "c-dd8f71372xxxx",
    "database": "default",
    "username": "root",
    "password": "xxxxxxx"
}

Connection string mode

Use connection string mode when connecting to a self-managed Milvus cluster or a third-party Milvus endpoint. Provide the full endpoint URL directly.

ParameterTypeRequiredExampleDescription
ConnectionPropertiesModeStringYesUrlModeThe connection mode. Set to UrlMode for connection string mode.
endpointStringYeshttp://cmilvusxxxx.com:19530The endpoint URL of the Milvus instance.
databaseStringNodefaultThe name of the database.
usernameStringYesrootThe username.
passwordStringYesxxxxxThe password.
authTypeStringYesUSERNAME_PASSWORDThe authentication method. Set to USERNAME_PASSWORD when using username and password authentication.
envTypeStringYesProdThe environment type. Valid values: Dev (development environment), Prod (production environment).

Configuration example

{
    "envType": "Prod",
    "endpoint": "http://c-dd8xxxxx.milvus.aliyuncs.com:19530",
    "database": "default",
    "username": "root",
    "password": "xxxx",
    "authType": "USERNAME_PASSWORD"
}