Virtual Machine Mark As Virtual Machine
Clears the 'isTemplate' flag and reassociates the virtual machine with a resource pool and host.
Required privileges: VirtualMachine.Provisioning.MarkAsVM
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.3.0 APIs.
Show optional properties
{
"pool": {}
}
{
"pool": {
"_typeName": "string",
"type": "string",
"value": "string"
},
"host": {
"_typeName": "string",
"type": "string",
"value": "string"
}
}
No Content
NotSupported: if marking a template as a virtual machine is not supported.
InvalidState: if the virtual machine is not marked as a template.
InvalidDatastore: if the operation cannot be performed on the target datastores.
VmConfigFault: if the virtual machine is not compatible with the host. For example, a DisksNotSupported fault if the destination host does not support the disk backings of the template.
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"
}
]
}