Vsan Diagnostics System Start IO Diagnostics Task
Start IO diagnostics task against the given targets running on vSAN datastore.
It's not supported to run multiple diagnostics tasks at the same time. You need either cancel the running task or wait until it completes before starting a new diagnostics task.
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 VsanDiagnosticsSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"StartIODiagnosticsTaskRequestType Object"
The targets to run the diagnostics.
The cluster where the targets belong to, ignored when calling against ESXi hosts.
Required privileges: Global.Diagnostics
The duration time in seconds to run diagnostics. The valid range is [300, 3600], default is 300.
The task that runs the diagnostics.
"MoRefTask Object"
InvalidArgument: if the targets are not valid.
NotSupported: if there's already a running diagnostics task.
VsanFault: if the caller doesn't have the required privilege or if the pre-check tests failed.
"MethodFault Object"
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>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VsanDiagnosticsSystem/{moId}/StartIODiagnosticsTask