Create VM via one of Catalog Items created earlier using REST API? | Nutanix Community
Skip to main content
Solved

Create VM via one of Catalog Items created earlier using REST API?


Forum|alt.badge.img+1

I want to create to vm’s using REST API by selecting one of Catalog Items.

I can create vm via catalog items via Prism Central Dashboard.

When i try to create vm via REST API, i can not find any reference to give Catalogs Items vm  template there.

How to give vm templates in vm creation using REST API?

Best answer by Alona

Hi Balram,

There is no API to complete the tasks form a PC unfortunately but you can do achieve this from a PE if that’s an option for you. Rest api for creating vm from image services not working

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

4 replies

AnishWalia20
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 201 replies
  • March 1, 2021

Hey, @Balram let me research this and try it out in my test lab and get back to you soon.:sweat_smile:


AnishWalia20
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 201 replies
  • March 3, 2021

Hey @Balram so I tried researching and finding more on this.

Not sure how that works, to be honest. You can clone existing vdisks when creating a new VM, but not sure what API calls to use for catalogue items. You can try one thing see if that API is supported by using Chrome Dev Tools while creating a VM via catalogue items via Prism Central and see what actions are using when doing the call.


Alona
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 432 replies
  • Answer
  • March 4, 2021

Hi Balram,

There is no API to complete the tasks form a PC unfortunately but you can do achieve this from a PE if that’s an option for you. Rest api for creating vm from image services not working


Forum|alt.badge.img+2
  • Trailblazer
  • 17 replies
  • March 29, 2021

@Balram This is a good requirement. We have this need too as we just rolled out Self-Service and want to allow some developers use the REST API to provision VMs from catalog items. However, I don’t find any mention of catalog items in the API. We were told that there’s a REST API call made available for everything that we do in UI, but that’s certainly not the case.