offset and length parameters are ignored - Prism Central v3 | Nutanix Community
Skip to main content

Hi,

In the Prism Central v3 API, when making a POST request to the clusters/list endpoint and the hosts/list endpoint, the offset and length parameters are ignored. As a result, the response returns all the clusters/hosts irrespective of the parameters passed.

Has this issue already been reported, and do you happen to know when we can expect it to be fixed?

Thanks in advance.

I’m not very familiar with API troubleshooting, but I know a little bit about it. I have also heard that the v4 API offers even more flexible filtering. Is it possible for you to write this using the v4 API instead?

https://developers.nutanix.com/api-reference?namespace=clustermgmt&version=v4.0.a2

https://www.nutanix.dev/api-reference-v4/

 

Could you also paste the JSON body of your v3 API request here so we could try to reproduce it? Also - what Prism Central and Prism Element versions are you using?


@ljiljak have a look to this post

https://next.nutanix.com/ahv-virtualization-27/regarding-the-pagination-not-working-for-v3-hosts-endpoint-of-prism-central-41910?postid=64528#post64528