跳转到主要内容
POST
/
safari
/
automation
/
template
/
list
列出自动化模板
curl --request POST \
  --url 'https://api.flashcat.cloud/safari/automation/template/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "locale": "en-US"
}
'
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": {
    "templates": [
      {
        "name": "噪音治理",
        "description": "分析近期告警噪音并给出治理建议。",
        "icon": "bell-off",
        "enabled": true,
        "prompt": "检查过去 24 小时告警噪音、升级负载和值班处理情况。"
      }
    ]
  }
}

调用限制

速率限制1,000 次/分钟50 次/秒 每账户
权限有效 app_key;结果按调用者可见范围过滤

授权

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
locale
string

模板语言,例如 zh-CN 或 en-US。省略时按请求语言自动选择。

Maximum string length: 16

响应

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.