Hi Peter, thank you for your reply,
it works for me actually what i should do is to use the non interactive account ^^
with the namespace="LDAP",
best regards,
Zied
------------------------------
zied ben hmida
------------------------------
Original Message:
Sent: Wed April 10, 2024 03:16 AM
From: Peter D'Haeyer
Subject: Unable to connect tm1phy on IBM Cloud
Hi,
also make sure your user and password are not your ibmid but an non-interactive account
Regards
Peter
------------------------------
Peter D'Haeyer
Original Message:
Sent: Mon April 08, 2024 06:05 AM
From: zied ben hmida
Subject: Unable to connect tm1phy on IBM Cloud
Hi all,
Hope you are doing well!
I'm trying to connect to a tm1 database named "SKU" on cloud, so I have this code:
`from TM1py import TM1Service
params = {
"base_url": "https://XXXXXXX.planning-analytics.ibmcloud.com/tm1/api/SKU/",
"user": "zied.XXXXX",
"password": "%%%%%%%",
"async_requests_mode": True,
"ssl": True,
"verify": True
}
with TM1Service(**params) as tm1:
print(tm1.server.get_product_version())`
When I run the code I get this response:
TM1pyRestException: Text: '' - Status Code: 401 - Reason: 'Unauthorized'
Version
TM1py 3.12.2
TM1 Server Version: 2.0.94
Any ideas what I'm doing wrong?
Thank you in advance,
Zied
------------------------------
zied ben hmida
------------------------------