This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Possible to Update Orion.APM.ComponentSetting

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