7.3.5. 最大结果参数
使用
max URL 参数来限制结果列表。没有指定 max 参数的 API 搜索查询将返回所有值。建议指定 max 参数,以防止 API 搜索查询减慢 UI 性能。
GET /ovirt-engine/api/collection;max=1 HTTP/1.1
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
<collection>
<resource id="resource_id" href="/ovirt-engine/api/collection/resource_id">
<name>Resource-Name</name>
<description>A description of the resource</description>
...
</resource>
</collection>