跳转到主要内容
POST
/
datasource
/
list
集成列表
curl --request POST \
  --url 'https://api.flashcat.cloud/datasource/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "p": 123,
  "limit": 123,
  "orderby": "<string>",
  "category": "event.alert",
  "plugin_type": "<string>",
  "status": "<string>",
  "name": "<string>",
  "asc": true,
  "is_my_team": true,
  "team_ids": [
    123
  ]
}
'
{
  "error": {},
  "data": [
    {
      "integration_id": 123,
      "name": "<string>",
      "status": "enabled",
      "plugin_id": 123,
      "plugin_type": "<string>",
      "plugin_type_name": "<string>",
      "description": "<string>",
      "integration_key": "<string>",
      "settings": [
        {}
      ],
      "creator_id": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "team_id": 123
    }
  ]
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
p
integer

不设置从第一页开始,默认值为1

limit
integer

分页条数,最大值100

orderby
string

指定排序字段

category
enum<string>

集成类别

可用选项:
event.alert,
im,
webhook,
event.change,
other
plugin_type
string

集成类型名称,如Prometheus 、 Zabbix、Grafana、夜莺 / Flashcat 等控制台列表显示的名称

status
string

状态

name
string

集成名称

asc
boolean

是否排序

is_my_team
boolean

按‘我管理的团队’筛选

team_ids
integer[]

团队ID

响应

200 - application/json
error
object
data
object[]