A unified data governance solution that helps manage, protect, and discover data across your organization
Hi Balamurugan, Susinthika,
Thanks for the details and JSON sample. Here’s what’s happening with the /scan/.../runs endpoint in Purview:
- Default paging behavior
- By design this Data Plane endpoint returns only a single run record by default (think of it as a “head-of-list” snapshot).
- The
countfield in your response is the total number of runs that exist (107 in your case), not the number of items returned in that single-page payload. - Because the default page size is 1, the service doesn’t emit a
nextLinkunless you explicitly ask for more than one item.
- How to page through runs
- You can opt into paging by using OData query parameters: •
$topto set how many runs you want returned in each page (up to the service limit). •$skipto skip a certain number of runs. - Example: GET …/runs?api-version=2023-09-01&$top=50
- If you request fewer than or exactly the total count, and there are more runs beyond what you’ve asked for, you’ll get a
nextLinkin the response pointing at the next page.
- You can opt into paging by using OData query parameters: •
- Next steps & troubleshooting
- Try calling the endpoint with a
$topvalue (e.g. 50 or 100). If you set$topsmaller thancount, you should see anextLinkin the payload. - If you still don’t see
nextLink, let me know: • Which API version and region you’re calling? • Exact URL (minus any PII) including the query string you’re using. • Whether you’ve tried both$topand$skipor using the returnednextLinkURI.
- Try calling the endpoint with a
Hope that helps you validate pagination. Let me know how it goes!
Reference Links:
- Azure Purview Scan Data Plane REST: Create or List Scan Runs (
api-version=2023-09-01) - OData paging in Azure REST APIs (
$top,$skip,nextLink)
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
Please do not forget to "Accept Answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.