跳到主要内容

迁移数据至新集群

Create a dedicated cluster and migrate data from the source cluster to the new cluster.

POST
/v2/migrations/toNewDedicated
Base URL

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com

export BASE_URL="https://api.cloud.zilliz.com"
参数
Authorizationstringheaderrequired

认证令牌,应为具备适当权限的 API 密钥。

示例值:Bearer {{TOKEN}}
请求体application/json
sourceobjectrequired

The source cluster information.

clusterIdstring必填项

The ID of the source cluster.

示例值:inxx-xxxxxxxxxxxxxxxxx
destinationobjectrequired
clusterNamestring必填项

The name of the destination cluster to create.

projectIdstring必填项

The ID of the project to create the destination cluster in.

regionIdstring必填项

The ID of the cloud region to create the destination cluster in.

planstring必填项

The subscription plan to use for the destination cluster.

cuTypestring必填项

The CU type to use for the destination cluster.

cuSizeinteger必填项

The CU size to use for the destination cluster.

取值范围:≥ 1≤ 256
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
}
}'
响应200 - application/json
codeinteger

响应码。

dataobject
clusterIdstring

The ID of the destination cluster.

usernamestring

The username used to access the destination cluster.

passwordstring

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.

jobIdstring

The ID of the job that has been created upon your request.

Returns an error message.

codeinteger

响应码。

messagestring

错误描述。

{
"clusterId": "inxx-xxxxxxxxxxxxxx",
"username": "db_admin",
"password": "xxxxxxxxx",
"jobId": "job-xxxxxxxxxxxxxxxxxxxxxx"
}