API 异同
为了提供更好的用户体验,Zilliz Cloud 的运行方式与 Milvus 略有不同。本文将介绍 Zilliz Cloud 和 Milvus 在 API 操作方面的差异。
如果您计划从 Milvus 迁移到 Zilliz Cloud,可能需要对历史代码进行一些必要的修改。
特定场景权限
下表比较了各业务场景下 API 各接口的可用性。注意,BYOC 场景下 API 可用性与企业版基本一致,仅有少许例外。更多详情,可查看使用限制。
API | GUI 操作 | 企业版/BYOC | |
|---|---|---|---|
别名 | alterAlias() | ||
createAlias() | ︎ | ||
dropAlias() | ︎ | ||
describeAlias() | ︎ | ||
listAliases() | ︎ | ||
认证 | createCredential() | ︎ | |
deleteCredential() | ︎ | ||
listCredUsers() | ︎ | ||
updateCredential() | ︎ | ||
批量插入 | bulkInsert() | ︎ | |
getBulkInsertState() | ︎ | ︎ | |
listBulkInsertTasks() | ︎ | ︎ | |
Collection | getCollectionStatistics() | ︎ | |
createCollection() | ︎ | ︎ | |
describeCollection() | ︎ | ︎ | |
dropCollection() | ︎ | ︎ | |
alterCollection() | ︎ | ||
getLoadingProgress() | ︎ | ︎ | |
getPersistentSgementInfo() | |||
getQuerySegmentInfo() | |||
getReplicas() | |||
insert() | ︎ | ||
loadCollection() | ︎ | ︎ | |
releaseCollection() | ︎ | ︎ | |
showCollections() | ︎ | ︎ | |
getLoadState() | ︎ | ︎ | |
renameCollection() | ︎ | ︎ | |
upsert() | ︎ | ||
数据库 | ListDatabases | ︎ | |
DropDatabase | ︎ | ||
CreateDatabase | ︎ | ||
索引 | createIndex() | ︎ | ︎ |
describeIndex() | ︎ | ︎ | |
dropIndex() | ︎ | ︎ | |
getIndexBuildProgress() | ︎ | ︎ | |
getIndexState() | ︎ | ︎ | |
管理 | getCompactionState() | ︎ | |
getCompactionStateWithPlan() | ︎ | ||
getFlushState() | |||
getMetrics() | |||
loadBalance() | |||
manualCompact() | ︎ | ||
分区 | createPartition() | ︎ | |
dropPartition() | ︎ | ||
getPartitionStatistics() | ︎ | ||
hasPartiotion() | ︎ | ||
loadPartitions() | ︎ | ||
releasePartitions() | ︎ | ||
showPartitions() | ︎ | ||
搜索 & 查询 | search() | ︎ | ︎ |
query() | ︎ | ||
访问控制(RBAC) | addUserToRole() | ︎ | ︎ |
createRole() | ︎ | ||
dropRole() | ︎ | ||
grantRolePrivilege() | |||
removeUserFromRole() | ︎ | ︎ | |
revokeRolePrivilege() | |||
selectGrantForRole() | ︎ | ||
selectGrantForRoleAndObject() | ︎ | ||
selectRole() | ︎ | ||
selectUser() | ︎ | ||
grantPrivilegeV2() | ︎ | ||
revokePrivilegeV2() | ︎ | ||
系统 | getVersion() | ︎ | ︎ |
checkHealth() | ︎ |