github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/loadbalancer/lb_select_server_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 select a backend server for matched HTTP request messages. Matched HTTP request messages are forwarded to the specified backend server. The ip and port fields must be specified as single values, IP range and port range are not supported.
    13  type LbSelectServerAction struct {
    14  
    15  	// Type of load balancer rule action
    16  	Type_ string `json:"type"`
    17  
    18  	// IP address of selected backend server
    19  	Ip string `json:"ip"`
    20  
    21  	// UUID of load balancer pool
    22  	PoolId string `json:"pool_id"`
    23  
    24  	// This field is not required when the pool_id and ip fields can uniquely identify a pool member and the port of backend service is same as the port of virtual server. Otherwise, this port field must be specified.
    25  	Port string `json:"port,omitempty"`
    26  }