Dear all,
I am looking to update Orion.CpuLoadThreshold or Orion.NodesThresholds tables ,, using REST API. But i am not seeing URI's from these table.
Could you kindly suggest any points..
My intention is to update, node thresholds via REST API
Dear all,
I am looking to update Orion.CpuLoadThreshold or Orion.NodesThresholds tables ,, using REST API. But i am not seeing URI's from these table.
Could you kindly suggest any points..
My intention is to update, node thresholds via REST API
If you are using SWQL, you can frequently just append ', URI
' to your select statement. It's almost always there, but it's not shown by default when you generate a query.
Generate Select Statement only shows the "blue" properties.
Generate Select Statement (with Inherited Properties) includes both the properties and the "green" inherited/calculated properties (which includes URI for elements where it's applicable).
Thanks a lot Genius,for your helpful response, Let me check and come back , Thanks a Ton
I should note that the Orion.CpuLoadTheshold
entities cannot be directly updated. You can see below that it's listed as Read-Only. As a note, this cannot be done in the Orion.Thresholds
entities either (which is where all the thresholds are stored and the Orion.CpuLoadTheshold
and other entities are "filtered" views of the original).
I don't think the Thresholds can be updated via the API at the moment. Probably because of the possible complexity of the definitions (single point in time, X of Y polls, last Z minutes, etc.)
Yes KMSigma.SWI , I couldnt see uri's created for the same. Thanks for helping with related informations.. kindly please provide some flexibility to update threshold directly in future version.
It's already been added to the Feature Requests as Add CRUD Verbs for Thresholds in Orion SDK. You should upvote it.
It looks like our wish is (about to be) granted:
That said, When querying any of the threshold tables, the URI column is always returned empty... Do you know what would be the format of that URI if I wanted to build it myself?
planglois Thanks for sharing the awaited update, Is it part of Orion platform 2024.1 ? If yes, would able to share the uri details
looks like in 2024.1 i still have the tables closed for updates. The uri is blank as you mentioned
Assumption,, it could endup like
"Orion/Orion.CpuLoadThreshold/InstanceId=[[NodeID] && Name=Nodes.Stats.PercentMemoryUsed"
Can confirm that 2024.1.0 doesn't have the new Can Create/Can Update/Can Delete options for Orion.CpuLoadThreshold
.
Version Check Query:
SELECT EngineID , DisplayName , ServerName , IP , ServerType , EngineVersion , WindowsVersion , PollingCompletion FROM Orion.Engines
Returns:
Asking the API about the API:
SELECT FullName , CanCreate , CanRead , CanUpdate , CanDelete FROM Metadata.Entity WHERE FullName = 'Orion.CpuLoadThreshold'
Returns:
Are you running an RC of Beta planglois ?
KMSigma.SWI Running a "full version", but not the same build as yours
This might be a bug....
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.