github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/loadbalancer/lb_http_request_uri_arguments_condition.go (about) 1 /* 2 * NSX API 3 * 4 * VMware NSX REST API 5 * 6 * API version: 1.0.0 7 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 */ 9 10 package loadbalancer 11 12 // This condition is used to match URI arguments aka query string of Http request messages, for example, in URI http://exaple.com?foo=1&bar=2, the \"foo=1&bar=2\" is the query string containing URI arguments. In an URI scheme, query string is indicated by the first question mark (\"?\") character and terminated by a number sign (\"#\") character or by the end of the URI. The uri_arguments field can be specified as a regular expression(Set match_type to REGEX). For example, \"foo=(?<x>\\d+)\". It matches HTTP requests whose URI arguments containing \"foo\", the value of foo contains only digits. And the value of foo is captured as $x which can be used in LbRuleAction fields which support variables. 13 type LbHttpRequestUriArgumentsCondition struct { 14 15 // A flag to indicate whether reverse the match result of this condition 16 Inverse bool `json:"inverse"` 17 18 // Type of load balancer rule condition 19 Type_ string `json:"type"` 20 21 // If true, case is significant when comparing URI arguments. 22 CaseSensitive bool `json:"case_sensitive"` 23 24 // Match type of URI arguments 25 MatchType string `json:"match_type,omitempty"` 26 27 // URI arguments, aka query string of URI. 28 UriArguments string `json:"uri_arguments"` 29 }