ConditionalValueConstraintExpression

ConditionalValueConstraintExpression
ConditionalValueConstraintExpression

Represents the leaf level expression to restrict the target attribute value based on the set of existing values. Generally, used in combination with RelatedAttributeConditionalExpression to constraint the values related to another attribute on the same resource. This object is always used in conjunction with some exression. Example - { "condition" : { "operator":"INCLUDES", "rhs_value": ["/infra/domains/mgw/groups/VCENTER", "/infra/domains/mgw/groups/SRM", "/infra/domains/mgw/groups/NSX"], "value_constraint": { "resource_type": "ValueConstraintExpression", "operator":"EXCLUDES", "values":["/infra/domains/mgw/groups/VCENTER", "/infra/domains/mgw/groups/SRM", "/infra/domains/mgw/groups/NSX"] } }

JSON Example
{
    "operator": "string",
    "rhs_value": [
        "string"
    ],
    "value_constraint": {
        "operator": "string",
        "values": [
            "string"
        ]
    }
}
string
operator
Required

Set operation to constraint values.

Possible values are : INCLUDES, EXCLUDES, EQUALS,
array of string
rhs_value
Required

List of values.

value_constraint
Required

Represents the leaf level value constraint to constrain specified attribute value to the set of values to be allowed/not-allowed. Example - sourceGroups allowed to have only with list of groups. { "operator":"INCLUDES", "values":["/infra/services/HTTP", "/infra/services/HTTPS"] }