github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/loadbalancer/lb_ip_header_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 IP header fields of HTTP messages. Currently, only the source IP address is supported. IP addresses can be expressed as a single IP address like 10.1.1.1, or a range of IP addresses like 10.1.1.101-10.1.1.160. Both IPv4 and IPv6 addresses are supported. 13 type LbIpHeaderCondition 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 // Source IP address of HTTP message 22 SourceAddress string `json:"source_address"` 23 }