github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/loadbalancer/lb_http_reject_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 reject HTTP request messages. The specified reply_status value is used as the status code for the corresponding HTTP response message which is sent back to client (Normally a browser) indicating the reason it was rejected. Reference official HTTP status code list for your specific HTTP version to set the reply_status properly. LbHttpRejectAction does not support variables. 13 type LbHttpRejectAction struct { 14 15 // Type of load balancer rule action 16 Type_ string `json:"type"` 17 18 // Response message 19 ReplyMessage string `json:"reply_message,omitempty"` 20 21 // HTTP response status code 22 ReplyStatus string `json:"reply_status"` 23 }