Fetching a list of available templates
-
Hey guys,
I'm implementing the module for HostFact to be able to interact with Xen Orchestra by REST API.
And trying to figure out if there is a method to fetch the list of templates to be able to store them, to show related info on HostFact side and use its ID/UUID for VM creation requests?I'm newbie regarding XO and tried to find this information in the documentation and here on the forum, but so far without success.
Could you please help to figure it out or at least point the direction in which I should dig down? Thanks.
-
@magentinos All collections are listed when you get
/rest/v0
, amongst them there is thevm-templates
collection. -
-
@magentinos All collections are listed when you get
/rest/v0
, amongst them there is thevm-templates
collection. -
@julien-f I've tried
templates
, but notvm-templates
Thank you! It works that way.And yeah, I haven't tried to call just
/rest/v0
-
-