Add/Edit OVA VS Config

This functionality is available only for virtual servers created from the OVAs with the Network Appliance operating system.

To add new OVA VS config or edit the existing one, use the following request:

PUT /virtual_machines/:vm_identifier/network_appliance_config.xml
PUT /virtual_machines/:vm_identifier/network_appliance_config.json

XML Request Example

curl -i -X PUT -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass http://onapp.test/virtual_machines/sdfewgteet13/network_appliance_config.xml -d '<virtual_machine><network_appliance_config>Appliance config text</network_appliance_config><file_url>docs/document.txt.</file_url></virtual_machine>'

JSON Request Example

curl -i -X PUT -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass http://onapp.test/virtual_machines/sdfewgteet13/network_appliance_config.json -d '{"virtual_machine":{"network_appliance_config": "Appliance config text","file_url":"docs/document.txt."}}'

Where:

network_appliance_config - label of the network appliance config

file_url - the URL path to your network appliance config file. If this parameter is empty, it will be ignored and only the network_appliance_license parameter will be applied.