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

Method ListSystemVms

cloudstack/SystemVMService.go:733–745  ·  view source on GitHub ↗

List system virtual machines.

(p *ListSystemVmsParams)

Source from the content-addressed store, hash-verified

731
732// List system virtual machines.
733func (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
747type ListSystemVmsResponse struct {
748 Count int `json:"count"`

Callers 2

GetSystemVmIDMethod · 0.95
GetSystemVmByIDMethod · 0.95

Calls 2

newRequestMethod · 0.80
toURLValuesMethod · 0.45

Tested by

no test coverage detected