DO Ideas 2

Pass ssh key id(s) as a parameter when creating droplets via API

It seems that creating a server with authorized ssh keys is only possible through the control panel.

By the way, the response samples in the api docs for ssh keys are wrong, they are showing droplets instead of keys.

  • Pedro Padron
  • Sep 11 2018
  • Shipped
  • Attach files
  • Moisey Uretsky commented
    September 11, 2018 19:36

    This has now been added and is supported through the new parameter:
    &ssh_key_ids=ssh_key_id1,ssh_key_id2,etc.

  • Moisey Uretsky commented
    September 11, 2018 19:36

    Going to get the docs updated for SSH keys and we will be adding SSH keys support via API soon.

    Thanks