# Data Object - VsanPropertyConstraint(vim.VsanPropertyConstraint)

Extends
  VsanResourceConstraint
See also
  KeyAnyValue
Since
  vSAN API 6.6

## Data Object Description

Defines a criteria for matching resources based on conditions on their resource model properties. For example, it could be used to match all `VirtualMachine` resources which are powered on, etc.

Properties

Name | Type | Description
--- | --- | ---
comparableValue* | KeyAnyValue | The value to be compared against the specified resource model property. Could be * an array if the comparison operator works on a range of values.
comparator* | xsd:string | Defines the possible operators to use for comparison of the resource model properties. See VsanPropertyConstraintComparatorEnum
propertyName* | xsd:string | The name of the resource model property to be evaluated by this constraint. For example: `runtime.host`. If a value is not specified, i.e., `null` the constraint will evaluate all properties of the kind implied by the interpretation context, e.g., if used in a `PropertyConstraint` with the operator VsanPropertyConstraintComparatorEnum#TEXTUALLY_MATCHES, it'd imply all textual properties.
Properties inherited from VsanResourceConstraint
targetType
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="VsanPropertyConstraint"> <complexContent> <extension base="vsan:VsanResourceConstraint"> <sequence> <element name="propertyName" type="xsd:string" minOccurs="0"/> <element name="comparator" type="xsd:string" minOccurs="0"/> <element name="comparableValue" type="vsan:KeyAnyValue" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>