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.
Request:
HTTP request
GET https://{server}/rest/vcenter/vm-template/library-items/{template_library_item}/versions/{version}
Path Parameters
Name | Type | Description |
---|---|---|
Required | ||
template_library_item | string | Identifier of the VM template library item. |
version | string | Version of the library item. |
Response:
HTTP Status Code: 200
Representation:
{
"value" : {
"vm_template" : "string"
}
}
"value" : {
"vm_template" : "string"
}
}
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. |
Errors:
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. |