We are excited to announce that our API now supports SSH Keys for virtual server creates. This allows customers to spin-up new servers through the API with a single or multiple SSH keys already added to the root user. When using SSH keys, we also do not email out the root password for added security as we default to SSH keys for authorization.
To get a list of your available SSH keys simply:
This will give you JSON output of all of your current keys that can be deployed during creates:
To use SSH keys in your create request, simply add the new paramater
ssh_key_ids with a comma separated list of SSH Key IDs that you would like added to the new server that you will create:
In this case, if you wanted to add both the office-imac and macbook-air keys, you would add the following to your create call:
It's just that simple to now integrate SSH Keys into your droplet creates via the API!