推送案例 API
编辑推送案例 API编辑
将案例推送到外部服务。
有关最新的 API 详细信息,请参阅开放 API 规范。
请求编辑
POST <kibana 主机>:<端口>/api/cases/<案例 ID>/connector/<连接器 ID>/_push
POST <kibana 主机>:<端口>/s/<空间 ID>/api/cases/<案例 ID>/connector/<连接器 ID>/_push
先决条件编辑
您必须拥有 Kibana 功能权限“管理”部分中“操作和连接器”功能的所有
权限。您还必须拥有 Kibana 功能权限“管理”、“可观察性”或“安全”部分中“案例”功能的所有
权限,具体取决于您要推送的案例的所有者
。
路径参数编辑
响应代码编辑
-
200
- 表示调用成功。
示例编辑
将案例推送到外部服务
POST api/cases/b917f300-0ed9-11ed-bd18-65557fe66949/connector/09f8c0b0-0eda-11ed-bd18-65557fe66949/_push {}
API 返回一个表示已推送案例的 JSON 对象。例如
{ "id": "b917f300-0ed9-11ed-bd18-65557fe66949", "version": "WzE3NjgsM10=", "comments": [], "totalComment": 0, "totalAlerts": 0, "description": "A case description.", "title": "Case title 1", "tags": [ "tag 1" ], "settings": { "syncAlerts": true }, "owner": "cases", "duration": null, "severity": "low", "closed_at": null, "closed_by": null, "created_at": "2022-07-29T00:59:39.444Z", "created_by": { "username": "elastic", "email": null, "full_name": null }, "status": "open", "updated_at": "2022-07-29T01:20:58.436Z", "updated_by": { "username": "elastic", "full_name": null, "email": null }, "connector": { "id": "09f8c0b0-0eda-11ed-bd18-65557fe66949", "name": "My connector", "type": ".jira", "fields": { "issueType": "10006", "parent": null, "priority": "Low" } }, "external_service": { "pushed_at": "2022-07-29T01:20:58.436Z", "pushed_by": { "username": "elastic", "full_name": null, "email": null }, "connector_name": "My connector", "external_id": "71926", "external_title": "ES-554", "external_url": "https://cases.jira.com", "connector_id": "09f8c0b0-0eda-11ed-bd18-65557fe66949" } }