Product SiteDocumentation Site

2.4. List Logical Networks Collection

Red Hat Enteprise Virtualization Manager creates a default rhevm network on installation. This network is associated with our Default cluster and is a member of the Default data center. This example uses the rhevm network to connect our virtual machines.
The following request retrieves a representation of the logical networks collection:
Example 2.4. List logical networks collection
GET /rhevm-api/networks HTTP/1.1
Accept: application/xml
The API returns the following representation:
HTTP/1.1 200 OK
Content-Type: application/xml

<networks>
    <network id="00000000-0000-0000-0000-000000000009"
      href="/rhevm-api/networks/00000000-0000-0000-0000-000000000009">
        <name>rhevm</name>
        <description>Management Network</description>
        <data_center id="01a45ff0-915a-11e0-8b87-5254004ac988"
          href="/rhevm-api/datacenters/01a45ff0-915a-11e0-8b87-5254004ac988"/>
        <stp>false</stp>
        <status>OPERATIONAL</status>
        <display>false</display>
    </network>
</networks>

The rhevm network is attached to the Default data center through a relationship using the data center's id code.
The rhevm network is also attached to the Default cluster through a relationship in the cluster's network sub-collection.