EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Posted: 2020-09-15 09:50 AM . Last Modified: 2022-10-19 02:08 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-09-15 09:50 AM . Last Modified: 2022-10-19 02:08 AM
I've read and understood this post: https://community.se.com/t5/EcoStruxure-IT-forum/dco-rest-api-retry-custom-properties/m-p/219173#M18... regarding how to get custom properties out of the DCO via the REST API.
However, when I use the same call (https://server/api/v8.1//assets/asset_id?include=custom_properties) against our server for an asset with custom properties I've set via the IT Advisor, the customProperties field is empty ( {} ) in the response. I've tried using both a "curl" command line call as well as using the DCO's API doc "Try it out" feature with the same results.
Any clues as to what I'm doing wrong? Thanks in advance.
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-09-15 11:41 AM
Hello George
Can you confirm which version of DCO you are running?
When I run a similar query I'm not having any difficulty producing asset information with custom_property data. I'm using DCO 8.3.0/8.3.2
Here's an example:
https://<ip-address>/api/v8.1/assets/aa5f81b2-2a11-47bd-a8bb-88f14e5a0d5a?include=custom_properties
Regards
Greg Sterling
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-09-15 01:41 PM
I don't run the server software, but am told that the version is "EcoStruxure IT Advisor 9.0.4" - does this answer your question?
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-09-16 03:55 AM
Hi George,
The rest api call:
https://<ip-address>/api/v8.1/assets/asset-ID?include=custom_properties
works for ITA 9.x as well, here is an example:
Initially I thought there might be incorrect character in your api call ( https://server/api/v8.1//assets...., the extra slash "/") but that doesn't seem to be the issue - I guess any mistyping may have resulted in some error messages.
Can you share screen captures illustrating what you are doing and what is being displayed for you (sensitive info, such as IP address recommended to be masked).
Kind regards,
Jef
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.