I struggle to find info on the topic in Nutanix docs,
I try to understand how to handle pagination when performing REST API request via the v2 API to retrieve all hosts I have in the cluster.
when I make the request I get the metadata section with the following data:
"metadata": {
"grand_total_entities": ,
"total_entities": ,
"filter_criteria": "",
"sort_criteria": "",
"page": ,
"count": ,
"start_index": ,
"end_index":
}
when i make a request i see that i can specify two fields that relate to pagination
“page number”
“count”
its not clear how to handle pagination,
if somebody have some code sample it will be great !