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

REST Delete/BulkDelete Operations for Orion.NPM.DiscoveredInterfaces/Orion.DiscoveredVolumes

$
0
0

Hello tdanner / Orion SDK Community,

 

In my automation workflow to discover/import nodes/interfaces/volumes, I'm setting autoimport to false so that I can filter out interfaces and volumes appropriately.

I'm wanting to use the Delete and BulkDelete operations, however some tables don't seem to have a URI to reference the object I want to delete.

Is there any other option other than URI? I was using something like the following :

 

https://localhost:17778/SolarWinds/InformationService/v3/Json/swis://localhost/Orion.NPM/Orion.NPM.DiscoveredInterfaces/…

 

but got the following response:

 

{

  "Message": "Invalid key properties specified for entity Orion.NPM.DiscoveredInterfaces.\r\nParameter name: filter",

  "ExceptionType": "System.ArgumentException",

  "FullException": "System.ArgumentException: Invalid key properties specified for entity Orion.NPM.DiscoveredInterfaces.\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.Delete(SwisUri uri, IQueryExecutionContext context)\r\n   at SolarWinds.InformationService.Core.InformationService.Delete(String uri)"

}

 

I know the only other way to do this (that I know of at least, is to delete the associated objects in SQL directly).

 

Any other way to do this with DELETE / BULKDELETE?

 

Thank you,

 

=swql

 


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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