VMware Cloud Community
virtualfuture1
Contributor
Contributor

[SOLVED] vcenter api how to deploy a template?

Hey guys, I am trying to deploy a vm from an existing template, which I made in the vcenter gui, using the integrated rest api. My setup:

vcenter 6.5  & exi 6.5

 

Here are the templates i created:

vcentertemplate.PNG

I looked them up in the inventory browser:

templateinobjectbrowser.PNG

Then i created the api request:

vcentererror1.PNG

 

Which failed, because the ovf library item didn't exist, makes sense i did not add it...

So i tried to create a ovf library item based on the template:

error4.PNG

error5.PNG

 This failed as well.  

Tried with another type:

error7.PNG

Which also didn't work.

 

Can anybody help me deploying such a ovf template with the api? Is there a api request to deploy a casual template which is not in the library yet?

 

Thx for any help, if you need additional information just ask.

Reply
0 Kudos
1 Reply
virtualfuture1
Contributor
Contributor

I upgraded vcenter to 6.7, works now

Reply
0 Kudos