Paged queries with operation-based requests

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

To use a paged query with operation-based query requests:

  • Optionally, specify a count entry in each request body. If you omit this entry, HCP returns ten thousand operation records per request.
  • For each request after the first, specify a lastResult entry containing the values of the urlName, changeTimeMilliseconds, and version properties in the last record returned in response to the previous request.
  • After each request, check the value of the code property of the status entry to determine whether the result set contains the last object that meets the criteria:
    • If the value is INCOMPLETE, more results remain. Request another page.
    • If the value is COMPLETE, the result set includes the last object that meets the query criteria.