Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display
alltrue
styleh3
pageSuperb Cloud API

POST /virtual_machines/:virtual_machine_id/set_ssh_keys

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

Sections:

Table of Contents
maxLevel4
minLevel2
includeResponse.*|JSON.*|XML.*|Explanation.*

Response Parameters

 

Info

201 status and virtual server returned on success

 

JSON Request example

 

Code Block
languagebash
themeRDark
 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

Code Block
languagebash
themeRDark
 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'