Skip to content

Instantly share code, notes, and snippets.

@jhunt
Created March 1, 2018 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhunt/bf35b24b54faf43ee298e6d9e1f1f89c to your computer and use it in GitHub Desktop.
Save jhunt/bf35b24b54faf43ee298e6d9e1f1f89c to your computer and use it in GitHub Desktop.
for org in $(cf curl /v2/organizations | jq -r .resources[].metadata.guid); do
echo "==ORG"
cf curl /v2/organizations/$org | jq -r .
echo ; echo ; echo
for space in $(cf curl /v2/organizations/$org/spaces | jq -r .resources[].metadata.guid); do
echo "==SPACE"
cf curl /v2/spaces/$space | jq -r .
echo ; echo ; echo
echo "==SERVICES"
cf curl /v2/spaces/$space/services | jq -r .
echo ; echo ; echo
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment