Product SiteDocumentation Site

8.2.  Collections

This section examines common features for collections.

8.2.1.  Listing All Resources in a Collection

A listing of the resources in a collection is obtained by issuing a GET request on the collection URI obtained from the entry point.
GET /rhevm-api/{collection} HTTP/1.1
Accept: application/xml

HTTP/1.1 200 OK
Content-Type: application/xml

<{collection}>
    <{resource} id="{resource_id}" href="/rhevm-api/{collection}/{resource_id}">
        <name>Resource-Name</name>
        <description>A description of the resource</description>
        ...
    </{resource}>
    ...
</{collection}>