Add/Edit OVA VS License

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

To add or edit OVA VS license, use the following request:

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

XML Request Example

curl -i -X PUT -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/virtual_machines/3/network_appliance_license.xml -d '<virtual_machine><network_appliance_license>License1</network_appliance_license><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 -url http://onapp.test/virtual_machines/3/network_appliance_license.json -d '{"virtual_machine":{"network_appliance_license": "License1","file_url":"docs/document.txt."}}'

Where:

network_appliance_license - label of the network appliance license 

file_url - the URL 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.