MCPcopy Index your code
hub / github.com/apache/cloudstack-go / ListInstanceGroups

Method ListInstanceGroups

cloudstack/VMGroupService.go:633–645  ·  view source on GitHub ↗

Lists vm groups

(p *ListInstanceGroupsParams)

Source from the content-addressed store, hash-verified

631
632// Lists vm groups
633func (s *VMGroupService) ListInstanceGroups(p *ListInstanceGroupsParams) (*ListInstanceGroupsResponse, error) {
634 resp, err := s.cs.newRequest("listInstanceGroups", p.toURLValues())
635 if err != nil {
636 return nil, err
637 }
638
639 var r ListInstanceGroupsResponse
640 if err := json.Unmarshal(resp, &r); err != nil {
641 return nil, err
642 }
643
644 return &r, nil
645}
646
647type ListInstanceGroupsResponse struct {
648 Count int `json:"count"`

Callers 2

GetInstanceGroupIDMethod · 0.95
GetInstanceGroupByIDMethod · 0.95

Calls 2

newRequestMethod · 0.80
toURLValuesMethod · 0.45

Tested by

no test coverage detected