Hello,
I am using the vCenter REST API to deploy OVF's which I can successfully do. However, I'm unable to get additional_parameters to work properly. Specifically, custom PropertyParams. The API either a) ignores my request, or b) returns a 500 Internal Server error with the following message: "Could not convert field 'properties' of structure 'com.vmware.vcenter.ovf.property_params'".
I have tried various approaches with no luck.
My understanding from the documentation is the request should look like this:
deployment_spec : {
/* ... */
additional_parameters : [
{
type : 'PropertyParams',
properties : [
{
id : 'custom_prop_name_found_in_ovf',
value : 'true'
}
]
}
]
}
(the above results in the conversion error)
What am I doing wrong here?!
Note that this is using the ovf deploy API:
POST https://{server}/rest/com/vmware/vcenter/ovf/library-item/id:{ovf_library_item_id}?~action=deploy