Migrate to New Dedicated Cluster (V2)
This endpoint is deprecated.
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
The endpoints on the control plane currently supports up to 20 requests per second per user per endpoint.
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.
Destination cluster configuration. clusterName, projectId, regionId, plan, cuType, and cuSize are required.
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 region should be bound to the specified project.
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.
One entry in the migration's list of source- and destination-database pairs, identifying the Collections that need to be migrated.
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 "Request-Timeout: 5" \
--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
}
}'
success
One of the possible response bodies this operation can return.
Response code.
Response payload, an object containing the import job ID or the progress of the import task.
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"
}