恢复暂停的触发器

PUT /groups/{groupId}/apps/{appId}/triggers/{triggerId}/resume

恢复已暂停数据库触发器。

路径参数

application/json

body

恢复操作的配置选项。

  • disable_token 布尔

    如果为 true,则会恢复触发器而不处理错过的事件。否则,尝试使用恢复令牌在触发器失败后从第一个更改事件恢复触发器。

响应

  • 204

    成功恢复触发器。

  • 404 application/json

    未找到触发器。

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

      App Services遇到的错误的描述。

PUT /groups/{groupId}/apps/{appId}/triggers/{triggerId}/resume
curl \
 --request PUT 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/triggers/{triggerId}/resume' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"disable_token":true}'
请求示例
{
  "disable_token": true
}
响应示例 (404)
{
  "error": "string"
}