Product SiteDocumentation Site

8.2.2.  Listing Extended Resource Sub-Collections

Collection requests extend resource representations to include sub-collections using the detail parameter in the Accept header.
GET /rhevm-api/{collection} HTTP/1.1
Accept: application/xml; detail={subcollection}
This includes multiple sub-collection requests using either seperated detail parameters:
GET /rhevm-api/{collection} HTTP/1.1
Accept: application/xml; detail={subcollection 1}; detail={subcollection 2}
Or one detail parameter that seperates the sub-collection with the + operator:
GET /rhevm-api/{collection} HTTP/1.1
Accept: application/xml; detail={subcollection 1}+{subcollection 2}+{subcollection 3}
The API only supports the statistics sub-collection listings for vms and hosts. For example:
GET /rhevm-api/vms HTTP/1.1
Accept: application/xml; detail=statistics