Skip to content

Commit

Permalink
Merge pull request #56 from HewlettPackard/pool-fix
Browse files Browse the repository at this point in the history
API for LBPOOL Member group
  • Loading branch information
gandharvas authored Aug 5, 2022
2 parents 5e7b03d + 58360e5 commit 185f6df
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pkg/client/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 185f6df

Please sign in to comment.