POST /virtual_machines/:virtual_machine_id/set_ssh_keys

Assigns your SSH keys and administrators SSH keys to specified virtual server

Sections:

Response Parameters

 

201 status and virtual server returned on success

 

JSON Request example

 

 curl -X POST -u user:userpass <api_url>/virtual_machines/:virtual_machine_id/set_ssh_keys.json -H 'Accept: application/xml' -H 'Content-type: application/json'

XML Request example

 curl -X POST -u user:userpass <api_url>/virtual_machines/:virtual_machine_id/set_ssh_keys.xml-H 'Accept: application/xml' -H 'Content-type: application/xml'