Bug 1805789 - Not able to expand vm networks and nics from API
Summary: Not able to expand vm networks and nics from API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.11.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.12.0
Assignee: Adam Grare
QA Contact: Sudhir Mallamprabhakara
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks: 1805923
TreeView+ depends on / blocked
 
Reported: 2020-02-21 14:47 UTC by Adam Grare
Modified: 2020-10-26 16:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1805923 (view as bug list)
Environment:
Last Closed: 2020-10-26 16:25:46 UTC
Category: Feature
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Adam Grare 2020-02-21 14:47:41 UTC
Description of problem:
Using the API I am unable to list networks and nics for all vms with a single API call.  These collections are off of the vm.hardware association and can be added to the base vm_or_template model to allow this.

Version-Release number of selected component (if applicable):
master

How reproducible:
100%

Steps to Reproduce:
1. curl --user admin:smartvm 'http://localhost:3000/api/vms?expand=resources&attributes=name,networks,nics,disks,lans'

Actual results:
{
    "error": {
        "kind": "bad_request",
        "klass": "Api::BadRequestError",
        "message": "Invalid attributes specified: networks,nics"
    }
}

Expected results:
returns networks and nics with the vm data

Additional info:

Comment 2 Adam Grare 2020-02-21 14:48:43 UTC
https://github.com/ManageIQ/manageiq/pull/19861


Note You need to log in before you can comment on or make changes to this bug.