Skip to main content

Criteria

Properties​

NameTypeDescriptionNotes
CriteriaTypeCriteriaType[required]
OperationOperation[required]
CriteriaPropertyStringThe specified key from the Type of criteria.[optional]
CriteriaValueStringThe value for the specified key from the Type of Criteria. Used for scalar operations. Must be absent when operation is IN.[optional]
CriteriaValues[]StringList of values for the IN operation. Required when operation is IN; must be absent for all other operations.[optional]
Children[]CriteriaList of child criteria. Applicable only for COMPOSITE criteriaType[optional]

Examples​

  • Prepare the resource
$Criteria = Initialize-Criteria -CriteriaType null `
-Operation null `
-CriteriaProperty displayName `
-CriteriaValue Allie `
-CriteriaValues ["8a32c3d5f2864555948e63867c377ca2","9b41d4e6g3975666059f74978d488db3"] `
-Children [{"criteriaType":"IDENTITY","criteriaProperty":"DISPLAY_NAME","criteriaValue":"support","operation":"EQUALS"}]
  • Convert the resource to JSON
$Criteria | ConvertTo-JSON

[Back to top]