创建 Dedicated 集群 (V2)
Create a dedicated cluster.
该 API 的 Base URL 格式如下:
https://api.cloud.zilliz.com.cn
控制面接口速率限制为单用户单接口每秒最多 20 个请求。
export BASE_URL="https://api.cloud.zilliz.com.cn"
认证令牌,应为具备适当权限的 API 密钥。
使用 application/json。
待创建集群名称。
待创建集群所属项目。
待创建集群所在项目的订阅计划。当前仅支持 Enterprise。
待创建集群使用的 CU 类型。
仅适用于 Dedicated 集群。对于 Free 和 Serverless 集群,该值为空。
可能的值可以参考下拉选项,或在 Zilliz Cloud 控制台创建集群时查看。
待创建集群使用的 CU 大小。
对于 Free 和 Serverless 集群,该值始终为 0。
对于 Standard 计划的 Dedicated 集群,该值取值范围为 1 到 32,可能的值为1、2、4、8、12、16、20、24、28、32。
对于 Enterprise 计划的 Dedicated 集群,该值取值范围为 1 到 1024,可能的值为1、2、4、8、12、16、20、24、28、32、…、64、72、80、88、…、256、272、288、…、1024。
关于 CU 大小的增量规则,请参阅 详细计划对比 中的 Deployment 部分。
BYOC 集群标识键值对标签。
BYOC 集群的自定义存储桶配置。
The name of the custom storage bucket.
The prefix path within the bucket.
BYOC 集群加密的密钥标识符。
export TOKEN="YOUR_API_KEY"
curl --request POST \
--url "${BASE_URL}/v2/clusters/createDedicated" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"clusterName": "Cluster-05",
"projectId": "proj-xxxxxxxxxxxxxxxxxxxxxx",
"regionId": "ali-cn-beijing",
"plan": "Standard",
"cuType": "Performance-optimized",
"cuSize": 1
}'
响应码。
响应负载。
已创建集群的 ID。
集群管理用户名称。通常为 db_admin。
集群管理用户密码。该值仅在创建集群时显示一次。建议您妥善保存。
返回的提示信息。
返回错误消息。
响应码。
错误描述。
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"username": "db_admin",
"password": "****************",
"prompt": "successfully submitted, cluster is being created. You can access data about the creation progress and status of your cluster by DescribeCluster API. Once the cluster status is RUNNING, you may access your vector database using the SDK with the admin account and the initial password you specified."
}
}