list the vm nics IP to NIC
(p *ListNicsParams)
| 348 | |
| 349 | // list the vm nics IP to NIC |
| 350 | func (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 | |
| 364 | type ListNicsResponse struct { |
| 365 | Count int `json:"count"` |
nothing calls this directly
no test coverage detected