Vsan Diagnostics System Vsan Set Trace Object Policy

Vsan Diagnostics System Vsan Set Trace Object Policy

Set the policy of the vSAN namespace object that hold the vSAN trace files.

The cluster parameter is ignored if called on ESXi. Profile can be:

  • VirtualMachineDefinedProfileSpec where profileId is an empty string and instead the profileData is set for extensionKey 'com.vmware.vim.sps'. In this case the objectData field can be either the vSAN expression format, or a SPBM XML string.

If no profile is supplied, a default profile with hostFailuresToTolerate setting will be used.

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/vsan/VsanDiagnosticsSystem/{moId}/VsanSetTraceObjectPolicy
COPY
Path Parameters
string
moId
Required

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}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.


Request Body
VsanSetTraceObjectPolicyRequestType of type(s) application/json
Required
"VsanSetTraceObjectPolicyRequestType Object"
cluster
Optional

vSAN cluster. Ignored if called against host.

Required privileges: Global.Settings

string
traceObjectUuid
Required

traceObjectUuid

profile
Optional

See above description for all possible options.

Authentication
This operation uses the following authentication methods.
Responses
200

True

Returns integer of type(s) application/json
Operation doesn't return any data structure

500

NotFound: if no ESXi host could be contacted to perform the operation when called against vCenter.

VsanFault: if the caller doesn't have the required privilege

Returns VsanFault of type(s) application/json
"VsanFault Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VsanDiagnosticsSystem/{moId}/VsanSetTraceObjectPolicy