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

Method ListNics

cloudstack/NicService.go:350–362  ·  view source on GitHub ↗

list the vm nics IP to NIC

(p *ListNicsParams)

Source from the content-addressed store, hash-verified

348
349// list the vm nics IP to NIC
350func (s *NicService) ListNics(p *ListNicsParams) (*ListNicsResponse, error) {
351 resp, err := s.cs.newRequest("listNics", p.toURLValues())
352 if err != nil {
353 return nil, err
354 }
355
356 var r ListNicsResponse
357 if err := json.Unmarshal(resp, &r); err != nil {
358 return nil, err
359 }
360
361 return &r, nil
362}
363
364type ListNicsResponse struct {
365 Count int `json:"count"`

Callers

nothing calls this directly

Calls 2

newRequestMethod · 0.80
toURLValuesMethod · 0.45

Tested by

no test coverage detected