1
0
Fork 0
arangodb/scripts/dumpAgency.sh

7 lines
190 B
Bash
Executable File

#!/bin/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