mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Security Solution][Detection Engine] removes legacy alerting endpoints from Security Solution dev scripts (#197424)
## Summary - addresses https://github.com/elastic/kibana/issues/95842 --------- Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
This commit is contained in:
parent
7865045f41
commit
00f34d9b1c
3 changed files with 8 additions and 6 deletions
|
@ -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 .
|
|
@ -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 .
|
||||
|
|
|
@ -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 .
|
Loading…
Add table
Add a link
Reference in a new issue