EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 11:44 PM . Last Modified: 2024-04-05 04:50 AM
Hi
Im investigating the REST API (v8.0) and have a problem with the "asset search" operation
https://(some-ip)/api/current/assets/search?q=blade
It is NOT returning all expected results. Is there a limit on the JSON data returned? The JSON result is always around approx max 1150 lines. And that is too few lines/results. I know there is more 😀
How do I overcome this? Also - i don't seem to be able to finde any documentation on any eventual pagination. Where can I find more info.
Best regards
Søren
(CID:125211050)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 11:44 PM . Last Modified: 2024-04-05 04:50 AM
Hi,
Taking the answer from similar question:
Just a note on the GET /assets/search operation: for performance reasons there is a limit to how many elements will be returned. It is capped at 50 items.That is a hardcoded limit that cannot be manipulated at runtime.
Regards,
Chris
(CID:125211453)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 11:44 PM . Last Modified: 2024-04-05 04:49 AM
Please allow the limit to be customized beyond 50.
(CID:128760604)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 11:44 PM . Last Modified: 2024-04-05 04:49 AM
Datacenters have more than 50 items in them...
(CID:128760607)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 11:44 PM . Last Modified: 2024-04-05 04:49 AM
We began using ETL instead. Schneider Electric took a good step towards REST, but crippled API to the point that its not ideal to script off of. The old SOAP API was better in my opinion.
(CID:126160751)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 11:44 PM . Last Modified: 2023-10-22 01:39 AM
This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.