Larch
Contributor
Contributor

vCenter REST API - deploy from ovf template

Hello everyone

I am trying to deploy from an ovf template. The following body with the "/com/vmware/vcenter/ovf/library-item/id:{ovf_library_item_id}?~action=deploy" function is already working.

{

    "deployment_spec": {

        "accept_all_EULA": true,

        "default_datastore_id": "datastore-30598",

        "network_mappings": [

        {

            "key": "4000",

            "value": "network-154"

        }

    ],

        "name": "AATest08"

    },

    "target": {

        "folder_id": "group-v5920",

        "host_id": "host-1934",

        "resource_pool_id": "resgroup-43"

    }

}

My problem is, that the network parameters (marked in red) are getting completly ignored. How can i fix that? What am i doing wrong?

Sadly, i cant find any examples on the web. I hope you guys can help me out.

Michael

Reply
0 Kudos