Question

offset and length parameters are ignored - Prism Central v3

  • 3 July 2023
  • 2 replies
  • 49 views

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.


This topic has been closed for comments

2 replies

Userlevel 3
Badge +14

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?

Userlevel 4
Badge +5

@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