Lists vm groups
(p *ListInstanceGroupsParams)
| 631 | |
| 632 | // Lists vm groups |
| 633 | func (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 | |
| 647 | type ListInstanceGroupsResponse struct { |
| 648 | Count int `json:"count"` |
no test coverage detected