REST API: Cloud

Post Reply
Dimix
Posts: 32
Joined: Fri Jan 15, 2016 2:53 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

REST API: Cloud

Post by Dimix »

Hi Gurus,

Yes, this is way too complicated for me. :)

I'm using Postman to learn how to use the Rest API. I'm currently reading a local instance of TM1, but now want to connect to an instance on Cloud instead. Seems that the request is a bit different between the two, the local instance require a httpport, the Cloud instance the name of the server. Correct?

Local:
https://localhost:12354/api/v1/$metadata
https://localhost:12354/api/v1/Cubes

Cloud:
https:/xxa01.planning-analytics.ibmcloud.com/tm1/api/Planning Sample/api/v1/$metadata
https:/xxa01.planning-analytics.ibmcloud.com/tm1/api/Planning Sample/api/v1/Cubes

The metadata request works for both instances, but I can't retrieve the cubes from the Cloud instance, I get an error: 401 Unathorized. I have tried different authentication types, but can't get it to work, can't find the correct way to pass e.g. namespace in Postman. Should I be able to connect to an instance on Cloud?
ascheevel
Community Contributor
Posts: 287
Joined: Fri Feb 15, 2013 5:49 pm
OLAP Product: TM1
Version: PA 2.0.9.1
Excel Version: 365
Location: Minneapolis, USA

Re: REST API: Cloud

Post by ascheevel »

How are you authenticating? I was messing with this a couple weeks ago and learned that you can only use the non-interactive user account.
Dimix
Posts: 32
Joined: Fri Jan 15, 2016 2:53 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Re: REST API: Cloud

Post by Dimix »

Thanks, will take a look at it.
Dimix
Posts: 32
Joined: Fri Jan 15, 2016 2:53 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Re: REST API: Cloud

Post by Dimix »

I got it to work using a non-interactive account. Next step is to make it work with a 'real' account. Seen somewhere that it should work.
kangkc
Community Contributor
Posts: 206
Joined: Fri Oct 17, 2008 2:40 am
OLAP Product: TM1, PA , TMVGate
Version: 2.x
Excel Version: 36x
Location: Singapore
Contact:

Re: REST API: Cloud

Post by kangkc »

Based on what I understand from IBM, it will only work with non-interactive account for PA Cloud, which we have validated.
CAM Namespace ID is "LDAP" based on PA Cloud welcome kit.

Never manage to find out the Namespace ID for interactive account from IBM to test it out.
Will be interested if this is possible.
ascheevel
Community Contributor
Posts: 287
Joined: Fri Feb 15, 2013 5:49 pm
OLAP Product: TM1
Version: PA 2.0.9.1
Excel Version: 365
Location: Minneapolis, USA

Re: REST API: Cloud

Post by ascheevel »

Post Reply