Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Possible to Update Orion.APM.ComponentSetting

$
0
0

I'm trying to update about 100 different component settings and would like to automate this with a script. In the script I try to run this set command and get an error:

 

Set-SwisObject $swis -Uri 'swis://orionhost.local/Orion/Orion.APM.ComponentSetting/ComponentID=33381,Key="PortNumber"'  -Properties @{ PortNumber = '$port' }

 

Set-SwisObject : Operation not supported on Orion.APM.ComponentSetting

At line:1 char:1

+ Set-SwisObject $swis -Uri 'swis://orionhost.local/Orion/Orion.APM.ComponentSetti ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Set-SwisObject], FaultException`1

    + FullyQualifiedErrorId : SwisError,SwisPowerShell.SetSwisObject

 

Does anyone know if there is a way to update APM Components using the API (or any work-arounds to make it scriptable?)

 

Thanks


Viewing all articles
Browse latest Browse all 2677

Trending Articles



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