Skip to main content
POST
列出自动化规则

限制说明

使用说明

  • all 返回调用者自己的个人规则,以及调用者可访问团队的团队规则。
  • 账户管理员在列表中可见所有团队规则,但不可见他人的个人规则。
  • team_ids 只会收窄可见集合,不会扩大访问范围。

授权

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

列出当前调用者可见的自动化规则。all 包含调用者自己的个人规则和可访问团队的团队规则;账户管理员在列表中不可见他人的个人规则。

p
integer
默认值:1

页码,从 1 开始。

limit
integer
默认值:20

每页数量。

必填范围: x <= 100
scope
enum<string>

作用域过滤:all(自己的个人规则 + 可访问团队规则)、personalteam;默认 all

可用选项:
all,
personal,
team
team_ids
integer<int64>[]

过滤到这些团队 ID;该字段只会收窄结果,不会扩大访问范围。

include_person
boolean | null

兼容字段;scope 为空且为 false 时等同于 team。

enabled
boolean | null

按启用状态过滤。

keyword
string

按名称关键字过滤。

Maximum string length: 64

响应

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

Endpoint-specific payload. See each operation's 200 response schema.