获取部署迁移

获取 /groups/{groupId}/apps/{appId}/deployment_migration

获取当前部署迁移的元数据和状态(如果存在)。

路径参数

响应

  • 200 application/json

    Ok

    隐藏响应属性 显示响应属性 对象
    • 状态 字符串

      取值为 starteddowntimeenabling_event_subscriptionscleanupsuccessfulfailed

    • message 字符串

      当前迁移状态的描述。

    • updated_at 字符串

      部署迁移的最新更新的时间戳。

    • from 对象
      从属性中隐藏 从属性显示 对象
      • deployment_model 字符串

        应用程序部署模型

        值为 GLOBALLOCAL

      • provider_region 字符串

        以下之一:

        取值为 aws-us-east-1aws-us-west-2aws-us-east-2aws-eu-central-1aws-eu-west-1aws-eu-west-2aws-ap-southeast-1aws-ap-southeast-2aws-ap-south-1aws-sa-east-1

        取值为 azure-eastus2azure-westusazure-westeuropeazure-eastasiaazure-southeastasia

        取值为 gcp-us-central1gcp-us-east4gcp-us-west1gcp-europe-west1gcp-asia-south1

    • to 对象
      隐藏到属性 显示到属性 对象
      • deployment_model 字符串

        应用程序部署模型

        值为 GLOBALLOCAL

      • provider_region 字符串

        以下之一:

        取值为 aws-us-east-1aws-us-west-2aws-us-east-2aws-eu-central-1aws-eu-west-1aws-eu-west-2aws-ap-southeast-1aws-ap-southeast-2aws-ap-south-1aws-sa-east-1

        取值为 azure-eastus2azure-westusazure-westeuropeazure-eastasiaazure-southeastasia

        取值为 gcp-us-central1gcp-us-east4gcp-us-west1gcp-europe-west1gcp-asia-south1

  • 404

    未找到应用

GET /groups/{groupId}/apps/{appId}/deployment_migration
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/deployment_migration' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
响应示例 (200)
{
  "status": "started",
  "message": "string",
  "updated_at": "string",
  "from": {
    "deployment_model": "GLOBAL",
    "provider_region": "aws-us-east-1"
  },
  "to": {
    "deployment_model": "GLOBAL",
    "provider_region": "aws-us-east-1"
  }
}