Join us on July 16th as we explore real-world Reinforcement Learning Learn more

deployer command line

Level 2
deployer command line

Hi 

I need automate de-register api nodes from deployer if node is not active in aws envrionment. So to meet requirement need to find  registered api nodes on deployer through command line. 

Please let know if any option available.

Allwin

3 Replies
Dataiker
Dataiker

Hi,

there is no command-line tool for that, however you can use our Python library.

Have a look here on how to use it from outside of DSS (you'll need an API Key with sufficient privileges), and then you can use the get_apideployer().list_infras(as_objects=False) method to obtain the list of your infras.

You can then obtain the infra settings with the method get_apideployer().get_infra("your-_infra_name").get_settings().get_raw()  to find out the list of nodes composing the infra and compare them with the list of decommissioned nodes in AWS.

More info here.

 

Take care,

 

Omar
Architect @ Dataiku 

Level 2
Author

Thanks Omar... this looks good option let me try.

0 Kudos
Level 2
Author

Thanks above solution worked

0 Kudos