Created
March 1, 2018 20:16
-
-
Save jhunt/13a431d85d83121c79666117353fef42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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