ServerMania logo

Enable Virsh Console

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

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

XML Request Example

curl -i -X POST -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 POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/virtual_machines/12/virsh_console.json

The 200 OKĀ status is returned when the request is completed successfully.