How to list all the deployed APIโ€™s from all the infrastructures uisng pytho?

Solved!
Sunny
Level 2
How to list all the deployed APIโ€™s from all the infrastructures uisng pytho?

How to list and check for authorization

0 Kudos
1 Solution
AlexT
Dataiker

Hi @Sunny ,

You can use the api : https://doc.dataiku.com/dss/latest/python-api/api-services.html#api-deployer 

Example :

import dataikuapi
deployer_client = dataikuapi.DSSClient("http://localhost:11000", "<personal_api_key_from_deployer_node")
api_deployer = deployer_client.get_apideployer()
print(api_deployer.list_deployments())


Hope that helps

View solution in original post

0 Kudos
2 Replies
AlexT
Dataiker

Hi @Sunny ,

You can use the api : https://doc.dataiku.com/dss/latest/python-api/api-services.html#api-deployer 

Example :

import dataikuapi
deployer_client = dataikuapi.DSSClient("http://localhost:11000", "<personal_api_key_from_deployer_node")
api_deployer = deployer_client.get_apideployer()
print(api_deployer.list_deployments())


Hope that helps

0 Kudos
Sunny
Level 2
Author

Hi @AlexT , Thanks for the response.

0 Kudos