ONTAP Rest API Discussions

how can i do pagination for python api

kbhonagiri
1,084 Views

Hi Team,

 

Does ontap Python API provide pagination ?

1 ACCEPTED SOLUTION

JohnChampion
1,008 Views

The ONTAP REST API provides pagination if that helps.  If you go to the Swagger doc (https://{clusterip}/docs/api - check out the "Records & Pagination" section at the top under "Features for all ONTAP APIs".  Basically you would check for a "_links.next.href" link to get the next set of records. 

View solution in original post

1 REPLY 1

JohnChampion
1,009 Views

The ONTAP REST API provides pagination if that helps.  If you go to the Swagger doc (https://{clusterip}/docs/api - check out the "Records & Pagination" section at the top under "Features for all ONTAP APIs".  Basically you would check for a "_links.next.href" link to get the next set of records. 

Public