Skip to content

Instantly share code, notes, and snippets.

@JordanAdams
Created November 21, 2019 12:00
Show Gist options
  • Save JordanAdams/209de422b04df7438d30f5c1197ee7ba to your computer and use it in GitHub Desktop.
Save JordanAdams/209de422b04df7438d30f5c1197ee7ba to your computer and use it in GitHub Desktop.
#!/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