github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/loadbalancer/lb_http_request_uri_rewrite_action.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 action is used to rewrite URIs in matched HTTP request messages. Specify the uri and uri_arguments fields in this condition to rewrite the matched HTTP request message's URI and URI arguments to the new values. Full URI scheme of HTTP messages have following syntax: scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment] The uri field of this action is used to rewrite the /path part in above scheme. And the uri_arguments field is used to rewrite the query part. Captured variables and built-in variables can be used in the uri and uri_arguments fields. Check the example in LbRuleAction to see how to use variables in this action. 13 type LbHttpRequestUriRewriteAction struct { 14 15 // Type of load balancer rule action 16 Type_ string `json:"type"` 17 18 // URI of HTTP request 19 Uri string `json:"uri"` 20 21 // Query string of URI, typically contains key value pairs, for example: foo1=bar1&foo2=bar2 22 UriArguments string `json:"uri_arguments,omitempty"` 23 }