NSX-T Data Center REST API

LBVariableCondition (type)

{
  "additionalProperties": false,
  "description": "This condition is used to match variable's name and value at all phases. The variables could be captured from REGEX or assigned by LBVariableAssignmentAction or system embedded variable. Varialbe_name and variable_value should be matched at the same time.",
  "extends": {
    "$ref": "LBRuleCondition"
  },
  "id": "LBVariableCondition",
  "module_id": "PolicyLoadBalancer",
  "polymorphic-type-descriptor": {
    "type-identifier": "LBVariableCondition"
  },
  "properties": {
    "case_sensitive": {
      "default": true,
      "description": "If true, case is significant when comparing variable value.",
      "required": false,
      "title": "A case sensitive flag for variable value comparing",
      "type": "boolean"
    },
    "inverse": {
      "default": false,
      "required": false,
      "title": "A flag to indicate whether reverse the match result of this condition",
      "type": "boolean"
    },
    "match_type": {
      "$ref": "LbRuleMatchType",
      "default": "REGEX",
      "required": false,
      "title": "Match type of variable value"
    },
    "type": {
      "$ref": "LBRuleConditionType",
      "required": true,
      "title": "Type of load balancer rule condition"
    },
    "variable_name": {
      "required": true,
      "title": "Name of the variable to be matched",
      "type": "string"
    },
    "variable_value": {
      "required": true,
      "title": "Value of variable to be matched",
      "type": "string"
    }
  },
  "title": "Condition to match IP header fields",
  "type": "object"
}