github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/clb/describe_listeners.go (about)

     1  package clb
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询应用型负载均衡监听器列表
     8  // https://cloud.tencent.com/document/api/214/30686
     9  
    10  type DescribeListenersRequest struct {
    11  	// 要查询的应用型负载均衡监听器 ID数组
    12  	ListenerIds []*string `name:"ListenerIds,omitempty"`
    13  	// 负载均衡实例 ID
    14  	LoadBalancerId string `name:"LoadBalancerId"`
    15  	// 要查询的监听器的端口
    16  	Port *int64 `name:"Port,omitempty"`
    17  	// 要查询的监听器协议类型,取值 TCP | UDP | HTTP | HTTPS | TCP_SSL
    18  	Protocol *string `name:"Protocol,omitempty"`
    19  	// 区域
    20  	Region string `name:"Region"`
    21  }
    22  
    23  func (req *DescribeListenersRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeListenersResponse, error) {
    24  	resp := &DescribeListenersResponse{}
    25  	err := client.Request("clb", "DescribeListeners", "2018-03-17").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type DescribeListenersResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  	// 监听器列表
    32  	Listeners []*Listener `json:"Listeners"`
    33  }