So we are currently in the organization in a stage which we are testing multiple BI tools. Part of the test is creating some automated report of the tables associated with a table, and the policies attached to them.
So I was successfully authenticated using the API-KEY and followed the documentation and the swagger API, but even when authenticated, I am not allowed to use the /metadata endpoint:
I am trying to authenticate using the API KEY:
curl -i -X 'PUT' \
'https://eu2.ca.analytics.ibm.com/api/v1/session' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-c cookies.txt \
-d '{
"parameters": [
{
"name": "CAMAPILoginKey",
"value": "AWlDQjlBQjU3N0M0MzY0RThBQTdCMTF................."
}
]
}'
{"generation":3,"shareable":false,"isAnonymous":false,"cafContextId":"CAFW000000dcQ0FGQThjMDAwMDAwMDlBaFFBQUFETVRXQUYqTEZPWWYzQ0xWeG1WMzRCYWtMRW1BY0FBQUJUU0VFdE5URXlRQUFBQUVyM0dqN1FlMGJ3ZFhNNXNQMTFlcjRtSXFqOE0qU3VuRmN6Rk1SR1kxVFkyTkM1aU83TG1YMERNT0F5WmlNR0hmQWFBZEZSSjhDMDN5YlZqbmZiY0g4XzQ3ODA3MHxycw__","logEnabled":false,"canCallLogon":false,"url":"\/api\/v1"}%
which worked for creating the session, but when doing:
> curl -X 'GET' -b cookies.txt \
-H "accept: application/json" \
https://eu2.ca.analytics.ibm.com/api/v1/modules
Forbidden%
I get forbidden error
------------------------------
Mike Joseph
------------------------------