Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

ITA API data caching?

EcoStruxure IT forum

Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure IT
  • EcoStruxure IT forum
  • ITA API data caching?
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Cory_McDonald
Admiral Cory_McDonald Admiral
124
Jef
Admiral Jef Admiral
109
gsterling
Captain gsterling Captain
71
APC_Steve
Captain APC_Steve Captain
62
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure IT forum
Solved
xander
xander
Cadet

Posted: ‎2024-06-13 02:10 PM

0 Likes
5
1345
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-13 02:10 PM

ITA API data caching?

Hi,

 

I've been trying to use the ITA API to automate the collection of data (specifically the /assets/search route), but I realized that the data that I retrieve is outdated; is there any way that I can trigger a recache to update the data? I need the data to be accurate and up-to-date, but I'd like to avoid manually extracting it all if possible.

 

I appreciate any help or information you can give me.

Labels
  • Labels:
  • IT Advisor
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
gsterling
Captain gsterling Captain
Captain

Posted: ‎2024-06-21 03:17 AM

In response to xander
0 Likes
2
1262
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-21 03:17 AM

Hello Zander.

 

The search tool is meant to find assets, but if you are trying to inventory specific items like racks you will want to execute a get asset by id providing he asset id (uuid) of the rack and using the children parameter. I pasted an example of the api call. The below call will return all of the asset contained inside the rack with uuid 7ee1d749-376a-4650-9484-03afbd2c8acd

 

https://<ita-server>/api/v8.1/assets/7ee1d749-376a-4650-9484-03afbd2c8acd?include=children

 

Regards

 

Greg Sterling

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 5
Cory_McDonald
Admiral Cory_McDonald Admiral
Admiral

Posted: ‎2024-06-20 04:45 AM

0 Likes
4
1279
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-20 04:45 AM

Hello @xander,

 

I was able to do some quick testing in the web client and desktop client and the updates were available automatically within the API after around 20-30 seconds in my environment.  This is likely due to the time it takes to update the indexing.  My environment is small, so a larger environment may take more time to re-index depending on how many changes you save. 

 

Web client changes are saved automatically and were available for me very soon after.  Just remember if you are working in the desktop client you must save before the changes are committed back to the server and available for re-indexing.

 

Regards,

Cory

Reply

Link copied. Please paste this link to share this article on your social media post.

xander
xander
Cadet

Posted: ‎2024-06-20 07:32 AM

In response to Cory_McDonald
0 Likes
3
1264
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-20 07:32 AM

Hello @Cory_McDonald,

 

Thank you for the response! I was cross-checking assets found using the /assets/search route against assets found in the equipment browser and saw older assets in the web API, so I jumped to the conclusion that it was a caching problem; in hindsight, I think the equipment browser in the native version of ITA might automatically filter out retired assets whereas the /assets/search API endpoint does not which would explain the discrepancy. I'm still very new to ITA, so I apologize about any misunderstanding that may have caused.

 

I think my underlying problem is that I'm not entirely sure how to query the API; I just want to pull any assets associated with a cabinet by that cabinet's name so it mirrors what I see in the equipment browser in the native version of ITA, but when I query the /assets/search endpoint with the cabinet name, the response seems to include retired assets and the /equipment-browser/results endpoint seems to give me unrelated assets. I see the documentation for the model schema and I'm able to parse the output just fine, but I haven't been able to find anything to help me understand the query parameters. My current queries are:

 

curl -X GET --header 'Accept: application/json' 'https://<serverip>/api/v8.1/assets/search?q=cj093'

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d 'cj093' 'https://<serverip>/api/v8.1/equipment-browser/results?lastSeenOffset=0&limit=10'

 

but neither of them matches the result that I get by typing the name of the cabinet into the search input for the equipment browser.

Can you help me out?

 

Best,

Xander

Reply

Link copied. Please paste this link to share this article on your social media post.

gsterling
Captain gsterling Captain
Captain

Posted: ‎2024-06-21 03:17 AM

In response to xander
0 Likes
2
1263
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-21 03:17 AM

Hello Zander.

 

The search tool is meant to find assets, but if you are trying to inventory specific items like racks you will want to execute a get asset by id providing he asset id (uuid) of the rack and using the children parameter. I pasted an example of the api call. The below call will return all of the asset contained inside the rack with uuid 7ee1d749-376a-4650-9484-03afbd2c8acd

 

https://<ita-server>/api/v8.1/assets/7ee1d749-376a-4650-9484-03afbd2c8acd?include=children

 

Regards

 

Greg Sterling

Reply

Link copied. Please paste this link to share this article on your social media post.

xander
xander
Cadet

Posted: ‎2024-06-21 07:03 AM

In response to gsterling
0 Likes
1
1227
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-21 07:03 AM

Hi Gsterling, 

 

Thank you for the example command, that cleared up a bit of my confusion about the API! A quick follow up; ideally, I can search by the name property (our cabinets all share the same naming convention and each name is unique); is there a way I can search by name instead of by id? I can use /assets/search and query by name to get the id of the cabinet, but that's two API calls so I'm just wondering if there's a way to do it in one.

 

Also, I'm still struggling on figuring out how to retrieve Power Consumers from breaker panels; they aren't considered children and that information didn't seem to be available in any of the power routes. It would be very useful to be able to retrieve that information using the API!

 

Thanks,

Xander

Reply

Link copied. Please paste this link to share this article on your social media post.

Jef
Admiral Jef Admiral
Admiral

Posted: ‎2024-06-24 06:02 AM

In response to xander
0 Likes
0
1222
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-06-24 06:02 AM

Hi Xander,

 

Using the 'GET /assets/search' reset api, I can/could use the rack name as a search key,

Request URL
https://<ITA server>/api/v8.1/assets/search?q=Rackx

(searching for Rackx)

the response in my case was info about the searched rack and its content.

Jef_0-1719234115707.png

 

And regarding how to retrieve Power Consumers from breaker panels, I don't think this is exposed via the rest api calls.

 

Kind regards,

Jef

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of