Delete VS
Da Wiki Neen.
(Differenze fra le revisioni)
(Creata pagina con 'DELETE /virtual_machines/:id.xml<br>DELETE /virtual_machines/:id.json XML Request example curl -i -X DELETE -u user:userpass http://<span style="background-color: navy; color:...') |
|||
| (Una revisione intermedia di un utente non mostrate) | |||
| Riga 1: | Riga 1: | ||
DELETE /virtual_machines/:id.xml<br>DELETE /virtual_machines/:id.json | DELETE /virtual_machines/:id.xml<br>DELETE /virtual_machines/:id.json | ||
| − | XML Request example | + | '''XML Request example''' |
| − | curl -i -X DELETE -u user:userpass http:// | + | curl -i -X DELETE -u user:userpass http://cloud.neen.it/virtual_machines/:id.xml?convert_last_backup=1&destroy_all_backups=1 |
| − | JSON Request example | + | '''JSON Request example''' |
| − | curl -i -X DELETE -u user:userpass http:// | + | curl -i -X DELETE -u user:userpass http://cloud.neen.it/virtual_machines/:id.json?convert_last_backup=1&destroy_all_backups=1 |
| − | <br>Where: | + | <br>Where: |
| − | id – the ID of a VS you want to delete | + | *id – the ID of a VS you want to delete |
| + | *convert_last_backup – set 1 to convert the last VS's backup to template, otherwise set 0 | ||
| + | *destroy_all_backups – set 1 to destroy all existing backups of this VS, otherwise set 0 | ||
| − | + | <br><br> | |
| − | + | [[Category:Neencloud]] | |
| − | + | ||
| − | + | ||
Versione attuale delle 17:13, 20 feb 2014
DELETE /virtual_machines/:id.xml
DELETE /virtual_machines/:id.json
XML Request example
curl -i -X DELETE -u user:userpass http://cloud.neen.it/virtual_machines/:id.xml?convert_last_backup=1&destroy_all_backups=1
JSON Request example
curl -i -X DELETE -u user:userpass http://cloud.neen.it/virtual_machines/:id.json?convert_last_backup=1&destroy_all_backups=1
Where:
- id – the ID of a VS you want to delete
- convert_last_backup – set 1 to convert the last VS's backup to template, otherwise set 0
- destroy_all_backups – set 1 to destroy all existing backups of this VS, otherwise set 0