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 09:06 AM . Last Modified: 2024-04-08 03:39 AM
Hi team:
I'm using DCO offline demo 8.0 and I want to get all the assets of a user or a cutomer through webservices, is the webservice GET/Assets in http://server/api/current can achieve that?
The offline server has many virtual users and the apc is a administrator, I want to use apc to get all the devices that apc can manage, but the webservice GET/assets need a parameter customer_id so i activated a customer but the response is null, is that means id_975 has no assets? how do i allocate assets to him?
The most important problem is how can I get all the assets of the user apc or other users or customers? Can you tell me the main steps?
Best Regards.
(CID:110008118)
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 09:06 AM . Last Modified: 2024-04-08 03:39 AM
As stated in the documentation the customer-id is optional. It sounds like you are not interested in a specific customers assets. If that is the case then just do not put any customer-id.
You assign customers to assets in the property page of an asset in the desktop client.
(CID:110008128)
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 09:06 AM . Last Modified: 2024-04-08 03:39 AM
As stated in the documentation the customer-id is optional. It sounds like you are not interested in a specific customers assets. If that is the case then just do not put any customer-id.
You assign customers to assets in the property page of an asset in the desktop client.
(CID:110008128)
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 09:06 AM . Last Modified: 2024-04-08 03:39 AM
Thanks for your reply, I tried with no customer_id, but the response is a location, and what i need is how to get all the assets such as server of a customer, special customer also is okay, for an example, apc is an administrator and he can manage all the devices, can I get all the devices that apc can manage by webservices?. I read the document and tried the method, but assigning rooms, cages, or racks to customers is not available maybe because I'm using version offline demo. Is there any other ways can i get assets data of a customer? Best,
(CID:110008285)
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 09:06 AM . Last Modified: 2024-04-08 03:39 AM
When you get the location you have to use the GET /assets/{asset-id} operation with the include option for children (and the id of the location). Then you repeat that call with the id's of the children (one at a time). You continue that procedure until you reach the server level. For performance reasons there is not one call to get all the assets.
(CID:110008291)
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 09:06 AM . Last Modified: 2023-10-22 01:45 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.