Migrate to New Dedicated Cluster
Create a dedicated cluster and migrate data from the source cluster to the new cluster.
The base URL for this API is in the following format:
https://api.cloud.zilliz.com
export BASE_URL="https://api.cloud.zilliz.com"
The authentication token should be an API key with appropriate privileges.
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.
A list of source- and destination-database pairs in the migration.
The name of the source database. This is optional. If left unspecified, the default database applies.
The name of the destination database.
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
}
}'
Response code.
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.
Response code.
Error message.
{
"clusterId": "inxx-xxxxxxxxxxxxxx",
"username": "db_admin",
"password": "xxxxxxxxx",
"jobId": "job-xxxxxxxxxxxxxxxxxxxxxx"
}