IBM Cloud Pak for Data - Data Logging Access & API

2 views
Skip to first unread message

r poon

unread,
Dec 22, 2020, 11:47:00 AM12/22/20
to Machine Intelligence and Data Science Group
A number of error messages, ranging from Authorization Bearer,  URL using bad/illegal format or missing URL...:

1.  Multi line continuation symbol ^ or \ with curl:

The line continuation character ^ or \ may cause problems, use LONG string of "curl xxxxxxxxxxxxxxxxxxxxxxxxx"   


2. IAM_TOKEN

Keep this as a shell variable in Linux to avoid the Quote within quote issue, and save the generated token inside

(the quote " before text string does NOT matter, so no need to use the quote and end-quote to store the token value

3. API Key

Go to IBM cloud menu ==> Manage tab on upper RHS, proceed to create or use an existing API key
https://cloud.ibm.com/docs/account?topic=account-userapikey

If you use the wrong API key,  your authoirzation will be rejected:

"message":"Authorization request has been rejected with message: User (ServiceId) is not authorized to access this endpoint"








(the API key from dataset bucket is in COS  and will NOT work for cloud even it can generate Access Token)
Reply all
Reply to author
Forward
0 new messages