Created
March 1, 2018 20:16
-
-
Save jhunt/bf35b24b54faf43ee298e6d9e1f1f89c 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 "==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