VmCriteriaRule

VmCriteriaRule
VmCriteriaRule

A criteria rule that contains specific attributes that a VM can match with.

JSON Example
{
    "attributeType": "string",
    "attributeValue": "string",
    "operator": "string"
}
string
attributeType
Required

The attribute type of a VM used for VM matching. Below are supported types:

  • VM_TAG - Match the VM based on the tags associated with that VM.
  • VM_NAME - Match the VM based on the name of the VM. Only CONTAINS and STARTS_WITH operators are supported for this type.
string
attributeValue
Required

The attribute value that is used to determine if a VM's attribute value matches the rule. Example: if the attribute type is VM_NAME, user should set this value to the name of the VM to match with.

string
operator
Required

The operator to perform to determine whether the rule's attribute value matches a VM's attribute value. Example: if the attribute type is VM_NAME, user can set this operator to determine whether a VM's name must be an exact match or starts with that name. Below are supported types:

  • EQUALS - Match occurs if the VM's attribute value is exactly the same as the rule's attribute value.
  • CONTAINS - Match occurs if the VM's attribute value is contains the rule's attribute value.
  • STARTS_WITH - Match occurs if the VM's attribute value starts with the rule's attribute value.
  • ENDS_WITH - Match occurs if the VM's attribute value ends with the rule's attribute value.
Availability
Added in 36.0
Property Of