Checks in a virtual machine into the library item. This operation updates the library item to contain the virtual machine being checked in as a template. This template becomes the latest version of the library item. The previous virtual machine template contained in the library item is available as a backup and its information can be queried using the Versions service. At most one previous version of a virtual machine template is retained in the library item.
if you do not have all of the privileges described as follows:
- Operation execution requires System.Read.
- The resource com.vmware.content.library.Item referenced by the parameter templateLibraryItem requires ContentLibrary.CheckInTemplate.
- The resource VirtualMachine referenced by the parameter vm requires System.Read.
com.vmware.vapi.std.errors.invalid_argument : if any of the specified parameters are invalid.
if the virtual machine identified by vm was not checked out of the item specified by templateLibraryItem. | com.vmware.vapi.std.errors.not_allowed_in_current_state : if the operation cannot be performed because of the virtual machine's current state. For example, if the virtual machine is not powered off.
com.vmware.vapi.std.errors.resource_inaccessible : if there is an error accessing a file from the virtual machine. | com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.