Set ssh key

Da Wiki Neen.
(Differenze fra le revisioni)
(Creata pagina con '<br> <br> To assign SSH keys of all administrators and a VS owner to a virtual server, use the following request: POST /virtual_machines/:virtual_machine_id/set_ssh_keys.xml ...')
 
Riga 7: Riga 7:
 
XML Request example  
 
XML Request example  
  
curl -X POST -u user:userpass http://<span style="background-color: navy; color: white;" />neen.cloud.it/virtual_machines/:virtual_machine_id/set_ssh_keys.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'  
+
curl -X POST -u user:userpass http://&lt;span style="background-color: navy; color: white;" /&gt;<span style="background-color: navy; color: white;" />cloud.neen.it/virtual_machines/:virtual_machine_id/set_ssh_keys.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'  
  
 
JSON Request example  
 
JSON Request example  
  
curl -X POST -u user:userpass http://<span style="background-color: navy; color: white;" />neen.cloud.it/virtual_machines/:virtual_machine_id/set_ssh_keys.json -H 'Accept: application/json' -H 'Content-type: application/json'  
+
curl -X POST -u user:userpass http://&lt;span style="background-color: navy; color: white;" /&gt;<span style="background-color: navy; color: white;" />cloud.neen.it/virtual_machines/:virtual_machine_id/set_ssh_keys.json -H 'Accept: application/json' -H 'Content-type: application/json'  
  
 
<br>
 
<br>

Versione delle 14:59, 20 feb 2014



To assign SSH keys of all administrators and a VS owner to a virtual server, use the following request:

POST /virtual_machines/:virtual_machine_id/set_ssh_keys.xml POST /virtual_machines/:virtual_machine_id/set_ssh_keys.json

XML Request example

curl -X POST -u user:userpass http://<span style="background-color: navy; color: white;" /><span style="background-color: navy; color: white;" />cloud.neen.it/virtual_machines/:virtual_machine_id/set_ssh_keys.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request example

curl -X POST -u user:userpass http://<span style="background-color: navy; color: white;" /><span style="background-color: navy; color: white;" />cloud.neen.it/virtual_machines/:virtual_machine_id/set_ssh_keys.json -H 'Accept: application/json' -H 'Content-type: application/json'


Strumenti personali
Namespace
Varianti
Azioni
Navigazione
Strumenti