列出最近的部署

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

返回最近部署的 25 个应用程序。

路径参数

响应

  • 200 application/json

    已成功列出。

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

      部署的唯一ID 。

    • 名称 字符串

      部署的名称。默认下,该值与 _id 的值相同。

    • app_id 字符串

      Atlas App Services App 的唯一 _id 值。

    • Draft_id 字符串

      与部署关联的部署草稿的唯一 _id 值(如果适用)。

    • user_id 字符串

      部署草稿的MongoDB Cloud 用户的唯一 _id 值。

    • 已部署_at 整型

      进行部署的时间。表示为自 1 1 月 1970 以来的秒数。

    • 来源 字符串

      用于创建部署的部署方法。

    • 提交 字符串

      部署的提交哈希( Github自动部署)

    • 状态 字符串

      指示部署是否成功的消息。

    • status_error_message 字符串

      导致部署失败的错误的错误消息(如果适用)。

    • diff_url 字符串

      部署中更改差异的链接

    • remote_location 字符串

      应用服务器物理部署位置的标识符,与托管应用的云提供商无关。

      取值为 US-VAUS-ORDE-FFIEAUIN-MBSGBR-SP

GET /groups/{groupId}/apps/{appId}/deployments
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/deployments' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
响应示例 (200)
[
  {
    "_id": "string",
    "name": "string",
    "app_id": "string",
    "draft_id": "string",
    "user_id": "string",
    "deployed_at": 42,
    "origin": "string",
    "commit": "string",
    "status": "string",
    "status_error_message": "string",
    "diff_url": "string",
    "remote_location": "US-VA"
  }
]