获取托管配置 已弃用

获取 /groups/{groupId}/apps/{appId}/hosting/config

返回当前托管配置。如果响应中包含 status: "setup_ok",则托管处于活动状态。

路径参数

响应

  • 200 application/json

    成功获取托管配置

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

      取值为 setup_okchange_in_progresschange_failedchange_failed_fatal

    • default_domain 对象
      隐藏 default_domain 属性 显示 default_domain 属性 对象
      • provider_type 字符串
      • config 对象
        隐藏配置属性 显示配置属性 对象
        • app_default_domain 字符串

          App Services提供的托管Atlas App Services应用程序的默认域。

GET /groups/{groupId}/apps/{appId}/hosting/config
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/hosting/config' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
响应示例 (200)
{
  "enabled": true,
  "status": "setup_ok",
  "default_domain": {
    "provider_type": "aws",
    "config": {
      "app_default_domain": "myapp-qldqx.mongodbstitch.com"
    }
  }
}