1
0
Fork 0
arangodb/scripts/dumpAgency.sh

7 lines
198 B
Bash
Executable File

#!/usr/bin/env bash
if [ "$*" == "" ] ; then
curl -Ls http://localhost:4001/_api/agency/read -d '[["/"]]' | jq .
else
curl -Ls http://localhost:4001/_api/agency/read -d '[["/"]]' | jq $*
fi