Change Fleet Host URL API Endpoint

This commit is contained in:
Josh Brower
2023-05-29 07:44:18 -04:00
parent 482c5324db
commit 9ec1492fad
3 changed files with 3 additions and 6 deletions
@@ -10,8 +10,6 @@
. /usr/sbin/so-common
#FLEETHOST="https://{{ GLOBALS.manager_ip }}:8220"
for i in {1..30}
do
ENROLLMENTOKEN=$(curl -K /opt/so/conf/elasticsearch/curl.config -L "localhost:5601/api/fleet/enrollment_api_keys" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' | jq .list | jq -r -c '.[] | select(.policy_id | contains("endpoints-initial")) | .api_key')