Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- "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"
- echo "SL_USERNAME: $SL_USERNAME"
- echo "SL_API_KEY: $SL_API_KEY"
- export IAAS_USERNAME=<API Username>
- export IAAS_KEY=<Authentication Key>
- curl -u $IAAS_USERNAME:$IAAS_KEY https://api.softlayer.com/rest/v3/SoftLayer_Account/getAllBillingItems
Add Comment
Please, Sign In to add comment