# Data Object - VsanXvcQuerySpec(vim.vsan.XvcQuerySpec)

Parameter to
  VsanQueryHciMeshDatastores
Extends
  DynamicData
See also
  VsanXvcQueryFilter
Since
  vSAN API 8.0.0.2

## Data Object Description

A query which encapsulates a request for specific object model. It supports filtering the object model's data to return by conditions on target object model's properties. Also, it allows for paging the final result set.

Properties

Name | Type | Description
--- | --- | ---
filter* | VsanXvcQueryFilter | Restricts (filters) the set of resources to be returned for the query.
limit* | xsd:int | The maximum number of result items to return. If used, the value should be a non-negative integer.
objectModel* | xsd:string | Supported object models: providerVcenter: The vCenters which the queried vCenter has configured as Datastore Sources. clientVcenter: The vCenters which have added the queried vCenter as Datastore Source. datastore: The vSAN local datastores on all provider vCenters and the local vCenter which are allowed to be mounted. clientCluster: The clusters which mount the datastores on the queried vCenter.
offset* | xsd:int | The offset into the result set. Must be non-negative number. If unset, defaults to 0.
properties* | xsd:string[] | Specifies the object model properties to be included in the result set for the query. For providerVcenter, each properties are illustrated below: name: The vCenter's name (align with the Datastore Source configuration or specified remote vCenter information). uuid: The vCenter's uuid. version: The vCenter's API version. linkType: The vCenter's link type. See {@vim.vsan.RemoteVcLinkType}. totalCapacity: The total capacity of the datastores which can be mounted on the vCenter. usedCapacity: The used capacity of the datastores which can be mounted on the vCenter status: The communication status of the vCenter. When the vCenter can be communicated, the status code is 'OK'. When there is issue for communication, the status is in format of 'code{info}', as below: code: VsanSslVerifyCertFault, info: The expected certificate of the vCenter. This is the string of single x509 certificate encoded in PEM format. Caller needs to explicitly specify the certificate in passed parameter of VsanRemoteVcInfoStandalone and retry the related APIs. code: NotAuthenticated, info: Some detailed information about unauthentication. code: ERROR, info: The exception type of the error, with some detailed error information. Representing a generic error. clientVcenter: The queried vCenter which configures the providerVcenter as a Datastore Source. This is for differentiating multiple queried vCenters which configures the same providerVcenter. For clientVcenter, each properties are illustrated below: name: The vCenter's name. uuid: The vCenter's uuid. providerVcenter: The queried vCenter which the clientVcenter configures as a Datastore Source. This is for differentiating multiple queried vCenters which has the same clientVcenter. For datastore, each properties are illustrated below: name: The datastore's name. moId: The datastore's moId. providerVcenter: The name (align with the Datastore Source configuration or specified remote vCenter information) of the vCenter which provides the datastore. serverGuid: The uuid of the providerVcenter. datacenter: The name of the datacenter which provides the datastore. clusterName: The name of the cluster which provides the datastore. clusterMoId: The moId of the cluster which provides the datastore. totalCapacity: The total capacity of the datastore. usedCapacity: The used capacity of the datastore. vmCount: The count the VMs which are provisioned in the datastore. aliasOf: The alias property of the datastore. containerId: The containerId property of the datastore. For clientCluster, each properties are illustrated below: name: The name of the cluster. moId: The moId of the cluster. vcenter: The name of the vCenter which provides the cluster. serverGuid: The uuid of the vCenter which provides the cluster. providerVcenter: The name (align with the Datastore Source configuration or specified remote vCenter information) of the vCenter which has datastore(s) mounted by the client. datastores: The moIds list of the datastores on the providerVcenter which are mounted by the client cluster
returnTotalCount* | xsd:boolean | Indicates whether the total number of objects that matched the query should be computed and returned. This is meaningful only in cases where the number of objects that match the query could be more than the limit of the result items to be returned. If unset, defaults to false.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="VsanXvcQuerySpec"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="objectModel" type="xsd:string" minOccurs="0"/> <element name="properties" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> <element name="filter" type="vsan:VsanXvcQueryFilter" minOccurs="0"/> <element name="offset" type="xsd:int" minOccurs="0"/> <element name="limit" type="xsd:int" minOccurs="0"/> <element name="returnTotalCount" type="xsd:boolean" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>