List system virtual machines.
(p *ListSystemVmsParams)
| 731 | |
| 732 | // List system virtual machines. |
| 733 | func (s *SystemVMService) ListSystemVms(p *ListSystemVmsParams) (*ListSystemVmsResponse, error) { |
| 734 | resp, err := s.cs.newRequest("listSystemVms", p.toURLValues()) |
| 735 | if err != nil { |
| 736 | return nil, err |
| 737 | } |
| 738 | |
| 739 | var r ListSystemVmsResponse |
| 740 | if err := json.Unmarshal(resp, &r); err != nil { |
| 741 | return nil, err |
| 742 | } |
| 743 | |
| 744 | return &r, nil |
| 745 | } |
| 746 | |
| 747 | type ListSystemVmsResponse struct { |
| 748 | Count int `json:"count"` |
no test coverage detected