Managed Object - VsanObjectSystem(vim.cluster.VsanObjectSystem)

See also
ComputeResource, VirtualMachineProfileSpec, VsanObjectIdentityAndHealth, VsanObjectInformation, VsanObjectQuerySpec
Since
vSphere API 5.5


Managed Object Description

This managed object type provides the service interface for setting the storage policy to one Virtual SAN object, querying the Virtual SAN object status information, i.e. its storage profile, its health status.
The ManagedEntity can be accessed with MOID of 'vsan-cluster-object-system', through Virtual SAN service at vCenter server side. And it can be accessed with MOID of 'vsan-object-system', through Virtual SAN service at ESXi host side.

Properties

Name Type Description
None

Methods

Methods defined in this Managed Object
VosQueryVsanObjectInformation, VosSetVsanObjectPolicy, VsanQueryObjectIdentities

VosQueryVsanObjectInformation(queryVsanObjectInformation)

Get information about the Virtual SAN object/directory. If it's called in VC, the spbmProfileGenerationId can be safely ignored in vim.cluster.VsanObjectQuerySpec, it will be automatically set to the correct value by using SPBM service. If it's called in host, both fields in vim.cluster.VsanObjectQuerySpec should be provided, if spbmProfileGenerationId is not provided, the one from Virtual SAN CMMDS will be used here, as a result, the mismatch field for storage compliance result is not reliable in some cases, e.g. profile is updated or deleted in VC after the Virtual SAN object creation. If the Virtual SAN object can not be found, FileNotFound exception will be raised. If the Virtual SAN object failed to read the policy, e.g. because it is not accessible, FileNotReadable exception will be raised.
Required Privileges
System.Read

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanObjectSystem used to make the method call.
cluster*ManagedObjectReference
to a ComputeResource

Virtual SAN cluster. Ignored if called against host.

Since vSphere API 5.5
vsanObjectQuerySpecsVsanObjectQuerySpec[]

Virtual SAN object query spec list.
*Need not be set

Return Value

Type Description
VsanObjectInformation[]Object information list.

Faults

Type Description
FileNotFound
FileNotWritable
InvalidArgument
NotSupported
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VosSetVsanObjectPolicy(setVsanObjectPolicy)

Set the policy of the Virtual SAN object. The cluster parameters is ignored if called on ESX.

Profile can be 3 formats:
1. VirtualMachineEmptyProfileSpec means to use the empty Virtual SAN policy. This is not the default policy, but a policy where all fields have default values.
2. VirtualMachineDefinedProfileSpec where profileId is set, in which case this profileId will be looked up in SPBM for the detailed policy information.
3. 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 Virtual SAN expression format, or a SPBM XML string. If no profile is supplied, and the call is executed against VC, then SPBM will be consulted for the Virtual SAN datastore's default profile.

When this method returns successfully, the profile has been applied, but Virtual SAN may still be remediating in order to implement the new policy. The health state of the object and resync information should be monitored to check on the progress.
Only the third option for profile is available when called on ESX, other formats will raise InvalidArgument exception. If SPBM needs to be contacted, but SPBM is not available, RuntimeFault exception will be raised. If the profileId can not be resolved with SPBM, InvalidArgument exception will be raised. If objectData was provided but is neither of the two supported formats, InvalidArgument exception will be raised. If the Virtual SAN object can not be found, FileNotFound exception will be raised. If the Virtual SAN object failed to set the policy, e.g. because it is not accessible, FileNotWritable exception will be raised. If called against VC, but no ESX host could be contacted to perform the operation, the exception is logged and the False is returned by this method.
Required Privileges
System.Read

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanObjectSystem used to make the method call.
cluster*ManagedObjectReference
to a ComputeResource

Virtual SAN cluster. Ignored if called against host.

Since vSphere API 5.5
vsanObjectUuidxsd:string

Virtual SAN object uuid.
profile*VirtualMachineProfileSpec

See above description for all possible options.

Since vSphere API 5.5
*Need not be set

Return Value

Type Description
xsd:booleanTrue when the operation successfully, False when it is failed and there is no exception raised.

Faults

Type Description
FileNotFound
FileNotWritable
InvalidArgument
NotSupported
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



VsanQueryObjectIdentities(queryObjectIdentities)

Map from VSAN object UUIDs to their identities. The results contain the identities of all objects that could be resolved. The identity includes things like the object type, references to the VM the object belongs to and such. If called against a host, the cluster argument is ignored and only those objects are resolved which can be resolved by that host. For VM related objects a host can only resolve the objects if the VM they belong to is registered on that host. If called against vCenter, all connected hosts will be contacted for this information and the results will be aggregated. Any VMs registered with hosts which are disconnected will hence not be resolved.
Required Privileges
System.Read

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the VsanObjectSystem used to make the method call.
cluster*ManagedObjectReference
to a ComputeResource

VSAN cluster. Ignored if called against host.

Since vSphere API 5.5
objUuids*xsd:string[]

The Virtual SAN object UUIDs for querying. Unset to query all of Virtual SAN objects

Since vSphere API 5.5
includeHealth*xsd:boolean

If the result includes the object health status. Default is False

Since vSphere API 5.5
includeObjIdentity*xsd:boolean

If the result includes all of the object identity. Default is True

Since vSphere API 5.5
includeSpaceSummary*xsd:boolean

If the result includes the VSAN space consumption summarizing by object type. Default is False

Since vSphere API 5.5
*Need not be set

Return Value

Type Description
VsanObjectIdentityAndHealthObject information structure

Faults

Type Description
NotSupported
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition