路径参数
-
Atlas 项目/组 ID。
-
您的应用程序的 ObjectID。App Services API 项目和应用程序 ID 部分演示了如何查找此值。
body
必需
应用应迁移到的部署模型和云提供商区域。
-
应用程序部署模型。
值为
GLOBAL
或LOCAL
。 provider_region
字符串 以下之一: 取值为
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
或aws-sa-east-1
。取值为
azure-eastus2
、azure-westus
、azure-westeurope
、azure-eastasia
或azure-southeastasia
。取值为
gcp-us-central1
、gcp-us-east4
、gcp-us-west1
、gcp-europe-west1
或gcp-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"}'
请求示例
{
"provider_region": "aws-us-east-1",
"deployment_model": "LOCAL"
}