Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

Is it possible to update the volume capacity thresholds via the REST API?

$
0
0

I am looking to make updates to volume capacity thresholds in Orion. I have hundreds of volumes to update thresholds on and am looking to utilize the REST Api to make the changes quickly and accurately. Is this possible?

 

I am pretty familiar with the API but am stumbling trying to even pull the existing thresholds via the SWIS Uri (example below):

 

Uri for volume from forecast capacity table:

swis://SYMX-SW-W01.symxsol.local/Orion/Orion.Nodes/NodeID=79/Volumes/VolumeID=5942/ForecastCapacity/EntityType="Orion.Volumes",MetricId=3

 

Respose from GET to https://<SolarWinds>:17778/SolarWinds/InformationService/v3/Json/swis://<solarwindsFQDN>/Orion/Orion.Nodes/NodeID=79/Volumes/VolumeID=5942/ForecastCapacity/EntityType="Orion.Volumes",MetricId=3

 

{  "Message": "Invalid key properties specified for entity Orion.VolumesForecastCapacity.\r\nParameter name: filter",  "ExceptionType": "System.ArgumentException",  "FullException": "System.ArgumentException: Invalid key properties specified for entity Orion.VolumesForecastCapacity.\r\nParameter name: filter\r\n   at SolarWinds.InformationService.Core.SwisUriResolver.ValidateAndResolveFilter(IEntityType entity, SwisUriFilter filter, Boolean isHosted)\r\n   at SolarWinds.InformationService.Core.SwisUriResolver.ValidateAndResolveUri(SwisUri uri, IQueryExecutionContext context)\r\n   at SolarWinds.InformationService.Core.CrudProcessor.Read[T](SwisUri uri, IQueryExecutionContext context)\r\n   at SolarWinds.InformationService.Core.InformationService.Read(String uri)"
}

 

Using the core Volume Uri I was able to pull all sorts of properties back but not the Volume Capacity Thresholds.

 

Any help would be much appreciated!


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>