Why there's no query operation for networks object.

Latest response

Hi,

 

I found it was strange that no query (?serach) function for networks object, but it has for vms,hosts,sd ... what's the reason?

Responses

The search functionality repeats the same functionality in the GUI (the top search bar). 

 

If you are trying to perform a specific search, maybe we can help you with the syntax

And I also found the search for host nics like following does not work:

    https://ip9-114-34-211.ppd.pok.ibm.com:8443/api/hosts/44d5274e-e115-11e1-b7d8-00215e967e0c/nics?search=eth0

 

 

And a rest api doc bug that in 12.3, the content to change the IP for nic, it should be <host_nic> instead of <nic>.

 

<host_nic>
    <ip address="192.168.0.129" netmask="255.255.255.0" gateway="192.168.0.1"/>
</host_nic>

There is no search for nics under hosts. As I said, the search function repeats the GUI search function, if you want to see the available searchable entities, just start typing a search in the GUI and watch the available suggestions

 

Thanks for the documentation bug notice, I'll file it

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.