Edit VS XML Config

IMPORTANT

Virtual servers with modified XML configuration are not be supported by the OnApp support team.

To edit XML config for a specific VS, use the following request: 

PUT /virtual_machines/:virtual_machine_id/xml_config.xml
PUT /virtual_machines/:virtual_machine_id/xml_config.json

XML Request Example

curl -i -X PUT -u user:userpass --url http://onapp.test/virtual_machines/12/xml_config.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<virtual_machine><xml_config>parameters</xml_config><reboot type="integer">0</reboot></virtual_machine>' 

JSON Request Example

curl -i -X PUT -u user:userpass --url http://onapp.test/virtual_machines/12/xml_config.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"virtual_machine": {"xml_config": "parameters","reboot": "0" }}' 

Where:

xml_config - edit the XML configuration parameters of the specific VS

reboot - set to 1 if you want to reboot VS after editing XML configuration, otherwise, set to 0