Guest User

Untitled

a guest
Nov 20th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. curl -s -u 'bx:bx' -k -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' -d "grant_type=password&response_type=cloud_iam,ims_portal&username=${1}&password=${2}&ims_account=${3}" https://iam.ng.bluemix.net/oidc/token
  2.  
  3. "errorMessage":"You cannot authenticate with user name and password, as you are a federated user","errorDetails":"Your user id '<<><><>>' is federated and must use an API key or one-time passcode to authenticate"
  4.  
  5. echo "SL_USERNAME: $SL_USERNAME"
  6. echo "SL_API_KEY: $SL_API_KEY"
  7.  
  8. export IAAS_USERNAME=<API Username>
  9. export IAAS_KEY=<Authentication Key>
  10. curl -u $IAAS_USERNAME:$IAAS_KEY https://api.softlayer.com/rest/v3/SoftLayer_Account/getAllBillingItems
Add Comment
Please, Sign In to add comment