Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

Can a python script API know which infra it is deployed on?

Antal
Level 3
Can a python script API know which infra it is deployed on?

I'm deploying a python script API that will communicate with another (external) API, made by another department.

Both my team and the other team use separate Test/Acceptance/Production environments.

The url of the other team's API will change depending on the environment it is deployed in.

I'd like to change the url to call from within my Dataiku API depending on the current environment/infra, so both the DS API and the external API can match up through the delivery environments.

Is it possible for a python script API to somehow know which infra it's currently deployed in (through the python public API)? That way I could set up a mapping to the external url to call.


Operating system used: Windows

0 Kudos
0 Replies

Labels

?
Labels (2)

Setup info

?
A banner prompting to get Dataiku