deployer command line

Options
christa
christa Registered Posts: 4 ✭✭✭✭

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

Best Answers

  • Omar
    Omar Dataiker Posts: 30 Dataiker
    Answer ✓
    Options

    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

  • christa
    christa Registered Posts: 4 ✭✭✭✭
    Answer ✓
    Options

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

Answers

Setup Info
    Tags
      Help me…