SearchIndexPredicate
Since: vSphere API Release 9.1.0.0
{
"_typeName": "string",
"propertyPath": "string",
"operator": "string",
"arrayOperator": "string",
"comparableValue": {
"_typeName": "string"
},
"comparableList": [
{
"_typeName": "string"
}
]
}
Specifies the resource model property to be compared.
Only properties of the following types may be used for comparisons in predicates:
booleanbyteshortintlongfloatdoubleStringEnumManagedObjectReferenceDateTimeURI
The property can be:
- top level property name e.g.
runtime - dot-separated chain of property names to indicate a child property.
e.g.
runtime.powerState - the special identifier property @moRef which will extract the
corresponding identifier
ManagedObjectReferenceof the object
If the property is an array of DataObject you can additionally:
- index a specific object by its "key" property
example with string key
config.network.pnic["key-vim.host.PhysicalNic-vmnic0"]example with int keyconfig.hardware[10] - get a specific property of specific object
e.g.
config.network.pnic["key-vim.host.PhysicalNic-vmnic0"].mac - use array aggregation to obtain specific properties from all elements
e.g.
config.network.pnic[*].mac
Please note that tupling is not supported in filters.
The operator to use for comparison of the property value.
Supported operators are listed in SearchIndexPredicateComparisonOperatorEnum.
The operator should be used only for properties, which return an array as their value.
It specifies one of the options defined in SearchIndexPredicateArrayOperatorEnum. The operator MUST be set for array values and unset for non-array values. This operator MUST always be used in combination with operator.