Skip to content

Commit

Permalink
[Security Solution][Detection Engine] removes legacy alerting endpoin…
Browse files Browse the repository at this point in the history
…ts from Security Solution dev scripts (#197424)

## Summary

 - addresses #95842

---------

Co-authored-by: Ryland Herrick <[email protected]>
  • Loading branch information
vitaliidm and rylnd authored Oct 28, 2024
1 parent 7865045 commit 00f34d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
set -e
./check_env_variables.sh

# Example: ./get_alert_types.sh
# https://github.com/elastic/kibana/blob/main/x-pack/plugins/alerting/README.md#get-apialerttypes-list-alert-types
# Example: ./find_alerting_rules.sh
# https://www.elastic.co/docs/api/doc/kibana/v8/operation/operation-findrules
# Related: use ./find_rules.sh to retrieve Detection Engine (Security) rules
curl -s -k \
-u ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD} \
-X GET ${KIBANA_URL}${SPACE_URL}/api/alerts/list_alert_types \
-X GET ${KIBANA_URL}${SPACE_URL}/api/alerting/rules/_find \
| jq .
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ set -e

# Example: ./find_rules.sh
curl -s -k \
-H 'elastic-api-version: 2023-10-31' \
-u ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD} \
-X GET ${KIBANA_URL}${SPACE_URL}/api/detection_engine/rules/_find | jq .
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
set -e
./check_env_variables.sh

# Example: ./get_alert_instances.sh
# https://github.com/elastic/kibana/blob/main/x-pack/plugins/alerting/README.md#get-apialert_find-find-alerts
# Example: ./get_rule_types.sh
# https://www.elastic.co/docs/api/doc/kibana/v8/operation/operation-getruletypes
curl -s -k \
-u ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD} \
-X GET ${KIBANA_URL}${SPACE_URL}/api/alerts/_find \
-X GET ${KIBANA_URL}${SPACE_URL}/api/alerting/rule_types \
| jq .

0 comments on commit 00f34d9

Please sign in to comment.