Skip to main content
POST
运行自动化规则

限制说明

使用说明

  • 同一规则的手动运行限速为每分钟最多一次;在此窗口内的第二次调用会返回 429code"RequestTooFrequently"
  • 只有已启用的规则才能手动运行;已禁用或配置无效的规则会在创建运行前以 400 错误未通过预检。
  • 调用在底层 Agent 会话启动后即返回,而非等待运行结束;运行会继续异步执行——可使用列出自动化运行历史查询完成状态。
  • 以此方式发起的运行,trigger_kind 固定为 manual,在运行历史中与 schedulehttp_postoncall_incident 区分开来。
  • 每次调用都会记录到账户审计日志。

授权

app_key
string
query
必填

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

请求体

application/json
rule_id
string
必填

规则 ID。

响应

Success

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
必填

Unique ID for this request. Mirrored in the Flashcat-Request-Id header. Include it when reporting issues.

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

Error payload inside the response envelope. Present only on non-2xx responses.

data
object

手动运行一次自动化规则(跳过其计划触发时间)的结果。