Hi all,
I'm a TM1 REST API newbie, I must confess.
I'm trying to connect to a tm1 database named "bonificaciones" on cloud, so I have this code:
from TM1py import TM1Service
with TM1Service(
base_url='https://xxxdev.planning-analytics.cloud.ibm.com/tm1/api/Bonificaciones',
user="xxxdev01_tm1_automation",
namespace="LDAP",
password="XXXXXXXXXXXXX",
ssl=True,
verify=True,
async_requests_mode=True) as tm1:
print(tm1.server.get_product_version())
When I run the code I get this response:
Traceback (most recent call last):
File "C:\Users\M47589\Downloads\tm1py\tm1py-samples-master\my_check.py", line 3, in <module>
with TM1Service(
File "C:\Users\M47589\AppData\Local\Programs\Python\Python310\lib\site-packages\TM1py\Services\TM1Service.py", line 15, in __init__
self._tm1_rest = RestService(**kwargs)
File "C:\Users\M47589\AppData\Local\Programs\Python\Python310\lib\site-packages\TM1py\Services\RestService.py", line 201, in __init__
self._start_session(
File "C:\Users\M47589\AppData\Local\Programs\Python\Python310\lib\site-packages\TM1py\Services\RestService.py", line 370, in _start_session
raise ValueError(f"No response returned from URL: '{self._base_url + url}'. "
ValueError: No response returned from URL: 'https://xxxdev.planning-analytics.cloud.ibm.com/tm1/api/Bonificaciones/api/v1/Configuration/ProductVersion/$value'. Please double check your address and port number in the URL.
Any ideas what I'm doing wrong?
Help will be much appreciated.
------------------------------
Jose Luis Senas
Data Analyst
Kimberly-Clark Mexico
Mexico City
------------------------------
#PlanningAnalyticswithWatson