github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/clb/describe_targets.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/30684 9 10 type DescribeTargetsRequest struct { 11 // 监听器 ID列表 12 ListenerIds []*string `name:"ListenerIds,omitempty"` 13 // 负载均衡实例 ID 14 LoadBalancerId string `name:"LoadBalancerId"` 15 // 负载均衡监听器端口 16 Port *int64 `name:"Port,omitempty"` 17 // 监听器协议类型 18 Protocol *string `name:"Protocol,omitempty"` 19 // 区域 20 Region string `name:"Region"` 21 } 22 23 func (req *DescribeTargetsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeTargetsResponse, error) { 24 resp := &DescribeTargetsResponse{} 25 err := client.Request("clb", "DescribeTargets", "2018-03-17").Do(req, resp) 26 return resp, err 27 } 28 29 type DescribeTargetsResponse struct { 30 github_com_morlay_goqcloud.TencentCloudBaseResponse 31 // 监听器后端绑定的机器信息 32 Listeners []*ListenerBackend `json:"Listeners"` 33 }