stack kb cases get-case-comment cli command
Auth required
Idempotent
Scope: global
elastic stack kb cases get-case-comment \
--case-id <case-id> \
--comment-id <comment-id> \
[options]
Get a case comment or alert
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--case-idstringrequired- The identifier for the case. To retrieve case IDs, use the search cases (
_find)API. All non-ASCII characters must be URL encoded. --comment-idstringrequired- The identifier for the comment. To retrieve comment IDs, use the get case or search cases (
_find) APIs. --input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON