ServerMania logo

Search VS by Label

To search virtual servers by label, use the following request:

GET /virtual_machines.xml?q=label
GET /virtual_machines.json?q=label

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://test/virtual_machines.xml?q=label

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/virtual_machines.json?q=label

Where you have to specify the label of a virtual server you are searching for.