REST API - get

vcenter vm template library items versions: get

Returns information about the live version of a library item containing a virtual machine template. This operation was added in vSphere API 6.9.1.


HTTP request

GET https://{server}/rest/vcenter/vm-template/library-items/{template_library_item}/versions/{version}

Path Parameters

Name Type Description
template_library_item string Identifier of the VM template library item.
version string Version of the library item.


HTTP Status Code: 200



Response Type:

Name Type Description
bold = required
value info Information about the specified library item version.
value.vm_template string Identifier of the virtual machine template associated with the library item version. This field is the managed object identifier used to identify the virtual machine template in the vSphere Management (SOAP) API. This attribute was added in vSphere API 6.9.1.


HTTP Status Code Type Description
404 not_found if the library item or version is not found.
400 invalid_argument if the library item does not contain a virtual machine template.
401 unauthenticated if the user that requested the operation cannot be authenticated.
403 unauthorized if the user that requested the operation is not authorized to perform the operation.
500 error if the system reports an error while responding to the request.