Create a Deployment Migration
Start a new deployment migration.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
Body
Required
The deployment model and cloud provider region that the App should migrate to.
-
An application deployment model.
Values are
GLOBAL
orLOCAL
. provider_region
string One of: Values are
aws-us-east-1
,aws-us-west-2
,aws-us-east-2
,aws-eu-central-1
,aws-eu-west-1
,aws-eu-west-2
,aws-ap-southeast-1
,aws-ap-southeast-2
,aws-ap-south-1
, oraws-sa-east-1
.Values are
azure-eastus2
,azure-westus
,azure-westeurope
,azure-eastasia
, orazure-southeastasia
.Values are
gcp-us-central1
,gcp-us-east4
,gcp-us-west1
,gcp-europe-west1
, orgcp-asia-south1
.
PUT
/groups/{groupId}/apps/{appId}/deployment_migration
curl \
--request PUT 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/deployment_migration' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"provider_region":"aws-us-east-1","deployment_model":"LOCAL"}'
Request example
{
"provider_region": "aws-us-east-1",
"deployment_model": "LOCAL"
}