Hi Richard / Rick, (Twins?)
Thanks for this, interesting approach. We have to use mode 3 and (for the moment at least) want to limit the solution to direct RestAPI calls only.
From the info Hubert provided we have successfully made the connection from a windows OS to windows OS with
> httr::GET(url, verbose(), authenticate(':', '', type='gssnegotiate'))
However R is actually running on a unix machine, the same request from this machine does not work (we had had to update the url too), returning a 401 unauthorized error.
We assume no general connectivity issues as this connection can be made from Unix to Windows with a mode 1 connection.
Cheers
------------------------------
Steven Rowe
------------------------------
Original Message:
Sent: Fri October 23, 2020 09:49 AM
From: Richard Stevenson
Subject: Sample connection string for RestAPI and mode 3
How do you connect to TM1 using Rest API with CAM security mode 5? Can you use a config.ini file to store settings?
Here is what I have in the config file. I got this working with CAM without a config.ini file within my python script.
Config.ini file:
[tm1srv01]
address=ForQuest01
user=rstevenson
password=####
namespace=ForQuest
gateway=
port=8046
ssl=False
decode_b64=True
Py Script:
with TM1Service(
address='ForQuest01',
port='8046',
user='rstevenson',
password='####',
namespace='ForQuest',
gateway=None,
ssl=False) as tm1:
------------------------------
Richard Stevenson
------------------------------