Set SSH Keys

To assign specific SSH keys from all available owner and user keys to a virtual server, use the following request:

PUT /virtual_machines/:virtual_machine_id/set_ssh_keys.json

JSON Request Example

curl -X PUT "http://onapp.test/virtual_machines/veavqsglrvmobq/set_ssh_keys.json" -d '{"virtual_machine":{"ssh_key":"ssh key example"}}' -u user:userpass -H "Accept: application/json" -H "Content-Type: application/json"

Where:

ssh_key - is public SSH key