admin_get_all_orion_susbcriptions.sh 325 Bytes
Newer Older
1
#!/usr/bin/env bash
2 3 4 5 6 7 8 9 10

[[ -z "$ORION_HOST" ]] && echo "Please set ORION_HOST env var. E.g. export ORION_HOST=127.0.0.1" && exit
echo "Querying context broker at: ${ORION_HOST}"

curl --location --request GET \
    "http://$ORION_HOST:1026/v2/subscriptions/" \
    --header "Fiware-Service: carouge" \
    | python -mjson.tool