kibana/docs
Christos Nasikas a8902e1b6e
[Cases] Create Bulk get cases internal API (#147674)
## Summary

This PR creates the bulk get cases internal API. The endpoint is needed
for the alerts table to be able to get all cases the alerts are attached
to with one call.

Reference: https://github.com/elastic/kibana/issues/146864

### Request

- ids: (Required, array) An array of IDs of the retrieved cases.
- fields: (Optional, array) The fields to return in the attributes key
of the object response.

```
POST <kibana host>:<port>/internal/cases/_bulk_get
{
    "ids": ["case-id-1", "case-id-2", "123", "not-authorized"],
    "fields": ["title"]
}
```

### Response
```
{
    "cases": [
     {
        "title": "case1",
        "owner": "securitySolution",
        "id": "case-id-1",
        "version": "WzIzMTU0NSwxNV0="
     },
     {
        "title": "case2",
        "owner": "observability",
        "id": "case-id-2",
        "version": "WzIzMTU0NSwxNV0="
      }
    ],
    "errors": [
        {
            "error": "Not Found",
            "message": "Saved object [cases/123] not found",
            "status": 404,
            "caseId": "123"
        },
        {
            "error": "Forbidden",
            "message": "Unauthorized to access case with owner: \"cases\"",
            "status": 403,
            "caseId": "not-authorized"
        }
    ]
}
```

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios


### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2023-01-11 16:32:42 +02:00
..
api [DOCS] Create open API specification for disable/enable rule and mute/unmute all alerts #148360 (#148494) 2023-01-10 17:01:16 -07:00
api-generated [DOCS] Create open API specification for disable/enable rule and mute/unmute all alerts #148360 (#148494) 2023-01-10 17:01:16 -07:00
apm Fix typo (#144302) 2022-12-06 22:32:39 -05:00
canvas [DOCS] Adds the 8.6 Presentation docs (#145474) 2022-11-28 11:20:38 -05:00
concepts [DOCS] Adds content on ad-hoc data views (#146250) 2022-12-06 08:24:08 -08:00
dev-tools Add Console docs for Comments and Variables (#137225) 2022-07-28 10:52:20 -07:00
developer Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
development/plugins/expressions/public Remove old doc generation system for core APIs (#134313) 2022-06-21 17:43:17 +02:00
discover [DOCS] Updates Discover docs for 8.5 (#142021) 2022-10-10 15:21:23 -07:00
fleet Update Fleet overview topic (#121153) 2021-12-14 09:14:02 -08:00
getting-started [DOCS] Adds the 8.6 Presentation docs (#145474) 2022-11-28 11:20:38 -05:00
management [DOCS] Bulk actions in Cases (#148358) 2023-01-09 11:37:09 -05:00
maps [maps] Ability to offset point labels on maps (#145773) 2022-11-29 09:08:54 -07:00
migration [DOCS] Remove 8.0.0 coming tag (#125229) 2022-02-10 07:58:28 -05:00
observability
osquery [DOCS] Option to schedule Osquery packs for individual policies or globally (#146482) 2022-12-16 14:39:58 -06:00
settings [DOCS] Update 'xpack.screenshotting.browser.chromium.disableSandbox` documentation (#148425) 2023-01-10 09:26:57 -05:00
setup [DOCS] Adds email notifications setting (#147660) 2023-01-10 17:24:15 -05:00
siem [DOCS] Elastic Sec Overview (Fixing Image) (#104529) 2021-07-07 09:58:09 -04:00
spaces Removing docs about multi-tenancy (#143698) 2022-10-24 16:01:43 -04:00
user [Cases] Create Bulk get cases internal API (#147674) 2023-01-11 16:32:42 +02:00
accessibility.asciidoc
action-type-template.asciidoc [Alerting] Update UI to reflect new terminology (#93597) 2021-03-15 10:03:39 -04:00
apis.asciidoc [DOCS] Create open API specification for find rules (#147061) 2022-12-12 11:36:44 -08:00
CHANGELOG.asciidoc [DOCS] Fix links in release notes (#141520) 2022-09-22 14:00:20 -07:00
gs-index.asciidoc
index-custom-title-page.html [DOCS] Updates what's new pages (#147483) 2022-12-14 07:36:12 -08:00
index.asciidoc [DOCS] Add ML open API output to appendix (#141556) 2022-09-26 11:00:00 -07:00
index.x.asciidoc
limitations.asciidoc [DOCS] Reallocates limitations to point-of-use (#79582) 2020-11-19 10:49:27 -06:00
migration.asciidoc
redirects.asciidoc Updates upgrade assistant doclinks to point to current rather than hard-coded 7.17 (#147585) 2022-12-19 09:19:26 -07:00
rule-type-template.asciidoc [Alerting][Docs] Combine rule creation and management pages (#101498) 2021-06-10 17:46:53 -04:00
template.asciidoc [DOCS] Remove snapshot and restore docs (#114836) 2021-11-16 16:59:24 -05:00