- Kibana Guide: other versions:
- What is Kibana?
- What’s new in 8.2
- Kibana concepts
- Quick start
- Set up
- Install Kibana
- Configure Kibana
- Alerting and action settings
- APM settings
- Banners settings
- Enterprise Search settings
- Fleet settings
- i18n settings
- Logging settings
- Logs settings
- Metrics settings
- Monitoring settings
- Reporting settings
- Search sessions settings
- Secure settings
- Security settings
- Spaces settings
- Task Manager settings
- Telemetry settings
- URL drilldown settings
- Start and stop Kibana
- Access Kibana
- Securing access to Kibana
- Add data
- Upgrade Kibana
- Configure security
- Configure reporting
- Configure logging
- Configure monitoring
- Command line tools
- Production considerations
- Discover
- Dashboard and visualizations
- Canvas
- Maps
- Build a map to compare metrics by country or region
- Track, visualize, and alert on assets in real time
- Map custom regions with reverse geocoding
- Heat map layer
- Tile layer
- Vector layer
- Plot big data
- Search geographic data
- Configure map settings
- Connect to Elastic Maps Service
- Import geospatial data
- Troubleshoot
- Reporting and sharing
- Machine learning
- Graph
- Alerting
- Observability
- APM
- Security
- Dev Tools
- Fleet
- Osquery
- Stack Monitoring
- Stack Management
- REST API
- Get features API
- Kibana spaces APIs
- Kibana role management APIs
- User session management APIs
- Saved objects APIs
- Data views API
- Index patterns APIs
- Alerting APIs
- Action and connector APIs
- Cases APIs
- Import and export dashboard APIs
- Logstash configuration management APIs
- Machine learning APIs
- Short URLs APIs
- Get Task Manager health
- Upgrade assistant APIs
- Kibana plugins
- Troubleshooting
- Accessibility
- Release notes
- Developer guide
Get comments API
editGet comments API
editGets a comment or all comments for a case.
Request
editGET <kibana host>:<port>/api/cases/<case ID>/comments/<comment ID>
GET <kibana host>:<port>/s/<space_id>/api/cases/<case ID>/comments/<comment ID>
GET <kibana host>:<port>/api/cases/<case_id>/comments
[8.1.0]
Deprecated in 8.1.0.
GET <kibana host>:<port>/s/<space_id>/api/cases/<case_id>/comments
[8.1.0]
Deprecated in 8.1.0.
Prerequisites
editYou must have read
privileges for the Cases feature in the Management,
Observability, or Security section of the
Kibana feature privileges, depending on the
owner
of the cases with the comments you’re seeking.
Path parameters
edit-
<case_id>
- (Required, string) The identifier for the case. To retrieve case IDs, use Find cases.
-
<comment_id>
-
(Optional, string) The identifier for the comment. To retrieve comment IDs, use Get case.
If it is not specified, all comments are retrieved. [8.1.0] Deprecated in 8.1.0. The comment identifier will no longer be optional.
-
<space_id>
- (Optional, string) An identifier for the space. If it is not specified, the default space is used.
Response codes
edit-
200
- Indicates a successful call.
Examples
editRetrieves comment ID 71ec1870-725b-11ea-a0b2-c51ea50a58e2
from case ID
a18b38a0-71b0-11ea-a0b2-c51ea50a58e2
:
GET api/cases/a18b38a0-71b0-11ea-a0b2-c51ea50a58e2/comments/71ec1870-725b-11ea-a0b2-c51ea50a58e2
The API returns the requested comment JSON object. For example:
{ "id":"8acb3a80-ab0a-11ec-985f-97e55adae8b9", "version":"Wzc5NzYsM10=", "comment":"Start operation bubblegum immediately! And chew fast!", "type":"user", "owner":"cases", "created_at":"2022-03-24T00:37:10.832Z", "created_by": { "email": "classified@hms.oo.gov.uk", "full_name": "Classified", "username": "M" }, "pushed_at": null, "pushed_by": null, "updated_at": null, "updated_by": null }