diff --git a/pkg/client/load_balancer.go b/pkg/client/load_balancer.go index 302ffd6..290e4ad 100644 --- a/pkg/client/load_balancer.go +++ b/pkg/client/load_balancer.go @@ -527,6 +527,25 @@ func (lb *LoadBalancerAPIService) GetSpecificLBVirtualServer( return LBVSResp, err } +func (lb *LoadBalancerAPIService) GetLBPoolMemberGroup( + ctx context.Context, + serviceID int, +) (models.GetMemeberGroupForPool, error) { + LBMemberGroupResp := models.GetMemeberGroupForPool{} + LBMemberGroupInput := &api{ + method: "GET", + path: fmt.Sprintf("%s/%s/%d/%s", + consts.NetworksPath, consts.ServerPath, serviceID, consts.GroupsPath), + client: lb.Client, + jsonParser: func(body []byte) error { + return json.Unmarshal(body, &LBMemberGroupResp) + }, + } + err := LBMemberGroupInput.do(ctx, nil, nil) + + return LBMemberGroupResp, err +} + func (lb *LoadBalancerAPIService) GetLBVirtualServerSSLCerts( ctx context.Context, ) (models.GetSSLCertificates, error) {