kibana/x-pack/plugins/lists/server/scripts/find_endpoint_list_items.sh
Frank Hassanabad 21156d6f18
[SIEM][Detection Engine][Lists] Adds specific endpoint_list REST API and API for abilities to auto-create the endpoint_list if it gets deleted (#71792)
* Adds specific endpoint_list REST API and API for abilities to autocreate the endpoint_list if it gets deleted

* Added the check against prepackaged list

* Updated to use LIST names

* Removed the namespace where it does not belong

* Updates per code review an extra space that was added

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-15 02:55:48 -04:00

20 lines
619 B
Bash
Executable file

#!/bin/sh
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License;
# you may not use this file except in compliance with the Elastic License.
#
set -e
./check_env_variables.sh
# Optionally, post at least one list item
# ./post_endpoint_list_item.sh ./exception_lists/new/endpoint_list_item.json
#
# Then you can query it as in:
# Example: ./find_endpoint_list_item.sh
#
curl -s -k \
-u ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD} \
-X GET "${KIBANA_URL}${SPACE_URL}/api/endpoint_list/items/_find" | jq .