# Data Object - VsanResourceConstraint(vim.VsanResourceConstraint)

Property of
  VsanCompositeConstraint, VsanMassCollectorSpec
Extended by
  VsanCompositeConstraint, VsanPropertyConstraint
Extends
  DynamicData
Since
  vSAN API 6.6

## Data Object Description

Defines the base criteria for matching resources based on their types.

Properties

Name | Type | Description
--- | --- | ---
targetType* | xsd:string | The type of the resources targeted by this constraint. If a value is not specified, the constraint will match all resource types. Note that explicitly setting the `targetType` property may lead to a more optimal processing of the data request.
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="VsanResourceConstraint"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="targetType" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>