重新进行部署

发布 /groups/{groupId}/apps/{appId}/deployments/{deploymentId}/redeploy

重新部署之前部署的应用程序版本。

路径参数

响应

  • 204

    已成功重新部署

  • 404 application/json

    未找到部署

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

      描述错误的消息。

      值为 deployment not found

    • error_code 字符串

      错误类型。

      值为 DeploymentNotFound

POST /groups/{groupId}/apps/{appId}/deployments/{deploymentId}/redeploy
curl \
 --request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/deployments/{deploymentId}/redeploy' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
响应示例 (404)
{
  "error": "deployment not found",
  "error_code": "DeploymentNotFound"
}