Virtual Machine Mark As Template
Marks a VirtualMachine object as being used as a template.
Note: A VirtualMachine marked as a template cannot be powered on.
Required privileges: VirtualMachine.Provisioning.MarkAsTemplate
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case VirtualMachine/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
No Content
NotSupported: if marking a virtual machine as a template is not supported.
InvalidPowerState: if the virtual machine is not powered off.
InvalidState: if the operation cannot be performed because of the virtual machine's current state. For example, if the virtual machine configuration information is not available.
VmConfigFault: if the template is incompatible with the host, such as the files are not accessible.
FileFault: if there is an error accessing the virtual machine files.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}