How to manage dss nodes through python API when using fleetmanager

Registered Posts: 6

hello

I want to manage fleetmanager's resources using API. After searching, I found out that only pythonapi was available, and a problem occurred during testing.

I received the following error message:

import dataikuapi

key_id = "?"
key_secret = "?"

# <Cloud vendor> is either AWS, Azure or GCP
client = dataikuapi.fmclient.FMClientAWS("https://xxxx.xxx.xx", key_id, key_secret)
my_template_id = "Default template"
my_network_id = "test"
print(client.list_instances())
error message requests.exceptions.SSLError: HTTPSConnectionPool(host='3.38.94.187', port=443): Max retries exceeded with url: /api/public/tenants/main/instances (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1122)')))

I know it's an ssl related error.

what is key_id, key_secret ?

how to get key_id and key_secret ?

Operating system used: AWS

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.