Using REST API v 6.5
POST https://{server}/rest/com/vmware/vcenter/ovf/library-item/id:{ovf_library_item_id}?~action=deploy
vSphere Automation API - VMware API Explorer - VMware {code}
{
"client_token": null,
"deployment_spec": {
"accept_all_EULA": true,
"annotation": null,
"default_datastore_id": "datastore-29",
"flags": null,
"locale": null,
"name": "VM-7099",
"network_mappings": null,
"storage_mappings": null,
"storage_profile_id": null,
"storage_provisioning": null,
"additional_parameters": [
{
"@class": "com.vmware.vcenter.ovf.property_params",
"type": "PropertyParams",
"properties": [
{
"instance_id": "",
"class_id": "",
"description": "The gateway IP for this virtual appliance.",
"id": "gateway",
"label": "Default Gateway Address",
"category": "LAN",
"type": "ip",
"value": "192.168.0.1",
"ui_optional": true
}
]
},
{
"@class": "com.vmware.vcenter.ovf.ip_allocation_params",
"type": "IpAllocationParams",
"ip_allocation_policy": "STATIC_MANUAL",
"ip_protocol": "IPV4",
"supported_allocation_scheme": [
"OVF_ENVIRONMENT"
],
"supported_ip_allocation_policy": [
"STATIC_MANUAL"
],
"supported_ip_protocol": [
"IPV4"
]
}
]
},
"target": {
"folder_id": "group-v22",
"host_id": "host-28",
"resource_pool_id": "resgroup-27"
}
}
What I do wrong?