迁移数据至新集群
Create a dedicated cluster and migrate data from the source cluster to the new cluster.
该 API 的 Base URL 格式如下:
https://api.cloud.zilliz.com
export BASE_URL="https://api.cloud.zilliz.com"
认证令牌,应为具备适当权限的 API 密钥。
The source cluster information.
The ID of the source cluster.
The name of the destination cluster to create.
The ID of the project to create the destination cluster in.
The ID of the cloud region to create the destination cluster in.
The subscription plan to use for the destination cluster.
The CU type to use for the destination cluster.
The CU size to use for the destination cluster.
export TOKEN="YOUR_API_KEY"
curl --request POST \
--url "${BASE_URL}/v2/migrations/toNewDedicated" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"source": {
"clusterId": "inxx-xxxxxxxxxxxxxx"
},
"destination": {
"clusterName": "Cluster-01",
"projectId": "proj-xxxxxxxxxxxxxxxxxxxx",
"regionId": "aws-us-west-2",
"plan": "Standard",
"cuType": "Performance-optimized",
"cuSize": 1
}
}'
响应码。
The ID of the destination cluster.
The username used to access the destination cluster.
The password used to access the destination cluster. This will be shown to you only once. You are advised to note down the password and save it in a secure place.
The ID of the job that has been created upon your request.
Returns an error message.
响应码。
错误描述。
{
"clusterId": "inxx-xxxxxxxxxxxxxx",
"username": "db_admin",
"password": "xxxxxxxxx",
"jobId": "job-xxxxxxxxxxxxxxxxxxxxxx"
}