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/13a431d85d83121c79666117353fef42 to your computer and use it in GitHub Desktop.
Save jhunt/13a431d85d83121c79666117353fef42 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 "==APPS"
cf curl /v2/spaces/$space/apps | 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