Created
November 21, 2019 12:00
-
-
Save JordanAdams/209de422b04df7438d30f5c1197ee7ba 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
#!/usr/bin/env bash | |
CREDENTIALS=$( | |
cf curl "/v2/service_instances?q=name:$1" | \ | |
jq '.resources[0].entity.service_bindings_url' | \ | |
xargs cf curl | \ | |
jq '.resources[0].entity.credentials' | |
) | |
echo $CREDENTIALS | jq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment