Virtual Machine Repair Vm Disk Chains Task
Repair the broken disk chains in the VM while the VM is powered off.
Requires Datastore.FileManagement privilege on the datastore where each virtual disk resides.
Since: vSphere API Release 9.1.0.0
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 9.1.0.0 APIs.
OK
{
"_typeName": "string",
"type": "string",
"value": "string"
}
InvalidPowerState: if the virtual machine is powered on or suspended.
VmConfigFault: if a virtual machine configuration issue prevents repairing. Typically, a more specific fault is thrown such as InvalidDiskFormat if a disk cannot be read.
InsufficientResourcesFault: if this operation would violate a resource usage policy. This is typically due to too many open files causing disk files cannot open.
FileFault: if there is a problem accessing the virtual machine's disk files for this operation. Typically a more specific fault for example NoDiskSpace or FileLocked is thrown.
TaskInProgress: if the virtual machine is busy.
NotSupported: if the ESX server doesn't support repair of the VM
SystemError: if failure due to any other reason.
{
"_typeName": "string",
"faultCause": {
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}
Fault which is the cause of this fault.
Message which has details about the error Message can also contain a key to message catalog which can be used to generate better localized messages.
curl -X POST -H 'Authorization: <value>' https://{api_host}/sdk/vim25/{release}/VirtualMachine/{moId}/RepairVmDiskChains_Task