ServerMania logo

Disable Virsh Console

To disable Virsh console for a virtual server, use the following request:

DELETE /virtual_machines/:id/virsh_console.xml
DELETE /virtual_machines/:id/virsh_console.json

XML Request Example

curl -i -X DELETE -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://test/virtual_machines/12/virsh_console.xml

JSON Request Example

curl -i -X DELETE -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/virtual_machines/12/virsh_console.json


The 204 No content status is returned when the request is completed successfully.